|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Using the NXT Light Sensor.
Does anyone know how to get data from NXT sensors VIA I2C?
We hooked a light sensor to the I2C port on the Digital Side Car, and the red LED illuminated. In Java: Code:
byte[] byte1 = new byte[100]; ls.read(0, 7, byte1); for(int i= 0; i < 100; i++) System.out.println(byte1[i]); Code:
four = new DigitalModule(4); ls=new I2C(four,0); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|