epaper
Dependents: epaper_mbed_test_copy1
Fork of EaEpaper by
main.c
- Committer:
- fenoth
- Date:
- 2014-04-08
- Revision:
- 3:6e990a69c6cf
File content as of revision 3:6e990a69c6cf:
#include "mbed.h" #include "EaEpaper.h" #include "QR_Encode.h" EaEpaper epaper; int main() { string d; d = "alufit"; BYTE QR_m_data[3917]; //max possible bits resolution 177*177/8+1 int QR_width=EncodeData(3,3,d,0,QR_m_data); for(int y=0;y<QR_width;y++) { for(int x=0;x<QR_width;x++) { int value = get_next_bit(); epaper.clear(); while(1) { epaper.write(img0_bits); wait(10); epaper.write(x,y,value); wait(10); } }} return 0; }