Skip to content

Commit bacf8f7

Browse files
authored
Update cripchorder.overlay
1 parent 73b1d8d commit bacf8f7

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

config/boards/shields/cripchorder.overlay

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/ {
44
chosen {
5+
// chosen is a reserved node where you tell ZMK which keyboard to use.
56
zmk,keyboard = &cripchorder;
67
};
78

@@ -19,16 +20,20 @@
1920

2021
// OLED display
2122
&i2c1 {
22-
status = "okay";
23-
sda-pin = <20>;
24-
scl-pin = <21>;
25-
clock-frequency = <I2C_BITRATE_FAST>;
23+
// &i2c1: This is the hardware I²C bus on the Nice!Nano.
24+
status = "okay";
25+
sda-pin = <20>; // default I²C pin on the Nice!Nano. SDA is the data line.
26+
scl-pin = <21>; //default I²C pin on the Nice!Nano. SCL is the clock.
27+
clock-frequency = <I2C_BITRATE_FAST>; // This sets the speed of communication, you could also use STANDARD or FAST_PLUS.
2628

2729
oled@3c {
28-
compatible = "solomon,ssd1306fb";
30+
// this defines a display device at I²C address 0x3C , which is the default for most SSD1306 OLEDs
31+
compatible = "solomon,ssd1306fb"; // This tells ZMK that it’s an SSD1306-based OLED.
2932
reg = <0x3c>;
3033
width = <128>;
3134
height = <32>;
35+
// width and height set the resolution of the display.
36+
// This is standard for many small OLEDs.
3237
};
3338
};
3439
};

0 commit comments

Comments
 (0)