Page MenuHomeFreeBSD

Add I2C device hints for Onion Omega
ClosedPublic

Authored by allanjude on Feb 9 2017, 3:27 AM.

Details

Summary

This allows you to use the relay expansion via the i2c command line tool

Test Plan

Activate the relay with: printf '\01' | i2c -a 0x27 -d w -o 0x09 -c 1

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

allanjude updated this revision to Diff 24904.Feb 9 2017, 3:27 AM
allanjude retitled this revision from to Add I2C device hints for Onion Omega.
allanjude updated this object.
allanjude edited the test plan for this revision. (Show Details)
allanjude added reviewers: adrian, brd, mizhka.
adrian edited edge metadata.Feb 9 2017, 5:22 AM

hm, there are other shields, right? So the omega always wires up 20/21 as i2c?

That is my understanding yes.

Then you access the 8 possible relay shields (each with 2 relays) by their address on the I2C bus

adrian accepted this revision.Feb 9 2017, 5:26 AM
adrian edited edge metadata.
This revision is now accepted and ready to land.Feb 9 2017, 5:26 AM
mizhka accepted this revision.Feb 9 2017, 7:46 AM
mizhka edited edge metadata.
This revision was automatically updated to reflect the committed changes.