Commit graph

6 commits

Author SHA1 Message Date
Olivier Goffart
2b629a811b MCU: Have different frenquencies between the touch and the LCD on the pico
The LCD frequency can be up to 18Hz, which makes the screen refresh much faster.
But the touch screen can't support this.

Also average the points on the touch screen because otherwise we have too much noise
2022-01-24 11:06:36 +01:00
Olivier Goffart
ad2894e71b MCU: use a rp_pico::hal::Timer instead of the RealTimeClock
It has millisecond accurency, which is what we want
2022-01-24 11:06:36 +01:00
Olivier Goffart
e3f312633f MCU: Panic handler that prints the panic message on the screen 2022-01-24 11:06:36 +01:00
Olivier Goffart
d9622a9795 MCU: attempt to support the xpt2046 touch screen
Still not very well callibrated, but somehow works
2022-01-21 15:35:14 +01:00
Olivier Goffart
a746cefb18 MCU: make a backend that can run an eventloop 2022-01-21 15:35:14 +01:00
Simon Hausmann
93a0c5bc60 Make the mcu backend compile for the pico with the st7789 driven screen
This bundles all the board specific code in the mcu crate. There's much
to do though, so this is just a rough start and when it's all done we
should probably squash this.

Since the mcu crate dependencies require nightly and our CI builds with
stable, this removes the mcu backend from the default build and the ci.
2022-01-04 16:06:00 +01:00