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.
Diff: main.cpp
- Revision:
- 9:de7920643cbd
- Parent:
- 8:0cfa131f854c
- Child:
- 10:9a7884230fd8
--- a/main.cpp	Wed Dec 05 12:29:38 2018 +0000
+++ b/main.cpp	Wed Dec 05 15:14:30 2018 +0000
@@ -13,7 +13,7 @@
 Serial pc(SERIAL_TX, SERIAL_RX); 
 //9600, 8 data bits, no parity,1 stop bit,no flow control
 DigitalOut onboardLed(LED1);
-DigitalIn userButton(BUTTON1);
+DigitalIn userButton(BUTTON1, PullUp);
 
 int main()
 {