1
0
mirror of https://github.com/aap/pdp6.git synced 2026-04-26 20:26:42 +00:00

implemented PI device

This commit is contained in:
aap
2016-04-16 16:43:00 +02:00
parent 692715079e
commit fb9d5ac3dc
5 changed files with 141 additions and 25 deletions

6
main.c
View File

@@ -712,9 +712,9 @@ error:
mi_lght = l; l += 36;
pc_lght = l; l += 18;
ma_lght = l; l += 18;
pio_lght = l; l += 7;
pir_lght = l; l += 7;
pih_lght = l; l += 7;
pir_lght = l; l += 7;
pio_lght = l; l += 7;
rest_lght = l;
sw = switches;
data_sw = sw; sw += 36;
@@ -783,9 +783,9 @@ error:
setlights(apr.mi, mi_lght, 36);
setlights(apr.pc, pc_lght, 18);
setlights(apr.ma, ma_lght, 18);
setlights(apr.pih, pih_lght, 7);
setlights(apr.pio, pio_lght, 7);
setlights(apr.pir, pir_lght, 7);
setlights(apr.pih, pih_lght, 7);
rest_lght[4].state = apr.run;
rest_lght[5].state = apr.mc_stop;
rest_lght[6].state = apr.pi_active;