Skip to content

Instantly share code, notes, and snippets.

@ArduinoDiscordBot
Created November 24, 2020 23:33
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 ArduinoDiscordBot/047dfde9c9b74730eef83b8a92384613 to your computer and use it in GitHub Desktop.
Save ArduinoDiscordBot/047dfde9c9b74730eef83b8a92384613 to your computer and use it in GitHub Desktop.
Code by Benjamin4456#2492 - Tue Nov 24 2020 23:33:39 GMT+0000 (Coordinated Universal Time)

This gist was pasted by the Arduino discord server bot.

This gist was automatically pasted at the request of the code author or one of the discord server helpers. If you have any suggestions or bugs to report, you can do so on our GitHub repository, or in our discord server. This project is run by volunteers so feel free to fork and commit your changes then open a pull request!


⬇️ Pasted Code ⬇️

Serial.begin(9600);
Wire.begin();
Wire.beginTransmission(0x44);
Wire.write(0x00);
Wire.write(0x03);
Wire.endTransmission();
Wire.beginTransmission(0x44);
Wire.write(0x00);
Wire.endTransmission();
Wire.requestFrom(0x44, 1);
while(Wire.available()) {
Serial.println(Wire.read());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment