sota
Dependencies: mbed
Fork of newdot by
Diff: main.cpp
- Revision:
- 0:6e7a6e71dad3
- Child:
- 1:be91a16b48ea
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Dec 03 10:17:37 2016 +0000 @@ -0,0 +1,27 @@ +/***************** 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; + + +}