|
Re: [FTC]: Example code of using Adafruit color sensors with multiplexer
Quote:
Originally Posted by Christopher149
I worked out how to use Adafruit color sensors with an i2c multiplexer. Class and example usage on github at https://github.com/Chris857/FTC-Code...s/ftc/teamcode.
To use the example, create a configuration with two "I2C Device"s, named "ada" and "mux". Edit the "ports" array to the ports on the multiplexer that you have color sensors plugged in to.
|
Thank you for sharing. We will definitely going to use this setup.
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
2017 FTC 11722 (Coach)
2016 FTC 10544 (Coach) Canadian Championship Finalist, Rockwell Collins Innovate Award.
2014 FRC 5064 (Mentor)
|