DesignForAmputee hw 5 project
Dependencies: mbed BLE_API nRF51822
main.cpp
- Committer:
- jstroud
- Date:
- 2014-11-03
- Revision:
- 0:6a0d0bc31c4c
- Child:
- 1:dbfe14952cdc
File content as of revision 0:6a0d0bc31c4c:
#include "mbed.h" DigitalOut myled(LED1); DigitalOut power(A0); AnalogIn tempPin(A1); 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); } }