A recreation of the original, out of the packet demo code that runs on the FRDM-KL25Z board, using pre-existing libraries on mbed. The board will alter its RGB LED colours based on accelerometer data, and the capacitance slider will alter the brightness. * Fully Commented *
Dependencies: MMA8451Q TSI mbed
Fork of FRDM_TSI by
main.cpp
- Committer:
- chris
- Date:
- 2012-10-12
- Revision:
- 1:51b1b688179a
- Parent:
- 0:0f00f07ebde0
- Child:
- 6:8613f791ee14
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); } }