For what I've seen, enable the I2C "manually" seems quite easy, only requiring to edit:
- the
/etc/modules file to add i2c-dev
- the
/boot/config.txt file and uncomment the dtparam=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?
For what I've seen, enable the I2C "manually" seems quite easy, only requiring to edit:
/etc/modulesfile to addi2c-dev/boot/config.txtfile and uncomment thedtparam=i2c_arm=onentry.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-configand search for that).Does this seems feasible/ make sense?