From e615baef88315c078baf3007e7cc6bf8ae316509 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Mon, 22 Jul 2019 19:07:30 +0200 Subject: [PATCH] fix(display): Reduce SPI frequency to increase stability --- lib/card10/card10.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/card10/card10.c b/lib/card10/card10.c index 8f9587d2..eaedb136 100644 --- a/lib/card10/card10.c +++ b/lib/card10/card10.c @@ -24,7 +24,11 @@ #include <stdint.h> #include <string.h> -#define SPI_SPEED (15 * 1000 * 1000 * 1) // Bit Rate. Display has 15 MHz limit +/* XXX: The display supports max 15 Mhz, but we have stability issues at that rate. + * Current suspicion is that the SDK is buggy. + * + * At 12 MHz things seem stable*/ +#define SPI_SPEED (12 * 1000 * 1000) // Bit Rate. Display has 15 MHz limit const gpio_cfg_t bhi_interrupt_pin = {PORT_0, PIN_13, GPIO_FUNC_IN, GPIO_PAD_PULL_UP}; -- GitLab