diff --git a/cheriot-rtos b/cheriot-rtos index 444e496..5668b9a 160000 --- a/cheriot-rtos +++ b/cheriot-rtos @@ -1 +1 @@ -Subproject commit 444e4965c1dc84414e4959d55e47b0e999c086c9 +Subproject commit 5668b9afd5d55ee750eed6077f72d3c2a6f35234 diff --git a/libraries/lcd.cc b/libraries/lcd.cc index 19fb4e0..8582c3b 100644 --- a/libraries/lcd.cc +++ b/libraries/lcd.cc @@ -64,7 +64,15 @@ namespace sonata::lcd::internal }; lcdIntf->gpio_write = [](void *handle, bool csHigh, bool dcHigh) -> uint32_t { - set_gpio_output_bit(LcdCsPin, csHigh); + if (csHigh) + { + spi()->cs = 1; + } + else + { + spi()->cs = 0; + } + set_gpio_output_bit(LcdDcPin, dcHigh); return 0; };