Controlling Blinking frequency using TSI Slider
Dependencies: mbed tsi_sensor
Diff: main.cpp
- Revision:
- 4:fe602d6e48d9
- Parent:
- 3:a47ba029fe08
- Child:
- 5:feab406f054b
--- a/main.cpp Thu Nov 03 19:36:17 2016 +0000 +++ b/main.cpp Thu Nov 03 19:38:24 2016 +0000 @@ -14,16 +14,12 @@ int main(void) { PwmOut led(LED_GREEN); - Serial pc(USBTX, USBRX); TSIAnalogSlider tsi(ELEC0, ELEC1, 40); float x; x = 0.0; while (true) { - - pc.printf("valus is %f \n",x); led = !led; wait(x); x = tsi.readPercentage(); - } }