NXC: RGB-Colorsensor disturb Soundsensor
Posted: 11 Feb 2013, 10:33
hi,
connect the LEGO soundsensor with the NXT port S1 and the (new) LEGO RGB-Color Sensor with port S2.
run this simple program:
with connected RGB sensor the sound value shows up to 60. disconnect the RGB-Sensor now, and u see, that the value come down.
Whats happen ?
Greetings
connect the LEGO soundsensor with the NXT port S1 and the (new) LEGO RGB-Color Sensor with port S2.
run this simple program:
Code: Select all
task main()
{
string msg;
SetSensorSound(IN_1);
while(true)
{
msg="data: ";
msg = StrReplace(msg, 6, NumToStr(SENSOR_1));
TextOut(0, LCD_LINE1, msg, false);
SetSensorColorBlue(S2);
SetSensorColorNone(S2);
}
}
Whats happen ?
Greetings