Here is the code for the One-line serial mode.
Just remember to change de config in the WT588D programmer.
void WT588D_Send1(byte addr) {
digitalWrite(wt_scl, LOW);
delay(5);
for(int i = 0; i < 8; i++) {
digitalWrite(wt_scl, HIGH);
if(bitRead(addr, i)) {
delayMicroseconds(600);
digitalWrite(wt_scl, LOW);
delayMicroseconds(200);
} else {
delayMicroseconds(200);
digitalWrite(wt_scl, LOW);
delayMicroseconds(600);
}
}
digitalWrite(wt_scl, HIGH);
delay(100);
}
Yes, I tried with this code, but... when i record the sound 5 (0 to 4) in the module WT588D-U (28P), after to ejecute the first time all sounds, there is a shift of sounds.
The number 0 ceases to be 0 and became 4.
Number 1 ceases to be 1 and became 1.
Number 2 ceases to be 2 and 3 became.
-
-
-
-
Number 5 ceases to be 5 became the 0.
Is there any solution for this?.
P/D: sorry for my bad english, but I am Spanish.