Skip to content

Instantly share code, notes, and snippets.

@jenschr
Created August 10, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenschr/5fed7920d861cc3e0b753dd64ed3cc68 to your computer and use it in GitHub Desktop.
Save jenschr/5fed7920d861cc3e0b753dd64ed3cc68 to your computer and use it in GitHub Desktop.
i2cDetect script for the Banggood version of TTGO LoRa32
#include <Wire.h>
#include <i2cdetect.h>
void setup() {
// The Oled screen won't be visible unless we set the RESET line on the screen high
pinMode (16, OUTPUT);
digitalWrite (16, HIGH); // while OLED is running, GPIO16 must go high
// Rather than
Wire.begin(4, 15);
Serial.begin(9600);
Serial.println("i2cdetect example\n");
Serial.print("Scanning address range 0x03-0x77\n\n");
}
void loop() {
i2cdetect(); // default range from 0x03 to 0x77
delay(2000);
}
@jenschr
Copy link
Author

jenschr commented Aug 10, 2019

Well working and documented LoRa examples and reference here: https://github.com/YogoGit/TTGO-LORA32-V1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment