mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
PPR1 WIP - hacky code to make LCD talk on I2C. Works!
This commit is contained in:
parent
c078c08c3e
commit
a102e49fdb
@ -245,7 +245,6 @@ build_flags = ${nrf52_base.build_flags} -Ivariants/ppr1
|
|||||||
src_filter = ${nrf52_base.src_filter} +<../variants/ppr1>
|
src_filter = ${nrf52_base.src_filter} +<../variants/ppr1>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${arduino_base.lib_deps}
|
${arduino_base.lib_deps}
|
||||||
UC1701
|
|
||||||
|
|
||||||
; Prototype eink/nrf52840/sx1262 device
|
; Prototype eink/nrf52840/sx1262 device
|
||||||
[env:eink]
|
[env:eink]
|
||||||
|
@ -250,6 +250,9 @@ void setup()
|
|||||||
// FIXME - move this someplace better
|
// FIXME - move this someplace better
|
||||||
pinMode(PIN_LCD_RESET, OUTPUT);
|
pinMode(PIN_LCD_RESET, OUTPUT);
|
||||||
digitalWrite(PIN_LCD_RESET, 0);
|
digitalWrite(PIN_LCD_RESET, 0);
|
||||||
|
delay(20);
|
||||||
|
digitalWrite(PIN_LCD_RESET, 1);
|
||||||
|
delay(20);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
scanI2Cdevice();
|
scanI2Cdevice();
|
||||||
|
@ -116,7 +116,7 @@ static const uint8_t AREF = PIN_AREF;
|
|||||||
|
|
||||||
// LCD
|
// LCD
|
||||||
|
|
||||||
// #define PIN_LCD_RESET 23 // active high?
|
#define PIN_LCD_RESET 23 // active low, pulse low for 20ms at boot
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPI Interfaces
|
* SPI Interfaces
|
||||||
|
Loading…
Reference in New Issue
Block a user