Skip to content
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

@DanielSSilva

Description

@DanielSSilva

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions