Initial PES writing support for GAL6001/GAL6002

This commit is contained in:
rhgndf 2023-10-02 01:11:17 +08:00
parent c97f4297c1
commit 7a93bac034

View File

@ -1093,12 +1093,32 @@ static void writePes(void) {
setPV(1); setPV(1);
switch(gal) {
GAL6001:
GAL6002:
setRow(0);
sendBits(20, 0);
for (rbit = 0; rbit < 64; rbit++) {
b = pes[rbit >> 3];
p = b & (1 << (rbit & 0b111));
sendBit(p);
}
sendBits(11, 0);
sendBit(1);
sendAddress(7, galinfo[gal].pesrow);
sendBits(16, 0);
setSDIN(0);
break;
default:
setRow(galinfo[gal].pesrow); setRow(galinfo[gal].pesrow);
for (rbit = 0; rbit < 64; rbit++) { for (rbit = 0; rbit < 64; rbit++) {
b = pes[rbit >> 3]; b = pes[rbit >> 3];
p = b & (1 << (rbit & 0b111)); p = b & (1 << (rbit & 0b111));
sendBit(p); sendBit(p);
} }
break;
}
strobe(progtime); strobe(progtime);
turnOff(); turnOff();