This is the code used on my video series "Hybrid Supercapacitor Car Battery" for my own hardware monitoring system. THe videos can be found on madelectronengineering.com
Dependencies: BurstSPI Fonts INA219 mbed LPC1114_WakeInterruptIn
Fork of SharpMemoryLCD by
Diff: SharpLCD.cpp
- Revision:
- 2:0c49a8f32f6e
- Parent:
- 0:0a76610c48a1
diff -r 1bd2b42b305d -r 0c49a8f32f6e SharpLCD.cpp --- a/SharpLCD.cpp Tue Aug 25 21:15:06 2015 +0000 +++ b/SharpLCD.cpp Tue Dec 26 21:30:09 2017 +0000 @@ -112,7 +112,7 @@ : spi(mosi, miso, sclk), chipSelect(chipSelect), Enable(enable), ExtCom(extcom) { //Initialize - spi.frequency(3500000);// Nominal speed is 1MHz, tested working at 3MHz + spi.frequency(1000000);// Nominal speed is 1MHz, tested working at 3MHz lcdPolarity = 0; rowCount = 0; memset((uint8_t*)pixelBuffer, White, sizeof(pixelBuffer)); // init full pixel buffer to White @@ -141,6 +141,12 @@ Enable = 0; } +void SharpLCD::clearspace() { + // set pixel buffer to zero but do not blank screen + memset((void*)pixelBuffer, foreground, sizeof(pixelBuffer)); + memset((void*)RowState, 0, sizeof(RowState)); + } + void SharpLCD::clearImmediate() { // Clear out the pixel buffer memset((void*)pixelBuffer, foreground, sizeof(pixelBuffer));