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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:5973b7a1f0dc
- Parent:
- 0:ba720281b818
--- a/main.cpp Thu Nov 05 07:28:03 2020 +0000
+++ b/main.cpp Thu Nov 05 08:09:42 2020 +0000
@@ -1,16 +1,17 @@
#include "mbed.h"
PwmOut LED_f(D9);
+Serial pc(USBTX,USBRX);
int main() {
while(1){
LED_f = 1; // LED is ON
- printf("1");
+ pc.printf("1");
wait(1); // 200 ms
LED_f = 0.2; // LED is ON
- printf("2");
+ pc.printf("2");
wait(0.5); // 1 se