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:
- 4:43ce9b92ae68
- Parent:
- 3:cbacf69dbed5
- Child:
- 5:c849e3c4a5f0
--- a/main.cpp Sat Mar 18 10:02:26 2017 +0000 +++ b/main.cpp Tue Sep 12 12:58:40 2017 +0000 @@ -8,20 +8,20 @@ Common Anode LED (active low) - /-- 1 kΩ -- D9 (red) + /-- 680 kΩ -- D9 (red) + 3.3 to 5.0 V ----LED<--- 680 Ω -- D10 (green) - \-- 680 Ω -- D11 (blue) + \-- 1 kΩ -- D11 (blue) Common Cathode LED (active high) - /-- 1 kΩ -- D9 (red) + /-- 680 Ω -- D9 (red) GND ----LED<--- 680 Ω -- D10 (green) - \-- 680 Ω -- D11 (blue) + \-- 1 kΩ -- D11 (blue) */ -DigitalOut RedLED(D9); // Physically same as Arduino Digital pin 9 on Nucleos. -DigitalOut GrnLED(D10); // Physically same as Arduino Digital pin 10. -DigitalOut BluLED(D11); // Physically same as Arduino Digital pin 11. +DigitalOut RedLED(D13); // Arduino Digital pin 13 on Nucleos. +DigitalOut GrnLED(D14); // Arduino Digital pin 14. +DigitalOut BluLED(D15); // Arduino Digital pin 15. Serial pc(USBTX, USBRX); // Default settings are 9600 Baud, 8-N-1.