This repository was archived by the owner on Jun 14, 2024. It is now read-only.
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
Detect if I2C is enable and possibly enable it if user agrees #40
Open
Description
For what I've seen, enable the I2C "manually" seems quite easy, only requiring to edit:
- the
/etc/modules
file to addi2c-dev
- the
/boot/config.txt
file and uncomment thedtparam=i2c_arm=on
entry.
If this is all that it takes, when the user imports this module, we can check if the i2c is already enabled and display a warning if it's not. Even better would be to prompt the user if he wants to enable it (avoiding the process of running sudo raspi-config
and search for that).
Does this seems feasible/ make sense?
Metadata
Metadata
Assignees
Labels
No labels