sota
Dependencies: mbed
Fork of newdot by
main.cpp
- Committer:
- dragondrunk
- Date:
- 2016-12-03
- Revision:
- 0:6e7a6e71dad3
- Child:
- 1:be91a16b48ea
File content as of revision 0:6e7a6e71dad3:
/***************** For test only ****************/ #include "mbed.h" #include "ColorMbed.h" ColorMbed dotmatrix; Timer t; int main(){ // uint8_t rgb[3] = {255,255,100}; uint8_t rgb[3] = {10,20,0}; uint8_t pic[8] = {0x1C,0x00,0x20,0x20,0x20,0x20,0x00,0x00}; uint8_t pic2[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80}; uint8_t dream_ship[8] = {0x40,0x50,0x41,0x4E,0x00,0x92,0x14,0x04}; // for coordinate //uint8_t pic2[8] = {0x7E,0xDF,0xFF,0xF0,0xFF,0x7E,0x3C,0x3C}; //uint8_t tmp_pic[8] = {0}; dotmatrix.init(); while(1){ dotmatrix.display_pic(dream_ship,rgb); } return 0; }