PPR1 WIP - hacky code to make LCD talk on I2C. Works!

pull/503/head
Kevin Hester 2020-10-23 17:10:48 +08:00
rodzic c078c08c3e
commit a102e49fdb
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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]

Wyświetl plik

@ -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();

Wyświetl plik

@ -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