2023-01-09, 08:20 PM
Hi Onno,
Strange behaviour.
Some ideas: try lower the SPI frequency (in hat/ugfx/ugfx.cpp, try changing the default frequency of 1000000 Hz to something lower)
In the same file, you will see a few "write(spifd, cmd, sizeof cmd)", surounded by digitalWrite (dc, LOW) / digitalWrite (dc, HIGH). You can try adding some delays (using usleep(1000) for example for 1ms) somewhere here, after the write(spifd) and before digitalWrite(HIGH), or after the digitalWrite(HIGH), you need to play a bit with it to find out if that improves somehow the behaviour.
It could also be that something else changed...
Strange behaviour.
Some ideas: try lower the SPI frequency (in hat/ugfx/ugfx.cpp, try changing the default frequency of 1000000 Hz to something lower)
In the same file, you will see a few "write(spifd, cmd, sizeof cmd)", surounded by digitalWrite (dc, LOW) / digitalWrite (dc, HIGH). You can try adding some delays (using usleep(1000) for example for 1ms) somewhere here, after the write(spifd) and before digitalWrite(HIGH), or after the digitalWrite(HIGH), you need to play a bit with it to find out if that improves somehow the behaviour.
It could also be that something else changed...