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: mbed
Diff: main.h
- Revision:
- 2:c4fb968de7d3
- Parent:
- 0:491bc4ee502e
--- a/main.h Thu Aug 24 08:54:43 2017 +0000
+++ b/main.h Sat Sep 02 11:09:35 2017 +0000
@@ -1,9 +1,18 @@
-char int1_src[1] = {0x31};
-char int2_src[1] = {0x35};
+//extern char int1_src[1] = {0x31};
+//extern char int2_src[1] = {0x35};
+//char clk_src[1] = {0x39};
+
+extern char JERK_FLAG,MOVEMENT_FLAG,MOTION,FIRST,SECOND,NEXT_TIME,START_TO_MOVING,MOVING_TO_STOP,PRE_MOVING,TIMER_RUNNING;
+extern Serial pc;
+extern float TIMING,FIRST_TIME,CURRENT_TIME;
-char initialize_accelerometer(void);
-void configure_accelerometer(void);
-void initialize_internal_temperature_sensor(void);
-void read_acceleration(void);
-void print_data_bits(char);
\ No newline at end of file
+extern long speed,FIRST_SPEED,CURRENT_SPEED;
+
+extern DigitalOut ACC_LED;
+extern I2C i2c;
+extern Timer t;
+
+
+extern InterruptIn change; // INT1
+extern InterruptIn jerk; //INT2