diff --git a/GSL1680.h b/GSL1680.h index 1b77840..8df6916 100644 --- a/GSL1680.h +++ b/GSL1680.h @@ -13,23 +13,24 @@ class GSL1680 { public: - GSL1680 (); + GSL1680(); GSL1680(bool error, bool info); - void begin(uint8_t WAKE, uint8_t INTRPT); - uint8_t dataread(); - uint8_t readFingerID(int NB); - uint32_t readFingerX(int NB); - uint32_t readFingerY(int NB); + + void begin(uint8_t WAKE, uint8_t INTRPT); + uint8_t dataread(); + uint8_t readFingerID(int NB); + uint32_t readFingerX(int NB); + uint32_t readFingerY(int NB); private: - bool GSL1680_DEBUG_ERROR; - bool GSL1680_DEBUG_INFO; - void clear_reg(); - void reset(); - void loadfw(); - void startchip(); - void sleep(); - void datasend(uint8_t REG, uint8_t DATA[], uint16_t NB); + bool GSL1680_DEBUG_ERROR; + bool GSL1680_DEBUG_INFO; + void clear_reg(); + void reset(); + void loadfw(); + void startchip(); + void sleep(); + void datasend(uint8_t REG, uint8_t DATA[], uint16_t NB); }; struct Finger { diff --git a/examples/GSL1680/GSL1680.ino b/examples/GSL1680/GSL1680.ino index b54ba08..1f72594 100644 --- a/examples/GSL1680/GSL1680.ino +++ b/examples/GSL1680/GSL1680.ino @@ -19,6 +19,7 @@ pin | function | Arduino Uno 6 | Gnd | gnd */ +#include "GSL1680.h" // Pins #define WAKE 4