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:
- 9:7d6fa62f9022
- Parent:
- 8:a435e7aa7a02
- Child:
- 10:3fcaf50f528f
diff -r a435e7aa7a02 -r 7d6fa62f9022 main.cpp --- a/main.cpp Fri Mar 29 01:29:39 2019 +0000 +++ b/main.cpp Tue Jun 25 02:10:31 2019 +0000 @@ -11,7 +11,7 @@ InterruptIn down(PC_9); InterruptIn bt_ml(PC_10); // Millking action button -DigitalOut led(LED2); // Operating LED signal +DigitalOut led(PA_5); // Operating LED signal AnalogIn disSensor(PA_7); // Distance Sensor @@ -231,7 +231,6 @@ bt.baud(115200); // pc.baud(115200); bt.puts("START 181228 Ver.6 \n"); - int modeNum = 0; int modeLED = 0; int modeMotor = 0; @@ -250,7 +249,7 @@ bt_ml.fall(&ManualMk); // [ADD] Interrupt Millking Action Manual Button -// timer0.attach(&OperateLED,0.2); + timer0.attach(&OperateLED,0.2); // timer4.attach(&Test,0.1); bt.attach(&ReadData, Serial::RxIrq);