DesignForAmputee hw 5 project
Dependencies: mbed BLE_API nRF51822
main.cpp
- Committer:
- jstroud
- Date:
- 2014-11-07
- Revision:
- 4:0ebd5e43da47
- Parent:
- 3:436ef162bf2d
- Child:
- 5:46dd21736d36
File content as of revision 4:0ebd5e43da47:
#include "mbed.h" DigitalOut myled(LED1); DigitalOut power(P0_0); // brown AnalogIn tempPin(P0_1); // purple float temp; Serial pc(USBTX, USBRX); int main() { while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); power = 1; temp = tempPin.read(); pc.printf("%f\n",temp); } }