c.c.d

Dependencies:   mbed

Fork of FRDM_TSI by mbed official

Committer:
sral4054
Date:
Thu Oct 12 01:30:34 2017 +0000
Revision:
6:b891d792daf0
Parent:
1:51b1b688179a
Commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 0:0f00f07ebde0 1 #include "mbed.h"
chris 1:51b1b688179a 2 #include "TSISensor.h"
emilmont 0:0f00f07ebde0 3
emilmont 0:0f00f07ebde0 4 int main(void) {
chris 1:51b1b688179a 5 PwmOut led(LED_GREEN);
chris 1:51b1b688179a 6 TSISensor tsi;
emilmont 0:0f00f07ebde0 7
emilmont 0:0f00f07ebde0 8 while (true) {
chris 1:51b1b688179a 9 led = 1.0 - tsi.readPercentage();
chris 1:51b1b688179a 10 wait(0.1);
emilmont 0:0f00f07ebde0 11 }
chris 1:51b1b688179a 12 }