Created
August 10, 2019 14:01
-
-
Save jenschr/5fed7920d861cc3e0b753dd64ed3cc68 to your computer and use it in GitHub Desktop.
i2cDetect script for the Banggood version of TTGO LoRa32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well working and documented LoRa examples and reference here: https://github.com/YogoGit/TTGO-LORA32-V1.0