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
main.cpp
- Committer:
- WAT34
- Date:
- 2015-07-01
- Revision:
- 0:7ec77e777058
- Child:
- 1:56dc085d9e2d
File content as of revision 0:7ec77e777058:
#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; } } }