NeoSmartpen / IOS-SDK2.0

for Neo smartpen SDK2.0
GNU General Public License v3.0
10 stars 11 forks source link

Pen Sensitivity #6

Open martinleopold opened 6 years ago

martinleopold commented 6 years ago

I am experiencing an issue where lighter strokes are clearly visible on paper but are not recognized by the SDK. Only when I press the pen down harder I get stroke data.

Is there a way to change the sensitivity using the penPressure state? What range of values does - (void)setPenStateWithPenPressure:(UInt16)penPressure; accept and what do they mean?

I was also wondering what exactly some of the other pen state properties do, especially useAccelerator and useHover. I use an F110 by the way, so the SDK is version 1.

typedef struct __attribute__((packed)){
    int32_t timezoneOffset;
    UInt64 timeTick;
    UInt32 colorState;
    unsigned char usePenTipOnOff;
    unsigned char useAccelerator;
    unsigned char useHover;
    unsigned char beepOnOff;
    UInt16 autoPwrOnTime;
    UInt16 penPressure;
    unsigned char reserved[16];
} SetPenStateStruct;
louisjrpark commented 6 years ago

Dear Martin,

Yes, pen sensitivity can be changed by 'setPenStateWithPenPressure'. The range of the value is between 0~4. '0' is the most sensitive. Regarding useAccelerator and useHover, useHover is for hovering mode like proximity mode which has been used for testing internally in our company. And, useAccelerator is used to wake up the pen which is also being used internally. Thus, both of them should not be used by customers.

Thanks Best regards, Louis Park