Skip to content

Commit

Permalink
Fixing license. Giving self cred. :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
jspark311 committed May 13, 2015
1 parent 9cfa272 commit d69e74a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
33 changes: 17 additions & 16 deletions Hover/Hover.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* ===========================================================================
# This is the library for Hover.
#
# Hover is a development kit that lets you control your hardware projects in a whole new way.
# Wave goodbye to physical buttons. Hover detects hand movements in the air for touch-less interaction.
# This is the library for Hover.
#
# Hover is a development kit that lets you control your hardware projects in a whole new way.
# Wave goodbye to physical buttons. Hover detects hand movements in the air for touch-less interaction.
# It also features five touch-sensitive regions for even more options.
# Hover uses I2C and 2 digital pins. It is compatible with Arduino, Raspberry Pi and more.
#
# Hover can be purchased here: http://www.justhover.com
#
# Written by Emran Mahbub and Jonathan Li for Gearseven Studios.
# Written by Emran Mahbub and Jonathan Li for Gearseven Studios.
# Enhancement and extention by J. Ian Lindsay.
# BSD license, all text above must be included in any redistribution
# ===========================================================================
#
Expand Down Expand Up @@ -54,7 +55,7 @@ class Hover {
int32_t _pos_y;
int32_t _pos_z;
int32_t wheel_position;

uint32_t events_received;

Hover(int ts, int mclr, uint8_t addr = 0x42);
Expand All @@ -63,14 +64,14 @@ class Hover {
int8_t service();
const char* getTouchTapString(uint8_t eventByte);
const char* getSwipeString(uint8_t eventByte);

int8_t setIRQPin(uint8_t, int);

//bool featureEnabled(uint8_t mask);

void enableApproachDetect(bool);
void enableAirwheel(bool);

void set_isr_mark(uint8_t mask);
inline bool isPositionDirty() { return ((_pos_x + _pos_y + _pos_z) != -3); };
inline bool isTouchDirty() { return (last_touch_noted != last_touch); };
Expand All @@ -93,16 +94,16 @@ class Hover {
uint8_t _irq_pin_1; // Pin number being used by optional IRQ pin.
uint8_t _irq_pin_2; // Pin number being used by optional IRQ pin.
uint8_t _irq_pin_3; // Pin number being used by optional IRQ pin.

uint8_t last_event;

uint8_t service_flags;
uint8_t class_state;

uint8_t getEvent(void);



#ifdef BOARD_IRQS_AND_PINS_DISTINCT
int get_irq_num_by_pin(int _pin);
#endif
Expand All @@ -111,4 +112,4 @@ class Hover {



#endif
#endif
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ It also features five touch-sensitive regions for even more options.
Hover uses I2C and 2 digital pins. It is compatible with Arduino, Raspberry Pi and more.

Written by Emran Mahbub and Jonathan Li for Gearseven Studios.
BSD license, all text above must be included in any redistribution
Enhancement and extention by J. Ian Lindsay.
BSD license, all text above must be included in any redistribution

0 comments on commit d69e74a

Please sign in to comment.