EPD display library.
Dependents: acd52832_ePaper acd52832_SAADC_Differential_input_2 acd52832_SAADC_Differential_input_EPD acd52832_Car_battery_ch ... more
Fork of GDEP015OC1 by
Diff: GDEP015OC1.cpp
- Revision:
- 8:5ae728fa8820
- Parent:
- 7:70c58d3cbc8b
- Child:
- 9:9c1a15bd5ef1
- Child:
- 13:69815a4fce04
--- a/GDEP015OC1.cpp Mon Sep 26 10:08:14 2016 +0000 +++ b/GDEP015OC1.cpp Wed Feb 22 07:52:45 2017 +0000 @@ -5,6 +5,8 @@ #include "GDEP015OC1.h" #include "5x7.h" +#define EPD_WAIT_CONSTANT 100 + static const unsigned char _lutFull[] = { 0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x22, 0x22, 0x66, 0x69, 0x69, 0x59, 0x58, 0x99, 0x99, 0x88, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xB4, 0x13, 0x51, 0x35, 0x51, 0x51, 0x19, 0x01, 0x00 @@ -43,9 +45,9 @@ void GDEP015OC1::_wakeUp(bool partial){ _rst = 0; - wait_ms(10); + wait_ms(EPD_WAIT_CONSTANT); _rst = 1; - wait_ms(10); + wait_ms(EPD_WAIT_CONSTANT); //Stage 3 //Driver Output control @@ -183,7 +185,7 @@ for(int16_t x=0; x>=0 && x<200; x++){ for(int16_t y=24; y>=0 && y<25; y--){ _spiData(_mirrorData(_pixelConv(_buffer, x*25+y))); - wait_us(10); + wait_us(EPD_WAIT_CONSTANT); } } @@ -207,7 +209,7 @@ for(int16_t x=0; x>=0 && x<200; x++){ for(int16_t y=24; y>=0 && y<25; y--){ _spiData(_mirrorData(_pixelConv(_buffer, x*25+y))); - wait_us(10); + wait_us(EPD_WAIT_CONSTANT); } }