Ajout Display dans while(1).

L'écran reste bloqué en Busy et ne change pas.
This commit is contained in:
2022-09-12 16:53:19 +02:00
parent 4ac247632c
commit 5e2b3eaf16
4 changed files with 9 additions and 6 deletions

View File

@@ -153,9 +153,9 @@ void epaper_senddata(uint8_t data)
void epaper_reset()
{
_epaper_digitalwrite(RST_PIN, 0);
for(uint32_t i = 0; i<10000; i++);
for(uint32_t i = 0; i<1000; i++);
_epaper_digitalwrite(RST_PIN, 1);
for(uint32_t i = 0; i<10000; i++);
for(uint32_t i = 0; i<1000; i++);
}
void epaper_setframe(uint8_t* image_buffer, uint16_t x, uint16_t y, uint16_t w, uint16_t h)

View File

@@ -20,15 +20,17 @@ int main(void) {
init_lcd();
lcd_puts("Test e-paper");
lcd_position(1, 0);
lcd_puts("Initialisation ok ");
lcd_puts("Init ok ");
int j = 0;
while(1) {
for(int i = 100000; i>0; i--);
epaper_clearframe(0xFF);
epaper_display();
for(int i = 100000; i>0; i--);
epaper_clearframe(0x88);
epaper_display();
lcd_position(1, 0);
lcd_puts(" ");