tinyshell demo example
Dependencies: mbed tinyshell MMA8451Q mbed-rtos tsi_sensor cc1101
Demonstrate how to implement commands to test all hardware avaliable in the board using shell commands.
TSI Sensor percentage
MMA8451Q Accelerometer values with RGB Led PWM.
mbed-RTOS test all features.
Diff: main.cpp
- Revision:
- 0:0959f6b614a2
- Child:
- 1:e1b8d88fa26d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 11 03:53:27 2014 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}