![](/media/cache/profiles/Pass2.jpg.50x50_q85.jpg)
TSI read values are now sent to the serial port. Red LED part of the RGB will light up with an intensity that depends on the TSI read value.
Fork of FRDM_TSI by
main.cpp
- Committer:
- chris
- Date:
- 2012-10-12
- Revision:
- 1:51b1b688179a
- Parent:
- 0:0f00f07ebde0
- Child:
- 6:288cb3530ef4
File content as of revision 1:51b1b688179a:
#include "mbed.h" #include "TSISensor.h" int main(void) { PwmOut led(LED_GREEN); TSISensor tsi; while (true) { led = 1.0 - tsi.readPercentage(); wait(0.1); } }