@@ -149,7 +149,6 @@ void Adafruit_ACEP::deGhost() {
149
149
}
150
150
}
151
151
152
-
153
152
/* *************************************************************************/
154
153
/* !
155
154
@brief clear the display twice to remove any spooky ghost images
@@ -195,7 +194,7 @@ void Adafruit_ACEP::drawPixel(int16_t x, int16_t y, uint16_t color) {
195
194
y = _HEIGHT - y - 1 ;
196
195
break ;
197
196
}
198
- uint32_t addr = ((uint32_t )x + (uint32_t )y* WIDTH)/ 2 ;
197
+ uint32_t addr = ((uint32_t )x + (uint32_t )y * WIDTH) / 2 ;
199
198
bool lower_nibble = x % 2 ;
200
199
uint8_t color_c;
201
200
@@ -213,13 +212,12 @@ void Adafruit_ACEP::drawPixel(int16_t x, int16_t y, uint16_t color) {
213
212
*pBuf &= 0x0F ; // save lower nib
214
213
*pBuf |= (color & 0xF ) << 4 ;
215
214
}
216
-
215
+
217
216
if (use_sram) {
218
217
sram.write8 (colorbuffer_addr + addr, *pBuf);
219
218
}
220
219
}
221
220
222
-
223
221
/* *************************************************************************/
224
222
/* !
225
223
@brief wait for busy signal to end
@@ -246,7 +244,6 @@ void Adafruit_ACEP::begin(bool reset) {
246
244
delay (100 );
247
245
}
248
246
249
-
250
247
/* *************************************************************************/
251
248
/* !
252
249
@brief Transfer the data stored in the buffer(s) to the display
@@ -268,12 +265,10 @@ void Adafruit_ACEP::display(bool sleep) {
268
265
deGhost ();
269
266
delay (500 );
270
267
271
-
272
268
#ifdef EPD_DEBUG
273
269
Serial.println (" Powering Up" );
274
270
#endif
275
271
276
-
277
272
powerUp ();
278
273
279
274
#ifdef EPD_DEBUG
@@ -300,14 +295,13 @@ void Adafruit_ACEP::display(bool sleep) {
300
295
}
301
296
}
302
297
303
-
304
298
/* *************************************************************************/
305
299
/* !
306
300
@brief signal the display to update
307
301
*/
308
302
/* *************************************************************************/
309
303
void Adafruit_ACEP::update (void ) {
310
-
304
+
311
305
uint8_t buf[4 ];
312
306
313
307
EPD_command (ACEP_POWER_ON);
@@ -352,8 +346,6 @@ void Adafruit_ACEP::powerUp() {
352
346
delay (100 );
353
347
}
354
348
355
-
356
-
357
349
/* *************************************************************************/
358
350
/* !
359
351
@brief wind down the display
0 commit comments