Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Skallwar committed Apr 29, 2019
1 parent 81dac06 commit dccea84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
29 changes: 15 additions & 14 deletions GSL1680.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions examples/GSL1680/GSL1680.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pin | function | Arduino Uno
6 | Gnd | gnd
*/

#include "GSL1680.h"

// Pins
#define WAKE 4
Expand Down

0 comments on commit dccea84

Please sign in to comment.