|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
PMA770Relay Alpha2
|
|
|
|
PMA770Relay 0.1
|
|
|
|
|
|
|
|
|
|
|
|
dewdude@gmail.com - 29-12-2019
|
|
|
|
dewdude@gmail.com - 29-12-2019
|
|
|
|
|
|
|
|
|
|
|
@ -15,6 +15,8 @@ int matrix = A0;
|
|
|
|
byte out = 0;
|
|
|
|
byte out = 0;
|
|
|
|
int mx = 0;
|
|
|
|
int mx = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LiquidCrystal_I2C lcd(0x27,16,2);
|
|
|
|
|
|
|
|
|
|
|
|
void updateShiftRegister()
|
|
|
|
void updateShiftRegister()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
digitalWrite(latchPin,LOW);
|
|
|
|
digitalWrite(latchPin,LOW);
|
|
|
@ -34,6 +36,8 @@ void setTape2()
|
|
|
|
DontCrossTheStreams();
|
|
|
|
DontCrossTheStreams();
|
|
|
|
bitSet(out,7);
|
|
|
|
bitSet(out,7);
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
lcd.setCursor(7, 1);
|
|
|
|
|
|
|
|
lcd.print("TAPE-2 ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setTape1()
|
|
|
|
void setTape1()
|
|
|
@ -41,6 +45,8 @@ void setTape1()
|
|
|
|
DontCrossTheStreams();
|
|
|
|
DontCrossTheStreams();
|
|
|
|
bitSet(out,6);
|
|
|
|
bitSet(out,6);
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
lcd.setCursor(7, 1);
|
|
|
|
|
|
|
|
lcd.print("TAPE-1 ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setAUX()
|
|
|
|
void setAUX()
|
|
|
@ -48,6 +54,8 @@ void setAUX()
|
|
|
|
DontCrossTheStreams();
|
|
|
|
DontCrossTheStreams();
|
|
|
|
bitSet(out,5);
|
|
|
|
bitSet(out,5);
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
lcd.setCursor(7, 1);
|
|
|
|
|
|
|
|
lcd.print("AUX ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setTune()
|
|
|
|
void setTune()
|
|
|
@ -55,6 +63,8 @@ void setTune()
|
|
|
|
DontCrossTheStreams();
|
|
|
|
DontCrossTheStreams();
|
|
|
|
bitSet(out,4);
|
|
|
|
bitSet(out,4);
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
lcd.setCursor(7, 1);
|
|
|
|
|
|
|
|
lcd.print("TUNER ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setPh1()
|
|
|
|
void setPh1()
|
|
|
@ -63,6 +73,8 @@ void setPh1()
|
|
|
|
bitSet(out,3);
|
|
|
|
bitSet(out,3);
|
|
|
|
bitSet(out,1);
|
|
|
|
bitSet(out,1);
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
lcd.setCursor(7, 1);
|
|
|
|
|
|
|
|
lcd.print("PHONO-1 ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setPh2()
|
|
|
|
void setPh2()
|
|
|
@ -71,6 +83,8 @@ void setPh2()
|
|
|
|
bitSet(out,3);
|
|
|
|
bitSet(out,3);
|
|
|
|
bitSet(out,2);
|
|
|
|
bitSet(out,2);
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
lcd.setCursor(7, 1);
|
|
|
|
|
|
|
|
lcd.print("PHONO-2 ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setup()
|
|
|
|
void setup()
|
|
|
@ -79,7 +93,15 @@ void setup()
|
|
|
|
pinMode(dataPin, OUTPUT);
|
|
|
|
pinMode(dataPin, OUTPUT);
|
|
|
|
pinMode(clockPin, OUTPUT);
|
|
|
|
pinMode(clockPin, OUTPUT);
|
|
|
|
bitSet(out,5);
|
|
|
|
bitSet(out,5);
|
|
|
|
|
|
|
|
lcd.init();
|
|
|
|
|
|
|
|
lcd.backlight();
|
|
|
|
|
|
|
|
lcd.home();
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0);
|
|
|
|
|
|
|
|
lcd.print("Denon PMA-770");
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1);
|
|
|
|
|
|
|
|
lcd.print("Input: AUX");
|
|
|
|
updateShiftRegister();
|
|
|
|
updateShiftRegister();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void loop() {
|
|
|
|
void loop() {
|
|
|
|