Added Standby mode into WakeUp library. This is a checking program for the standby mode on Nucleo-F446RE and other STM32 series.
Fork of study_step0 by
Please refer notebook.
/users/kenjiArai/notebook/standby-mode-current-consumption-on-nucleo-f446re/#
main.cpp@0:1672d0903bdc, 2017-08-10 (annotated)
- Committer:
- kenjiArai
- Date:
- Thu Aug 10 20:50:46 2017 +0000
- Revision:
- 0:1672d0903bdc
- Child:
- 1:abe49c3395cd
Study step 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:1672d0903bdc | 1 | /* |
kenjiArai | 0:1672d0903bdc | 2 | * Mbed Application program / Study step1 -> LED Blinky |
kenjiArai | 0:1672d0903bdc | 3 | * |
kenjiArai | 0:1672d0903bdc | 4 | * Copyright (c) 2017 Kenji Arai / JH1PJL |
kenjiArai | 0:1672d0903bdc | 5 | * http://www.page.sannet.ne.jp/kenjia/index.html |
kenjiArai | 0:1672d0903bdc | 6 | * http://mbed.org/users/kenjiArai/ |
kenjiArai | 0:1672d0903bdc | 7 | * Created: August 10th, 2017 |
kenjiArai | 0:1672d0903bdc | 8 | * Revised: August 10th, 2017 |
kenjiArai | 0:1672d0903bdc | 9 | */ |
kenjiArai | 0:1672d0903bdc | 10 | |
kenjiArai | 0:1672d0903bdc | 11 | #include "mbed.h" |
kenjiArai | 0:1672d0903bdc | 12 | |
kenjiArai | 0:1672d0903bdc | 13 | DigitalOut my_led(LED1); |
kenjiArai | 0:1672d0903bdc | 14 | |
kenjiArai | 0:1672d0903bdc | 15 | int main() { |
kenjiArai | 0:1672d0903bdc | 16 | while(1) { |
kenjiArai | 0:1672d0903bdc | 17 | my_led = !my_led; |
kenjiArai | 0:1672d0903bdc | 18 | wait(1.0); |
kenjiArai | 0:1672d0903bdc | 19 | } |
kenjiArai | 0:1672d0903bdc | 20 | } |