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:
- 2:7d93889ab88b
- Parent:
- 1:07dbea660864
--- a/main.cpp Thu Sep 13 17:43:17 2018 +0000
+++ b/main.cpp Thu Mar 31 09:00:38 2022 +0000
@@ -5,12 +5,12 @@
#define SCL0 D15 //PTE24
#define LEDON 0
#define LEDOFF 1
+//A5,D3,D4
+DigitalOut rled(A5);
+DigitalOut gled(D3); //also PTE26 (J2-1)
+DigitalOut bled(D4);
-DigitalOut rled(LED_RED);
-DigitalOut gled(LED_GREEN); //also PTE26 (J2-1)
-DigitalOut bled(LED_BLUE);
-
-RawSerial pc(USBTX, USBRX);
+Serial pc(USBTX, USBRX);
scd30 scd(SDA0, SCL0, 400000); //Microchip real time clock
@@ -44,7 +44,7 @@
int main()
{
rled = gled = bled = LEDOFF;
- pc.baud(230400);
+ //pc.baud(230400);
wait_ms(200);
initSplash();