This is a remake of tetris game for mbed. Please see detail here http://developer.mbed.org/users/sucrelv/notebook/tetris-game-on-mbed
Dependencies: 4DGL-uLCD-SE PinDetect SDFileSystem mbed-rtos mbed wave_player
Shiftbrite/Shiftbrite.h@0:3b5e97ab5884, 2014-10-21 (annotated)
- Committer:
- sucrelv
- Date:
- Tue Oct 21 15:10:36 2014 +0000
- Revision:
- 0:3b5e97ab5884
initial upload
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sucrelv | 0:3b5e97ab5884 | 1 | #include "mbed.h" |
sucrelv | 0:3b5e97ab5884 | 2 | |
sucrelv | 0:3b5e97ab5884 | 3 | |
sucrelv | 0:3b5e97ab5884 | 4 | class Shiftbrite{ |
sucrelv | 0:3b5e97ab5884 | 5 | public: |
sucrelv | 0:3b5e97ab5884 | 6 | Shiftbrite(PinName pin_e, PinName pin_l, PinName pin_do,PinName pin_di, PinName pin_clk); |
sucrelv | 0:3b5e97ab5884 | 7 | void RGB(int red, int green, int blue); |
sucrelv | 0:3b5e97ab5884 | 8 | |
sucrelv | 0:3b5e97ab5884 | 9 | |
sucrelv | 0:3b5e97ab5884 | 10 | private: |
sucrelv | 0:3b5e97ab5884 | 11 | DigitalOut _pin_e; |
sucrelv | 0:3b5e97ab5884 | 12 | DigitalOut _pin_l; |
sucrelv | 0:3b5e97ab5884 | 13 | SPI _spi; |
sucrelv | 0:3b5e97ab5884 | 14 | |
sucrelv | 0:3b5e97ab5884 | 15 | |
sucrelv | 0:3b5e97ab5884 | 16 | }; |