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:
- 4:86114342ce8f
- Parent:
- 3:dc7b794b59b7
- Child:
- 5:6709a20459ad
- Child:
- 6:45d2ec037fd6
--- a/GDEP015OC1.cpp Thu Sep 15 12:12:34 2016 +0000 +++ b/GDEP015OC1.cpp Tue Sep 20 10:11:07 2016 +0000 @@ -146,6 +146,10 @@ return mirror; } +void GDEP015OC1::fill(unsigned char data, int x){ + _buffer[x] = data; +} + void GDEP015OC1::empty(void){ for(uint16_t x=0; x<5000; x++) _buffer[x] = 0x00; @@ -321,5 +325,5 @@ while(*(string+length) != '\0') length++; for(uint8_t x=0; x<length; x++) - writeChar(*(string+x), startX+(FONT_WIDTH)*x, startY, color); + writeChar(*(string+x), startX+(FONT_WIDTH+1)*x, startY, color); //FONT_WIDTH+1 gives a 1px space between the characters } \ No newline at end of file