voltage and current sensing

This commit is contained in:
2024-04-23 23:25:03 -06:00
parent 8bf321c11c
commit e1772508fe
2 changed files with 43 additions and 9 deletions

View File

@ -101,12 +101,6 @@
label = "Interrupt from BMP388 barometer";
zephyr,code = <INPUT_KEY_0>;
};
int_pow: int_pow {
gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Interrupt from current sensor";
zephyr,code = <INPUT_KEY_0>;
};
};
@ -145,7 +139,6 @@
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
ssd1306: ssd1306@3d {
compatible = "solomon,ssd1306fb";
reg = <0x3d>;
@ -159,6 +152,15 @@
com-invdir;
prechargep = <0x22>;
};
ina231: ina231@45 {
compatible = "ti,ina230";
reg = <0x45>;
// irq-gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
current-lsb-microamps = <7>;
rshunt-micro-ohms = <50000>;
adc-mode = "Bus and shunt voltage continuous";
};
};
&spi1 {