This is FlexLEDTapeLibrary
Fork of ws2801 by
a101.h@8:28d3f6703e22, 2012-12-28 (annotated)
- Committer:
- hototogisu
- Date:
- Fri Dec 28 10:27:10 2012 +0000
- Revision:
- 8:28d3f6703e22
This is FlexLEDTapeLibrary
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hototogisu | 8:28d3f6703e22 | 1 | #ifndef A101_H |
hototogisu | 8:28d3f6703e22 | 2 | #define A101_H |
hototogisu | 8:28d3f6703e22 | 3 | |
hototogisu | 8:28d3f6703e22 | 4 | #define RESET_DERAY 2500 |
hototogisu | 8:28d3f6703e22 | 5 | |
hototogisu | 8:28d3f6703e22 | 6 | #include "mbed.h" |
hototogisu | 8:28d3f6703e22 | 7 | |
hototogisu | 8:28d3f6703e22 | 8 | class a101 { |
hototogisu | 8:28d3f6703e22 | 9 | |
hototogisu | 8:28d3f6703e22 | 10 | private: |
hototogisu | 8:28d3f6703e22 | 11 | DigitalOut _CKI; |
hototogisu | 8:28d3f6703e22 | 12 | DigitalOut _SDI; |
hototogisu | 8:28d3f6703e22 | 13 | int _ledLength; |
hototogisu | 8:28d3f6703e22 | 14 | int _tapeLength; |
hototogisu | 8:28d3f6703e22 | 15 | |
hototogisu | 8:28d3f6703e22 | 16 | public: |
hototogisu | 8:28d3f6703e22 | 17 | a101(PinName CKI, PinName SDI, int ledLength = 24, int tapeLength = 1); |
hototogisu | 8:28d3f6703e22 | 18 | void post(int *strip_colors); |
hototogisu | 8:28d3f6703e22 | 19 | |
hototogisu | 8:28d3f6703e22 | 20 | private: |
hototogisu | 8:28d3f6703e22 | 21 | void padding1(); |
hototogisu | 8:28d3f6703e22 | 22 | void padding0(); |
hototogisu | 8:28d3f6703e22 | 23 | void operate(); |
hototogisu | 8:28d3f6703e22 | 24 | void clear(); |
hototogisu | 8:28d3f6703e22 | 25 | }; |
hototogisu | 8:28d3f6703e22 | 26 | |
hototogisu | 8:28d3f6703e22 | 27 | #endif |
hototogisu | 8:28d3f6703e22 | 28 |