SW I2C, issue 2744

This commit is contained in:
olikraus
2026-03-08 07:49:39 +01:00
parent 0df96f84d9
commit 3f30eca263
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -143,8 +143,10 @@ extern "C" uint8_t u8x8_gpio_and_delay_arduino(u8x8_t *u8x8, uint8_t msg, uint8_
case U8X8_MSG_GPIO_I2C_DATA:
if ( arg_int == 0 )
{
pinMode(u8x8_GetPinValue(u8x8, msg), OUTPUT);
// the next two lines are swapped https://github.com/olikraus/u8g2/issues/2744
// pinMode(u8x8_GetPinValue(u8x8, msg), OUTPUT);
digitalWrite(u8x8_GetPinValue(u8x8, msg), 0);
pinMode(u8x8_GetPinValue(u8x8, msg), OUTPUT);
}
else
{