Add I2C device hints for Onion Omega
This allows you to control up to 8 relay expansions from FreeBSD https://github.com/freebsd/freebsd-wifi-build/wiki/Onion-Omega#controlling-the-relay-expansion Reviewed by: adrian, mizhka MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D9503
This commit is contained in:
parent
8eaaf58a5f
commit
6053fa9683
@ -123,3 +123,10 @@ hint.gpioled.3.pins=0x00008000
|
||||
hint.gpioled.3.name="blue"
|
||||
hint.gpioled.3.invert=0
|
||||
|
||||
# I2C
|
||||
# 0x20 - 0x27 = Relay Controllers (0x27 is default)
|
||||
# 0x5a = PWM/Servo Controller
|
||||
hint.gpioiic.0.at="gpiobus0"
|
||||
hint.gpioiic.0.pins=0x300000 # pins 20 and 21
|
||||
hint.gpioiic.0.scl=0 # pin 20
|
||||
hint.gpioiic.0.sda=1 # pin 21
|
||||
|
Loading…
Reference in New Issue
Block a user