sforkowany z mirror/meshtastic-firmware
PPR1 WIP - hacky code to make LCD talk on I2C. Works!
rodzic
c078c08c3e
commit
a102e49fdb
|
@ -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]
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue