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.
Revision 3:bfc552619e9d, committed 2019-03-19
- Comitter:
- faraonemena
- Date:
- Tue Mar 19 10:42:09 2019 +0000
- Parent:
- 2:8b0dcfb1c7e9
- Commit message:
- thread
Changed in this revision
--- 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