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.
main.cpp@0:0959f6b614a2, 2014-03-11 (annotated)
- Committer:
- murilopontes
- Date:
- Tue Mar 11 03:53:27 2014 +0000
- Revision:
- 0:0959f6b614a2
- Child:
- 1:e1b8d88fa26d
tiny shell demo project
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
murilopontes | 0:0959f6b614a2 | 1 | #include "mbed.h" |
murilopontes | 0:0959f6b614a2 | 2 | |
murilopontes | 0:0959f6b614a2 | 3 | DigitalOut myled(LED1); |
murilopontes | 0:0959f6b614a2 | 4 | |
murilopontes | 0:0959f6b614a2 | 5 | int main() { |
murilopontes | 0:0959f6b614a2 | 6 | while(1) { |
murilopontes | 0:0959f6b614a2 | 7 | myled = 1; |
murilopontes | 0:0959f6b614a2 | 8 | wait(0.2); |
murilopontes | 0:0959f6b614a2 | 9 | myled = 0; |
murilopontes | 0:0959f6b614a2 | 10 | wait(0.2); |
murilopontes | 0:0959f6b614a2 | 11 | } |
murilopontes | 0:0959f6b614a2 | 12 | } |