Ajout Display dans while(1).
L'écran reste bloqué en Busy et ne change pas.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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(" ");
|
||||
|
||||
Reference in New Issue
Block a user