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:
- 0:0d384a1d2092
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Nov 20 14:26:08 2021 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+Serial pc(USBTX,USBRX) ;
+
+Thread thread1; // instanciation du thread 1
+DigitalOut led1(LED1);
+
+void led1_thread()
+{
+ while (true) {
+ led1 = !led1;
+ Thread::wait(100) ;
+ }
+}
+
+int main (void)
+{
+ pc.printf("\033[2J"); // Effacement de la console
+ pc.printf("\033[0;0H"); // Curseur en 0 ; 0
+ pc.printf("Test de la carte Nucleo F429ZI sous RTOS MBED\n");
+ pc.printf("Frequence de l'horloge systeme = %.2f MHz\n",SystemCoreClock/1000000.f) ;
+ thread1.start(led1_thread);
+ while(1) {
+ }
+}
\ No newline at end of file