Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: Example code of using Adafruit color sensors with multiplexer (http://www.chiefdelphi.com/forums/showthread.php?t=151735)

Christopher149 05-10-2016 20:35

[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.

ArtemusMaximus 06-10-2016 13:22

Re: [FTC]: Example code of using Adafruit color sensors with multiplexer
 
Quote:

Originally Posted by Christopher149 (Post 1610426)
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.


All times are GMT -5. The time now is 17:05.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi