This commit is contained in:
4pplet 2020-11-09 18:24:30 +01:00 committed by Stefan Sundin
parent 8be9227039
commit 553193b076
2 changed files with 15 additions and 0 deletions

View file

@ -25,4 +25,7 @@ config ZMK_BLE
config ZMK_USB config ZMK_USB
default y default y
config ZMK_BATTERY_VOLTAGE_DIVIDER
default y
endif # BOARD_CYBER60_A endif # BOARD_CYBER60_A

View file

@ -24,6 +24,14 @@
control-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; control-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
vbatt { // need to figure out the resistances
compatible = "zmk,battery-voltage-divider";
label = "BATTERY";
io-channels = <&adc 1>;
output-ohms = <2000000>;
full-ohms = <(2000000 + 806000)>;
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
red_led: led_3 { red_led: led_3 {
@ -90,6 +98,10 @@ RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4)
}; };
}; };
&adc {
status = "okay";
};
&usbd { &usbd {
status = "okay"; status = "okay";
}; };