mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-07-06 18:01:34 +02:00
fix: add smbus2 dependency, i2c-tools, and use hex I2C addresses in docs
- Add smbus2>=0.4.0 to pyproject.toml core dependencies so it is always present in the venv rather than relying on runtime auto-install - Add i2c-tools to apt-get installs in both install and upgrade paths so /dev/i2c-* devices are accessible and i2cdetect is available for diagnostics (service user was already being added to the i2c group) - Switch ENS210 config examples to hex I2C address notation (0x43) to match datasheets and i2cdetect output; update contributor docs guidance accordingly Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,7 @@ Find the `sensors.definitions` block and add your sensor alongside the existing
|
||||
# some_option: value
|
||||
```
|
||||
|
||||
Use decimal for numeric config values that would naturally be written in hex (e.g. I2C addresses: `0x43` = `67`). Add a comment showing both forms if the value is commonly written in hex.
|
||||
Use hex notation for I2C addresses (e.g. `0x43`) as this matches how addresses are listed in datasheets and tools like `i2cdetect`.
|
||||
|
||||
### 3. Test locally
|
||||
|
||||
|
||||
Reference in New Issue
Block a user