From a102e49fdb9f186309d19fadeaa4bc98ad8b551a Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Fri, 23 Oct 2020 17:10:48 +0800 Subject: [PATCH] PPR1 WIP - hacky code to make LCD talk on I2C. Works! --- platformio.ini | 1 - src/main.cpp | 3 +++ variants/ppr1/variant.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 1ff93a3d5..12d41772f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -245,7 +245,6 @@ build_flags = ${nrf52_base.build_flags} -Ivariants/ppr1 src_filter = ${nrf52_base.src_filter} +<../variants/ppr1> lib_deps = ${arduino_base.lib_deps} - UC1701 ; Prototype eink/nrf52840/sx1262 device [env:eink] diff --git a/src/main.cpp b/src/main.cpp index 9e80a1343..922e1dd3e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -250,6 +250,9 @@ void setup() // FIXME - move this someplace better pinMode(PIN_LCD_RESET, OUTPUT); digitalWrite(PIN_LCD_RESET, 0); + delay(20); + digitalWrite(PIN_LCD_RESET, 1); + delay(20); #endif scanI2Cdevice(); diff --git a/variants/ppr1/variant.h b/variants/ppr1/variant.h index 57b4e9c38..e0ca6ec19 100644 --- a/variants/ppr1/variant.h +++ b/variants/ppr1/variant.h @@ -116,7 +116,7 @@ static const uint8_t AREF = PIN_AREF; // LCD -// #define PIN_LCD_RESET 23 // active high? +#define PIN_LCD_RESET 23 // active low, pulse low for 20ms at boot /* * SPI Interfaces