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.
Fork of Timer by
Diff: Functions/func.h
- Revision:
- 49:5e2f7323f280
- Parent:
- 47:be4eebf40568
- Parent:
- 48:03da1aead032
- Child:
- 51:1056dd73a748
--- a/Functions/func.h Mon Apr 25 12:42:32 2016 +0000 +++ b/Functions/func.h Thu Apr 28 08:24:02 2016 +0000 @@ -9,6 +9,12 @@ #include "AX12.h" #define SEUIL 0.25 +#define VERT 1 +#define VIOLET 2 +#define ATTENTE 0 +#define GO 1 +#define STOP 2 +#define ADR 0x80 #define dt 10000 extern Serial logger; @@ -26,14 +32,21 @@ extern InterruptIn EndR; extern InterruptIn EndZ; extern InterruptIn EndL; -extern AX12 left_hand; -extern AX12 right_hand; -extern Ticker ticker; +//extern AX12 left_hand; +//extern AX12 right_hand; extern Odometry odo; +extern Ticker ticker; +extern InterruptIn CAMP; +extern InterruptIn START; +extern DigitalOut LEDR; +extern DigitalOut LEDV; -extern int i, state; -extern bool EL, EZ, ER; +extern int SIMON_i, SIMON_state, SCouleur, SStart; +extern bool SIMON_EL, SIMON_EZ, SIMON_ER; + +void changeCamp(void); +void go(void); void ELpressed(void); void ELunpressed(void); void EZpressed(void);
