i have tried to use it, but there is no reply from the G15, i used realterm to verify my code. my code does work very well since the realterm receive whenever i send from my IOIO, and my IOIO receive whenever i send from realterm
here is the code :
- CODE: SELECT_ALL_CODE
void ioioLoop(IOIO ioio) throws ConnectionLostException {
led.write(false);
DTR.write(true);
try {
try {
out.write(0xFF);
out.write(0xFF);
out.write(0x01);
out.write(0x04);
out.write(0x02);
out.write(0x2B);
out.write(0x01);
out.write(0xCC);
}
catch (IOException e){
}
delay(20);
DTR.write(false);
try {
int count =7;
int count1 = in.available();
if (count1 > 0){
in.read(reading);
}
}
catch (IOException e){
}
Thread.sleep(20);
}
catch (InterruptedException e) {
}
}