lnlp / LMIC-node

LMIC-node | One example to rule them all. LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.
MIT License
208 stars 102 forks source link

USE_DISPLAY Not working TTGO-Lora32 V1.3 #43

Open kskenyon opened 2 years ago

kskenyon commented 2 years ago

I have two new V1.3 TTGO-Lora32 and as far as I can tell everything is configured correctly but the display is either blank or not working. I know the display is good because it worked with the stock firmware. Has something changed in recent V1.3 hardware?

kskenyon commented 2 years ago

After much diddling around I discovered that the new v1.3 marked board uses the code base for v2. So just select v2 when uploading to this board. It does not have a controllable LED.

PLAyerNos commented 2 years ago

Selecting 'heltec_wifi_lora_32' is another option👍

lnlp commented 2 years ago

@kskenyon I just did a brief check in de V1.3's schematic diagram and it appears that definition of SDA and SCL pins in LMIC-node are set incorrectly for the TTGO LoRa32 V1.3. The I2C pin definitions used are (still) from v1.0 versions of this board.

I will have a further look at the issue and add a fix later.

I have none of the TTGO LoRa32 v1.x boards myself for testing. Unfortunately documentation for the TTGO boards is often poor, not available or contains errors, there is little consistency between different versions of their boards and proper Arduino support for each board version is lacking, making it very difficult to support these boards (especially without access to the hardware)

julianwue commented 1 year ago

@lnlp Had the same problem with an old Lora32 v1. The I2C reset pin was missing, but with PIN 16 the display works for me.

Changed the file "bsf_ttgo_lora32_v1.h" in line 121 from

U8X8_SSD1306_128X64_NONAME_HW_I2C display(/*rst*/ U8X8_PIN_NONE, /*scl*/ 15, /*sda*/ 4);

to

U8X8_SSD1306_128X64_NONAME_HW_I2C display(/*rst*/ 16, /*scl*/ 15, /*sda*/ 4);

Also the Board LED works on pin 2 with this code in line 117 EasyLed led(LED_BUILTIN, EasyLed::ActiveLevel::High); _(and uncommented -D USELED 423 in platformio.ini )