Files
HardwareAdapter/controller/README.md

23 lines
602 B
Markdown
Raw Normal View History

2025-05-18 15:08:57 +02:00
# Controller
## links
* https://www.kernel.org/doc/Documentation/i2c/dev-interface
* https://forum.arduino.cc/t/solved-cannot-get-correct-i2c-data-from-atmega8-into-raspberry-pi/1368337
2025-05-18 15:08:57 +02:00
## PINs
* interal = physical = usage
* 5 = 29 = reset peripheral devices
* 0 = 10 = I2C SDA
* 1 = 9 = I2C SCL
## I2C
* somehow the buildin I2C does not work anymore (maybe already damaged?)
* add additional bus by using GPIOs:
```
$ fgrep i2c /boot/firmware/config.txt
dtparam=i2c_arm=on
dtoverlay=i2c-gpio,bus=7,i2c_gpio_sda=10,i2c_gpio_scl=9
```
2025-05-18 15:08:57 +02:00
## commands
* reset peripheral devices: `gpioset gpiochip0 5=0`