We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e1c8de commit cde0859Copy full SHA for cde0859
java/libraries/io/examples/I2CScreen/I2CScreen.pde
@@ -8,11 +8,14 @@ void setup() {
8
9
// the display can be set to one of these two addresses: 0x3c (default) or 0x3d
10
// (they might be listed as 0x7a and 0x7b on the circuit board)
11
- oled = new SSD1306(I2C.list()[0], 0x3c);
+
12
+ // you might need to use a different interface on other SBCs
13
+ oled = new SSD1306("i2c-1", 0x3c);
14
}
15
16
void draw() {
- line(0, 0, 127, 63);
- line(0, 63, 127, 0);
17
- oled.sendImage(get());
+ background(255);
18
+ line(0, 0, 127, 63);
19
+ line(0, 63, 127, 0);
20
+ oled.sendImage(get());
21
0 commit comments