File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33/ {
44 chosen {
5+ // chosen is a reserved node where you tell ZMK which keyboard to use.
56 zmk,keyboard = &cripchorder;
67 };
78
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};
You can’t perform that action at this time.
0 commit comments