
touch
Diff: main.cpp
- Revision:
- 0:630620db0649
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Oct 07 23:28:30 2019 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +#include "TSISensor.h" + +int main() { + PwmOut led(LED_GREEN); + TSISensor tsi; + + while(true) { + led=1.0-tsi.readPercentage(); + wait(0.1); + } +}