cont
This commit is contained in:
parent
8be9227039
commit
553193b076
2 changed files with 15 additions and 0 deletions
|
@ -25,4 +25,7 @@ config ZMK_BLE
|
|||
config ZMK_USB
|
||||
default y
|
||||
|
||||
config ZMK_BATTERY_VOLTAGE_DIVIDER
|
||||
default y
|
||||
|
||||
endif # BOARD_CYBER60_A
|
||||
|
|
|
@ -24,6 +24,14 @@
|
|||
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 {
|
||||
compatible = "gpio-leds";
|
||||
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 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue