|
Re: [FTC]: Using multiple sensors of same type
Quote:
Originally Posted by godkane
I got tired of not being able to read two color sensors or two sonic sensors, so I re-wrote the code to get them to work as expected.
In configuration, make sensor "I2C Device".
Initialization is hardware map, device name, and configured address.
color = new RedStormColorSensor(hwMap, "cb", 0x40);
range = new RedStormRangeSensor(hwMap, "rf", 0x2a);
|
Can this be used for Adafruit Color sensor?
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
2017 FTC 11722 (Coach)
2016 FTC 10544 (Coach) Canadian Championship Finalist, Rockwell Collins Innovate Award.
2014 FRC 5064 (Mentor)
|