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
1 changed files with 25 additions and 5 deletions

View File

@ -1093,12 +1093,32 @@ static void writePes(void) {
setPV(1);
setRow(galinfo[gal].pesrow);
for (rbit = 0; rbit < 64; rbit++) {
b = pes[rbit >> 3];
p = b & (1 << (rbit & 0b111));
sendBit(p);
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);
for (rbit = 0; rbit < 64; rbit++) {
b = pes[rbit >> 3];
p = b & (1 << (rbit & 0b111));
sendBit(p);
}
break;
}
strobe(progtime);
turnOff();