![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
-
Dependencies: mbed
Diff: Nucleo.h
- Revision:
- 1:24f21be80e14
- Parent:
- 0:07055f3355f6
--- a/Nucleo.h Wed Mar 07 14:20:11 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ - -#include "mbed.h" - -DigitalOut myled(LED1); -DigitalIn pb(USER_BUTTON); - -// SPST Pushbutton demo using internal PullUp function -// no external PullUp resistor needed -// Pushbutton from P8 to GND. -int main() { - pb.mode(PullUp); - while(1) { - myled = pb; - } -} \ No newline at end of file