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: ADXL345 HMC6352 Motor PID SoftPWM mbed
Diff: main.cpp
- Revision:
- 0:7ec77e777058
- Child:
- 1:56dc085d9e2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jul 01 07:17:03 2015 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +BusOut air(p15,p16); +BusOut air2(p17,p18); +DigitalIn sw(p10,PullUp); +DigitalIn sw2(p11,PullUp); +int main() { + while(1) { + if (sw == 0){ + air = 1; + air2 = 1; + }else if(sw2 == 0){ + air =2; + air2 = 2; + }else{ + air = 0; + air2 = 0; + } + } +}