Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DmTouch_UniGraphic UniGraphic-forLdelaney17FinalProject mbed
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
Generated on Wed Jul 27 2022 04:00:21 by
