Use the same U8g2lib.cpp and U8x8lib.cpp for different ports

This commit is contained in:
wuhanstudio 2021-10-06 09:11:30 +01:00
parent cfc42f2105
commit 51dc5b6e89
4 changed files with 10 additions and 3 deletions

View File

@ -44,7 +44,9 @@ static Print *u8g2_print_for_screenshot;
void u8g2_print_callback(const char *s)
{
// yield();
#ifdef ARDUINO
yield();
#endif
u8g2_print_for_screenshot->print(s);
}

View File

@ -1650,6 +1650,7 @@ extern "C" uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t a
#ifdef U8X8_USE_PINS
/*

View File

@ -44,7 +44,9 @@ static Print *u8g2_print_for_screenshot;
void u8g2_print_callback(const char *s)
{
// yield();
#ifdef ARDUINO
yield();
#endif
u8g2_print_for_screenshot->print(s);
}

View File

@ -49,6 +49,7 @@
#endif
/*=============================================*/
size_t U8X8::write(uint8_t v)
@ -1641,8 +1642,9 @@ extern "C" uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t a
}
#endif
#endif /*ARDUINO*/
#endif