View Single Post
  #1   Spotlight this post!  
Unread 05-10-2016, 20:35
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,098
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
[FTC]: Example code of using Adafruit color sensors with multiplexer

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.
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

Reply With Quote