acrandal / RevEng_PAJ7620

PAJ7620 gesture sensor Arduino driver and user API
https://acrandal.github.io/RevEng_PAJ7620/
MIT License
24 stars 7 forks source link

Feature: Corners Mode #52

Closed acrandal closed 3 years ago

acrandal commented 3 years ago

I ran into a "corners mode" with the Tasmota driver.

Basically, each quadrant from cursor mode is treated as a "corner" so a caller can read the value of the object's location in a simple 0-4 integer (0 being not present).

This could be a nice feature with a simple user interface to implement.

acrandal commented 3 years ago

This can be done within Gesture mode, it doesn't need to wrap Cursor mode at all!

Can leverage the getObjectX/Y and isObjectInView to create a returned "corner" enum. Based on those values, we can then build out PIN check features.

acrandal commented 3 years ago

Axes in Gesture mode go 0..3712. Corners mode needs to have 6 states. Four corners, one gutter/space between them, and then not in view.

Corners are named/numbered according to the cartesian coordinate system.

acrandal commented 3 years ago

Corners mode working!

See new API call: getCorner() which returns a Corner enum.

acrandal commented 3 years ago

Merged into develop for the 1.5.0 release that really should be soon.