|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[FTC]: Using multiple sensors of same type
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); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|