ITI "DallaChiesa" 2019 / Mbed 2 deprecated STMNucleoF401RE_ExampleCode_07_Thread

Dependencies:   mbed mbed-rtos

Files at this revision

API Documentation at this revision

Comitter:
faraonemena
Date:
Tue Mar 19 10:42:09 2019 +0000
Parent:
2:8b0dcfb1c7e9
Commit message:
thread

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 19 08:51:07 2016 +0000
+++ b/main.cpp	Tue Mar 19 10:42:09 2019 +0000
@@ -12,7 +12,7 @@
 DigitalIn mybutton(USER_BUTTON);
 
 // Instanzia un oggetto di tipo DigitalOut
-DigitalOut myled(LED1);
+DigitalOut myled(D2);
 
 // Variabile alla quale viene assegnato il tempo tra l'accensione e lo spegnimento 
 float delay = 0;
@@ -22,7 +22,7 @@
 // viene impostato il nuovo valore della variabile delay
 void button_thread(void const *args) {
     while(true) {
-        if (mybutton == 0) { // Button is pressed
+        if (!mybutton) { // Button is pressed
             if (delay == 1.0)
                 delay = 0.2; // 200 ms
             else
--- a/mbed-rtos.lib	Wed Oct 19 08:51:07 2016 +0000
+++ b/mbed-rtos.lib	Tue Mar 19 10:42:09 2019 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#12552ef4e980
+http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
--- a/mbed.bld	Wed Oct 19 08:51:07 2016 +0000
+++ b/mbed.bld	Tue Mar 19 10:42:09 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5
\ No newline at end of file