NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
LED/LED.h@0:0c4fafa398b4, 2012-09-26 (annotated)
- Committer:
- maetugr
- Date:
- Wed Sep 26 12:15:00 2012 +0000
- Revision:
- 0:0c4fafa398b4
- Child:
- 1:5a64632b1eb9
Sensor Test; Acc, Gyro working, result on LCD (servo lib included)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maetugr | 0:0c4fafa398b4 | 1 | // by MaEtUgR |
maetugr | 0:0c4fafa398b4 | 2 | |
maetugr | 0:0c4fafa398b4 | 3 | #ifndef __LED_H |
maetugr | 0:0c4fafa398b4 | 4 | #define __LED_H |
maetugr | 0:0c4fafa398b4 | 5 | |
maetugr | 0:0c4fafa398b4 | 6 | #include "mbed.h" |
maetugr | 0:0c4fafa398b4 | 7 | |
maetugr | 0:0c4fafa398b4 | 8 | class LED { |
maetugr | 0:0c4fafa398b4 | 9 | |
maetugr | 0:0c4fafa398b4 | 10 | public: |
maetugr | 0:0c4fafa398b4 | 11 | LED(); |
maetugr | 0:0c4fafa398b4 | 12 | void shownumber(int number); |
maetugr | 0:0c4fafa398b4 | 13 | void roll(int times); |
maetugr | 0:0c4fafa398b4 | 14 | void tilt(int index); |
maetugr | 0:0c4fafa398b4 | 15 | |
maetugr | 0:0c4fafa398b4 | 16 | private: |
maetugr | 0:0c4fafa398b4 | 17 | BusOut Led; |
maetugr | 0:0c4fafa398b4 | 18 | }; |
maetugr | 0:0c4fafa398b4 | 19 | |
maetugr | 0:0c4fafa398b4 | 20 | #endif |