test de premier push
Dependencies: WakeUp mbed EPD_GDE021A1
Sources/standby.cpp@24:b1c29d839d9b, 2016-11-12 (annotated)
- Committer:
- mathieusab
- Date:
- Sat Nov 12 18:16:05 2016 +0000
- Revision:
- 24:b1c29d839d9b
Ajout de la fonction standby. .h et .cpp; ; appel depuis le main par standby(dur?e);
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mathieusab | 24:b1c29d839d9b | 1 | #include "../Headers/standby.h" |
mathieusab | 24:b1c29d839d9b | 2 | #include "WakeUp.h" |
mathieusab | 24:b1c29d839d9b | 3 | |
mathieusab | 24:b1c29d839d9b | 4 | void standby(int duration) |
mathieusab | 24:b1c29d839d9b | 5 | { |
mathieusab | 24:b1c29d839d9b | 6 | WakeUp::calibrate(); |
mathieusab | 24:b1c29d839d9b | 7 | WakeUp::set(duration); |
mathieusab | 24:b1c29d839d9b | 8 | deepsleep(); |
mathieusab | 24:b1c29d839d9b | 9 | } |