Laura Delaney / Mbed 2 deprecated Ldelaney17_frdm_Final_Project

Dependencies:   DmTouch_UniGraphic UniGraphic-forLdelaney17FinalProject mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers acc.h Source File

acc.h

00001 #ifndef ACC_H
00002 #define ACC_H
00003 
00004 #include "mbed.h"
00005 
00006 extern I2C connection;
00007 //extern Serial pc;
00008 const int addr_acc = 0x53 << 1; 
00009 
00010 //initializes based on a duration in ms, threshold in g, gap in ms and window in ms
00011 void acc_init(float duration, float threshold, float gap, float window);
00012 
00013 //reads the interrupt source register and returns 1 if there was a single tap, or 2 if there was a double tap
00014 char get_int_type();
00015 
00016 #endif