You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i2c-exp is not able to be compiled on 22.03 due to a lack of support for python2. We have been working on trying to port it over, has there been any work on getting the i2c-exp drivers working for the Omega2 Pro or LTE so we can use i2c to read battery voltages and get power-dock to work?
To Reproduce
Expected behavior
Getting work power-dock, i2c-exp driver for 22.03
Screenshots or Console output
Version Info (please complete the following information):
Firmware version: 22.03 openwrt
Package name i2c-exp, power-dock
Repo branch (if applicable) openwrt-22.03
Additional context
The text was updated successfully, but these errors were encountered:
Thanks for the issue. I'll address both packages here, but in future feel free to make separate issues.
Power Dock
Reading the battery level is actually very straight-forward. It involves reading 2 GPIOs and doesn't use the I2C bus at all.
The battery level is just based on this truth table:
GPIO 18 GPIO16 Battery level
(level1) (level0)
----------------------------------------
HIGH LOW 4/4 - 100%
HIGH HIGH 3/4 - 75%
LOW HIGH 2/4 - 50%
LOW LOW 1/4 - 25%
Looking back, it was 100% overkill to write a C program to do this. At this point I would recommend writing a small sh script to read the battery level. See the beta firmware documentation on GPIOs for more info.
Let me know if you need some pointers with a script
I2C Exp
Can you give me more context on what you need the i2c-exp packages for?
Our preference is to not port these packages to the new firmware for a few reasons:
They're an ok I2C implementation, but there's implementations out there that are better in every way (code quality, documentation, maintenance)
Instead of maintaining old packages that provide marginal benefits, we want to focus our development efforts on what Omega2 users actually find important
That's why I ask about the context. If you need help with getting something specific working, we can work in that direction and/or suggest alternative methods.
What package does this bug affect?
i2c-exp
Describe the bug
i2c-exp is not able to be compiled on 22.03 due to a lack of support for python2. We have been working on trying to port it over, has there been any work on getting the i2c-exp drivers working for the Omega2 Pro or LTE so we can use i2c to read battery voltages and get power-dock to work?
To Reproduce
Expected behavior
Getting work power-dock, i2c-exp driver for 22.03
Screenshots or Console output
Version Info (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: