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
Revision 0:d106c69c164d, committed 2016-11-03
- Comitter:
- Beromunja
- Date:
- Thu Nov 03 18:29:42 2016 +0000
- Commit message:
- VT1_Bere?ek
Changed in this revision
main.cpp | 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 |
diff -r 000000000000 -r d106c69c164d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 03 18:29:42 2016 +0000 @@ -0,0 +1,48 @@ +#include "mbed.h" +AnalogIn Ain(p20); +DigitalOut myled(LED1); +DigitalOut myled1(LED2); +DigitalOut myled2(LED3); +DigitalOut myled3(LED4); +float a; + +int main() { + +while(1) { + a=ain: + IF(a<0.2); +LED1 = 0; +LED2 = 0; +LED3 = 0; +LED4 = 0; + +} +if { +Ain<= 0.4; +LED1 = 1; +LED2 = 0; +LED3 = 0; +LED4 = 0; +} + if{ +Ain=0.6; +LED1 = 1; +LED2 = 1; +LED3 = 0; +LED4 = 0; +} +if { +Ain<=0.8; +LED1 = 1; +LED2 = 1; +LED3 = 1; +LED4 = 0; +} +if { +Ain <= 1; +LED1 = 1; +LED2 = 1; +LED3 = 1; +LED4 = 1; +} +} \ No newline at end of file
diff -r 000000000000 -r d106c69c164d mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 03 18:29:42 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0 \ No newline at end of file