fixed lcd bug
This commit is contained in:
parent
ba631deaa5
commit
abe9c42b95
@ -1,18 +0,0 @@
|
|||||||
Address allocation:
|
|
||||||
1-6 | "Lexzach" - verify that eeprom is the FACP config eeprom
|
|
||||||
7 | 0-5 - coding selection
|
|
||||||
8 | 0-1 - is a key required
|
|
||||||
9 | 0-1 - is there verification
|
|
||||||
10 | 1-255 - how long to do verification (value * 0.1 = actual verification time in seconds)
|
|
||||||
11-26 | 65-90, 45-57, 32, 39 - System name
|
|
||||||
50 | 1-255 - EEPROM version
|
|
||||||
51 | 1-255 - EEPROM build
|
|
||||||
72 | 0-4094 - EOL resistor lenience
|
|
||||||
73 | 0-1 - enable EOL resistor
|
|
||||||
74 | 0-1 - pre-alarm enabled
|
|
||||||
75 | 1-10 - first-stage time
|
|
||||||
76 | 0-1 - smoke detector pre-alarm
|
|
||||||
77 | 1-5 - smoke detector timeout
|
|
||||||
78 | 0-1 - panel homescreen
|
|
||||||
79 | 0-1 - audible silence
|
|
||||||
80 | 0-40 - lcd timeout
|
|
@ -6,9 +6,9 @@
|
|||||||
unsigned long systemClock; //-----------------SYSTEM CLOCK [VERY IMPORTANT]
|
unsigned long systemClock; //-----------------SYSTEM CLOCK [VERY IMPORTANT]
|
||||||
unsigned long lastPulse; //-------------------LAST void loop() PULSE
|
unsigned long lastPulse; //-------------------LAST void loop() PULSE
|
||||||
|
|
||||||
char *firmwareRev = "1.1"; //VERSION
|
char *firmwareRev = "1.2"; //VERSION
|
||||||
int EEPROMVersion = 1; //version control to rewrite eeprom after update
|
int EEPROMVersion = 1; //version control to rewrite eeprom after update
|
||||||
int EEPROMBuild = 1;
|
int EEPROMBuild = 2;
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------- RUNTIME VARIABLES
|
//----------------------------------------------------------------------------- RUNTIME VARIABLES
|
||||||
@ -33,6 +33,7 @@ bool walkTest = false; //is the system in walk test
|
|||||||
bool silentWalkTest = false;
|
bool silentWalkTest = false;
|
||||||
bool backlightOn = true;
|
bool backlightOn = true;
|
||||||
bool keyRequiredVisual; //variable for panel security
|
bool keyRequiredVisual; //variable for panel security
|
||||||
|
bool keylessSilence = false; //can the panel be silenced without a key
|
||||||
bool debug = false;
|
bool debug = false;
|
||||||
int characters[] = {32,45,46,47,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90}; //characters allowed on name
|
int characters[] = {32,45,46,47,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90}; //characters allowed on name
|
||||||
int panelNameList[16];
|
int panelNameList[16];
|
||||||
@ -40,6 +41,7 @@ int clearTimer = 0; //timer for keeping track of button holding for clearing cha
|
|||||||
int verification = 0; //number to keep track of ms for verification
|
int verification = 0; //number to keep track of ms for verification
|
||||||
int drill = 0; //number to keep track of ms for drill
|
int drill = 0; //number to keep track of ms for drill
|
||||||
int buttonCheckTimer = 0; //add a slight delay to avoid double-clicking buttons
|
int buttonCheckTimer = 0; //add a slight delay to avoid double-clicking buttons
|
||||||
|
int keyCheckTimer = 0;
|
||||||
int troubleTimer = 0; //ms for trouble
|
int troubleTimer = 0; //ms for trouble
|
||||||
int codeWheelTimer = 0; //code wheel timing variable
|
int codeWheelTimer = 0; //code wheel timing variable
|
||||||
int troubleLedTimer = 0; //number to keep track of ms for trouble light
|
int troubleLedTimer = 0; //number to keep track of ms for trouble light
|
||||||
@ -130,27 +132,6 @@ int sdaPin = 21;
|
|||||||
//----------------------------------------------------------------------------- RUNTIME VARIABLES
|
//----------------------------------------------------------------------------- RUNTIME VARIABLES
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//get resistor lenience by having zone 1, zone 2, and smoke on a output pin instead of +3.3v so you can measure the difference
|
|
||||||
|
|
||||||
//have it so holding down the drill button causes a visual indicator on the display along with blinking the alarm led really fast
|
|
||||||
|
|
||||||
//Add feature to calibrate activating, trouble, and normal voltages using the IO output instead of 3.3v
|
|
||||||
|
|
||||||
//maybe instead of looking for 0s for activation, simply look for a dip in voltage
|
|
||||||
|
|
||||||
//REMOVE STUPID ZERO COUNTER, ITS OBSELETE
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------- EEPROM RESET
|
//----------------------------------------------------------------------------- EEPROM RESET
|
||||||
void resetEEPROM() {
|
void resetEEPROM() {
|
||||||
for (int i=0; i<=1024; i++){ //write all 255's from 0-1024 address
|
for (int i=0; i<=1024; i++){ //write all 255's from 0-1024 address
|
||||||
@ -177,6 +158,8 @@ void resetEEPROM() {
|
|||||||
}
|
}
|
||||||
Serial.println("Wrote 6 blank spaces");
|
Serial.println("Wrote 6 blank spaces");
|
||||||
|
|
||||||
|
EEPROM.write(27,0); //write current version and build
|
||||||
|
Serial.println("Disabled keyless silence");
|
||||||
EEPROM.write(50, EEPROMVersion); //write current version and build
|
EEPROM.write(50, EEPROMVersion); //write current version and build
|
||||||
EEPROM.write(51, EEPROMBuild);
|
EEPROM.write(51, EEPROMBuild);
|
||||||
Serial.println("Wrote EEPROM version and build");
|
Serial.println("Wrote EEPROM version and build");
|
||||||
@ -283,7 +266,7 @@ void setup() {
|
|||||||
lcd.setCursor(4,0);
|
lcd.setCursor(4,0);
|
||||||
lcd.print("BOOTING...");
|
lcd.print("BOOTING...");
|
||||||
lcd.setCursor(0,1);
|
lcd.setCursor(0,1);
|
||||||
lcd.print("I/O");
|
lcd.print("IO");
|
||||||
delay(100);
|
delay(100);
|
||||||
|
|
||||||
Serial.println("Configured all pins");
|
Serial.println("Configured all pins");
|
||||||
@ -298,7 +281,11 @@ void setup() {
|
|||||||
Serial.println("EEPROM verification failed.");
|
Serial.println("EEPROM verification failed.");
|
||||||
lcd.clear();
|
lcd.clear();
|
||||||
lcd.setCursor(0,0);
|
lcd.setCursor(0,0);
|
||||||
|
if (EEPROM.read(50) != EEPROMVersion or EEPROM.read(51) != EEPROMBuild){
|
||||||
|
lcd.print("ERROR 2");
|
||||||
|
} else {
|
||||||
lcd.print("ERROR 1");
|
lcd.print("ERROR 1");
|
||||||
|
}
|
||||||
lcd.setCursor(0,1);
|
lcd.setCursor(0,1);
|
||||||
lcd.print("check manual");
|
lcd.print("check manual");
|
||||||
while(digitalRead(resetButtonPin) == LOW and digitalRead(drillButtonPin) == LOW){ //wait until button is pressed
|
while(digitalRead(resetButtonPin) == LOW and digitalRead(drillButtonPin) == LOW){ //wait until button is pressed
|
||||||
@ -318,11 +305,13 @@ void setup() {
|
|||||||
lcd.setCursor(4,0);
|
lcd.setCursor(4,0);
|
||||||
lcd.print("BOOTING...");
|
lcd.print("BOOTING...");
|
||||||
lcd.setCursor(0,1);
|
lcd.setCursor(0,1);
|
||||||
lcd.print("I/O-SLFTST");
|
lcd.print("IO-SLFTST");
|
||||||
delay(100);
|
delay(100);
|
||||||
|
|
||||||
Serial.println("Current EEPROM dump:"); //dump EEPROM into serial monitor
|
Serial.println("Current EEPROM dump:"); //dump EEPROM into serial monitor
|
||||||
for (int i=0; i<=1024; i++){
|
for (int i=0; i<=1024; i++){
|
||||||
|
Serial.print(i);
|
||||||
|
Serial.print(":");
|
||||||
Serial.print(EEPROM.read(i));
|
Serial.print(EEPROM.read(i));
|
||||||
Serial.print(" ");
|
Serial.print(" ");
|
||||||
}
|
}
|
||||||
@ -369,6 +358,11 @@ void setup() {
|
|||||||
} else {
|
} else {
|
||||||
audibleSilence = false;
|
audibleSilence = false;
|
||||||
}
|
}
|
||||||
|
if (EEPROM.read(27) == 1){
|
||||||
|
keylessSilence = true;
|
||||||
|
} else {
|
||||||
|
keylessSilence = false;
|
||||||
|
}
|
||||||
smokeDetectorTimeout = EEPROM.read(77)*60000;
|
smokeDetectorTimeout = EEPROM.read(77)*60000;
|
||||||
firstStageTime = EEPROM.read(75)*60000;
|
firstStageTime = EEPROM.read(75)*60000;
|
||||||
verificationTime = EEPROM.read(10)*100;
|
verificationTime = EEPROM.read(10)*100;
|
||||||
@ -387,7 +381,7 @@ void setup() {
|
|||||||
lcd.setCursor(4,0);
|
lcd.setCursor(4,0);
|
||||||
lcd.print("BOOTING...");
|
lcd.print("BOOTING...");
|
||||||
lcd.setCursor(0,1);
|
lcd.setCursor(0,1);
|
||||||
lcd.print("I/O-SLFTST-CONFIG");
|
lcd.print("IO-SLFTST-CONFIG");
|
||||||
delay(100);
|
delay(100);
|
||||||
Serial.println("Config loaded");
|
Serial.println("Config loaded");
|
||||||
digitalWrite(readyLed, HIGH); //power on ready LED on startup
|
digitalWrite(readyLed, HIGH); //power on ready LED on startup
|
||||||
@ -652,7 +646,7 @@ void checkButtons(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (digitalRead(drillButtonPin) == HIGH and horn != true and silenced != true){ //------------------------------------------DRILL BUTTON
|
if (digitalRead(drillButtonPin) == HIGH and horn != true and silenced != true){ //------------------------------------------DRILL BUTTON
|
||||||
if (drill >= 5000){
|
if (drill >= 237){
|
||||||
zoneAlarm = 4;
|
zoneAlarm = 4;
|
||||||
activateNAC();
|
activateNAC();
|
||||||
} else {
|
} else {
|
||||||
@ -892,16 +886,15 @@ void config(){
|
|||||||
char *main[] = {"Testing","Settings"}; //menu 0
|
char *main[] = {"Testing","Settings"}; //menu 0
|
||||||
char *mainTesting[] = {"Walk Test","Silent Wlk Test","Strobe Test"}; //menu 1
|
char *mainTesting[] = {"Walk Test","Silent Wlk Test","Strobe Test"}; //menu 1
|
||||||
char *mainSettings[] = {"Fire Alarm","Panel"}; //menu 2
|
char *mainSettings[] = {"Fire Alarm","Panel"}; //menu 2
|
||||||
char *mainSettingsFireAlarmSettings[] = {"Coding","Verification","Pre-Alarm","Audible Sil.:","Keyless Sil."}; //menu 3
|
char *mainSettingsFireAlarmSettings[] = {"Coding","Verification","Pre-Alarm","Audible Sil.:","Keyless Sil.:"}; //menu 3
|
||||||
char *mainSettingsVerificationSettings[] = {"Verification:","V.Time:"}; //menu 4
|
char *mainSettingsVerificationSettings[] = {"Verification:","V.Time:"}; //menu 4
|
||||||
char *mainSettingsFireAlarmSettingsCoding[] = {"Temporal Three","Marchtime","4-4","Continuous","California","Slow Marchtime"}; //menu 5
|
char *mainSettingsFireAlarmSettingsCoding[] = {"Temporal Three","Marchtime","4-4","Continuous","California","Slow Marchtime"}; //menu 5
|
||||||
char *mainSettingsFireAlarmSettingsPreAlarmSettings[] = {"Pre-Alarm: ","stage 1: ","Detector PreAlrm"}; //menu 6
|
char *mainSettingsFireAlarmSettingsPreAlarmSettings[] = {"Pre-Alarm: ","stage 1: ","Detector PreAlrm"}; //menu 6
|
||||||
char *mainSettingsFireAlarmSettingsPreAlarmSettingsSmokeDetectorPreAlarmSettings[] = {"Det. PreAlrm: ","Det. 1st stge: ","Det. Tmeout: "}; //menu 7
|
char *mainSettingsFireAlarmSettingsPreAlarmSettingsSmokeDetectorPreAlarmSettings[] = {"Det. PreAlrm: ","Det. 1st stge: ","Det. Timeout: "}; //menu 7
|
||||||
char *mainPanelSettings[] = {"Panel Name","Panel Security","LCD Dim:","Factory Reset","About","Calibration"}; //menu 8
|
char *mainPanelSettings[] = {"Panel Name","Panel Security","LCD Dim:","Factory Reset","About"}; //menu 8
|
||||||
char *mainPanelSettingsPanelSecurity[] = {"None","Keyswitch","Passcode"}; //menu 9
|
char *mainPanelSettingsPanelSecurity[] = {"None","Keyswitch","Passcode"}; //menu 9
|
||||||
char *mainPanelSettingsPanelName[] = {"Enter Name:"}; //menu 10
|
char *mainPanelSettingsPanelName[] = {"Enter Name:"}; //menu 10
|
||||||
char *mainPanelSettingsAbout[] = {"Antigneous FACP","Firmware: ","by Lexzach"}; //menu 12
|
char *mainPanelSettingsAbout[] = {"Antigneous FACP","Firmware: ","by Lexzach"}; //menu 12
|
||||||
char *mainPanelSettingsCalibrate[] = {"Activated Zone 1", "Normal Zone 1", "Trouble Zone 1", "Activated Zone 2", "Normal Zone 2", "Trouble Zone 2"}; //menu 13
|
|
||||||
|
|
||||||
|
|
||||||
// char *mainPanelSettingsHomescreen[] = {"Panel Name", "Stats for Nerds"}; //menu 10
|
// char *mainPanelSettingsHomescreen[] = {"Panel Name", "Stats for Nerds"}; //menu 10
|
||||||
@ -1063,10 +1056,18 @@ void config(){
|
|||||||
} else if (cursorPosition == 2) {
|
} else if (cursorPosition == 2) {
|
||||||
cursorPosition = 3;
|
cursorPosition = 3;
|
||||||
configTop = (String)mainSettingsFireAlarmSettings[3]+audibleSilence;
|
configTop = (String)mainSettingsFireAlarmSettings[3]+audibleSilence;
|
||||||
|
configBottom = (String)mainSettingsFireAlarmSettings[4]+keylessSilence;
|
||||||
|
configTop.replace("1","*");
|
||||||
|
configTop.replace("0","$");
|
||||||
|
configBottom.replace("1","*");
|
||||||
|
configBottom.replace("0","$");
|
||||||
|
} else if (cursorPosition == 3){
|
||||||
|
cursorPosition = 4;
|
||||||
|
configTop = (String)mainSettingsFireAlarmSettings[4]+keylessSilence;
|
||||||
configBottom = (String)mainSettingsFireAlarmSettings[0];
|
configBottom = (String)mainSettingsFireAlarmSettings[0];
|
||||||
configTop.replace("1","*");
|
configTop.replace("1","*");
|
||||||
configTop.replace("0","$");
|
configTop.replace("0","$");
|
||||||
} else if (cursorPosition == 3) {
|
} else if (cursorPosition == 4) {
|
||||||
cursorPosition = 0;
|
cursorPosition = 0;
|
||||||
configTop = (String)mainSettingsFireAlarmSettings[0];
|
configTop = (String)mainSettingsFireAlarmSettings[0];
|
||||||
configBottom = (String)mainSettingsFireAlarmSettings[1];
|
configBottom = (String)mainSettingsFireAlarmSettings[1];
|
||||||
@ -1120,6 +1121,19 @@ void config(){
|
|||||||
configBottom = (String)mainSettingsFireAlarmSettings[0];
|
configBottom = (String)mainSettingsFireAlarmSettings[0];
|
||||||
configTop.replace("1","*");
|
configTop.replace("1","*");
|
||||||
configTop.replace("0","$");
|
configTop.replace("0","$");
|
||||||
|
} else if (cursorPosition == 4){
|
||||||
|
if (keylessSilence == true){
|
||||||
|
keylessSilence = false;
|
||||||
|
EEPROM.write(27,0);
|
||||||
|
} else {
|
||||||
|
keylessSilence = true;
|
||||||
|
EEPROM.write(27,1);
|
||||||
|
}
|
||||||
|
EEPROM.commit();
|
||||||
|
configTop = (String)mainSettingsFireAlarmSettings[4]+keylessSilence;
|
||||||
|
configBottom = (String)mainSettingsFireAlarmSettings[0];
|
||||||
|
configTop.replace("1","*");
|
||||||
|
configTop.replace("0","$");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------- SETTINGS > FIRE ALARM
|
//----------------------------------------------------------------------------- SETTINGS > FIRE ALARM
|
||||||
@ -1155,12 +1169,8 @@ void config(){
|
|||||||
} else if (cursorPosition == 3) {
|
} else if (cursorPosition == 3) {
|
||||||
cursorPosition = 4;
|
cursorPosition = 4;
|
||||||
configTop = (String)mainPanelSettings[4];
|
configTop = (String)mainPanelSettings[4];
|
||||||
configBottom = (String)mainPanelSettings[5];
|
|
||||||
} else if (cursorPosition == 4) {
|
|
||||||
cursorPosition = 5;
|
|
||||||
configTop = (String)mainPanelSettings[5];
|
|
||||||
configBottom = (String)mainPanelSettings[0];
|
configBottom = (String)mainPanelSettings[0];
|
||||||
} else if (cursorPosition == 5) {
|
} else if (cursorPosition == 4) {
|
||||||
cursorPosition = 0;
|
cursorPosition = 0;
|
||||||
configTop = (String)mainPanelSettings[0];
|
configTop = (String)mainPanelSettings[0];
|
||||||
configBottom = (String)mainPanelSettings[1];
|
configBottom = (String)mainPanelSettings[1];
|
||||||
@ -1551,25 +1561,17 @@ void config(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------- CONFIG SCREEN REDRAW
|
||||||
// if (resetPressed == true and resetStillPressed == false){
|
if (configTop != currentConfigTop or configBottom != currentConfigBottom){ //figure out if the screen *really* needs to be re-drawn
|
||||||
|
|
||||||
// } else if (silencePressed == true and silenceStillPressed == false){
|
|
||||||
|
|
||||||
// } else if (drillPressed == true and drillStillPressed == false){
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (configTop != currentConfigTop or configBottom != currentConfigBottom){
|
|
||||||
lcd.clear();
|
lcd.clear();
|
||||||
lcd.setCursor(0,0);
|
lcd.setCursor(0,0); //RENDER TOP OF CONFIG WINDOW
|
||||||
if (configPage != -1){
|
if (configPage != -1){
|
||||||
if (configTop.indexOf("*")>0){ //RENDER TOP OF CONFIG WINDOW
|
if (configTop.indexOf("*")>0){ //Replace any "*" with a check mark
|
||||||
configTop.replace("*","");
|
configTop.replace("*","");
|
||||||
lcd.print("]" + configTop);
|
lcd.print("]" + configTop);
|
||||||
lcd.write(byte(1));
|
lcd.write(byte(1));
|
||||||
|
|
||||||
} else if (configTop.indexOf("$")>0) {
|
} else if (configTop.indexOf("$")>0) { //Replace any "$" with an X icon
|
||||||
configTop.replace("$","");
|
configTop.replace("$","");
|
||||||
lcd.print("]" + configTop);
|
lcd.print("]" + configTop);
|
||||||
lcd.write(byte(2));
|
lcd.write(byte(2));
|
||||||
@ -1579,13 +1581,13 @@ void config(){
|
|||||||
} else {
|
} else {
|
||||||
lcd.print(configTop);
|
lcd.print(configTop);
|
||||||
}
|
}
|
||||||
lcd.setCursor(0,1);
|
lcd.setCursor(0,1); //RENDER BOTTOM OF CONFIG WINDOW
|
||||||
if (configBottom.indexOf("*")>0){ //RENDER BOTTOM OF CONFIG WINDOW
|
if (configBottom.indexOf("*")>0){ //Replace any "*" with a check mark
|
||||||
configBottom.replace("*","");
|
configBottom.replace("*","");
|
||||||
lcd.print(configBottom);
|
lcd.print(configBottom);
|
||||||
lcd.write(byte(1));
|
lcd.write(byte(1));
|
||||||
|
|
||||||
} else if (configBottom.indexOf("$")>0) {
|
} else if (configBottom.indexOf("$")>0) { //Replace any "$" with an X icon
|
||||||
configBottom.replace("$","");
|
configBottom.replace("$","");
|
||||||
lcd.print(configBottom);
|
lcd.print(configBottom);
|
||||||
lcd.write(byte(2));
|
lcd.write(byte(2));
|
||||||
@ -1600,9 +1602,9 @@ void config(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// ---------------------------------------------------------------------------- CONFIG SCREEN REDRAW
|
||||||
|
|
||||||
|
// --------- UPDATE BUTTON VARIABLES
|
||||||
|
|
||||||
if (digitalRead(resetButtonPin) == HIGH){ //RESET BUTTON
|
if (digitalRead(resetButtonPin) == HIGH){ //RESET BUTTON
|
||||||
resetStillPressed = true;
|
resetStillPressed = true;
|
||||||
}
|
}
|
||||||
@ -1612,6 +1614,7 @@ void config(){
|
|||||||
if (digitalRead(drillButtonPin) == HIGH){ //DRILL BUTTON
|
if (digitalRead(drillButtonPin) == HIGH){ //DRILL BUTTON
|
||||||
drillStillPressed = true;
|
drillStillPressed = true;
|
||||||
}
|
}
|
||||||
|
// --------- UPDATE BUTTON VARIABLES
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcdBacklight(){
|
void lcdBacklight(){
|
||||||
@ -1635,38 +1638,43 @@ void lcdBacklight(){
|
|||||||
void loop() {
|
void loop() {
|
||||||
systemClock = millis(); //-------------------- SYSTEM CLOCK
|
systemClock = millis(); //-------------------- SYSTEM CLOCK
|
||||||
if (systemClock-lastPulse >= 1){
|
if (systemClock-lastPulse >= 1){
|
||||||
//------------------------------------------------------ CHECK LCD BACKLIGHT
|
|
||||||
|
|
||||||
lcdBacklight();
|
lcdBacklight(); //------------------------------------------------------ CHECK LCD BACKLIGHT
|
||||||
|
|
||||||
//------------------------------------------------------ CHECK LCD BACKLIGHT
|
|
||||||
|
|
||||||
//------------------------------------------------------ CHECK KEY
|
checkDevices(); //------------------------------------------------------ CHECK ACTIVATING DEVICES
|
||||||
checkKey();
|
|
||||||
//------------------------------------------------------ CHECK KEY
|
|
||||||
|
|
||||||
//------------------------------------------------------ CHECK ACTIVATING DEVICES
|
troubleCheck(); //------------------------------------------------------ TROUBLE CHECK
|
||||||
|
|
||||||
checkDevices();
|
alarm(); //------------------------------------------------------------- ALARM CODEWHEEL
|
||||||
|
|
||||||
//------------------------------------------------------ CHECK ACTIVATING DEVICES
|
if (keyCheckTimer >= 250){
|
||||||
|
checkKey(); //---------------------------------------------------------- CHECK KEY
|
||||||
troubleCheck(); //trouble check
|
keyCheckTimer = 0;
|
||||||
|
} else {
|
||||||
alarm(); //alarm codewheel
|
keyCheckTimer++;
|
||||||
|
|
||||||
//------------------------------------------------------ CHECK BUTTONS
|
|
||||||
if (((keyInserted == true and keyRequired == true) or (keyInserted==false and keyRequired==false)) and configMenu == false){
|
|
||||||
checkButtons(); //check if certain buttons are pressed
|
|
||||||
}
|
}
|
||||||
//------------------------------------------------------ CHECK BUTTONS
|
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------ UPDATE LCD DISPLAY
|
|
||||||
|
|
||||||
if (buttonCheckTimer >= 20){
|
if (buttonCheckTimer >= 20){
|
||||||
if (configMenu==false){
|
if (configMenu==false){
|
||||||
lcdUpdate();
|
if ((keyInserted == true and keyRequired == true) or (keyRequired==false)){
|
||||||
|
checkButtons(); //check if certain buttons are pressed
|
||||||
|
} else if (keylessSilence == true and fullAlarm == true and silenced == false){
|
||||||
|
if (digitalRead(silenceButtonPin) == HIGH){
|
||||||
|
digitalWrite(silenceLed, HIGH);
|
||||||
|
digitalWrite(alarmLed, LOW);
|
||||||
|
digitalWrite(readyLed, LOW);
|
||||||
|
readyLedStatus = false;
|
||||||
|
horn = false;
|
||||||
|
if (audibleSilence == false){
|
||||||
|
strobe = false;
|
||||||
|
}
|
||||||
|
silenced=true;
|
||||||
|
noTone();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lcdUpdate(); //------------------------------------------------------ UPDATE LCD DISPLAY
|
||||||
|
|
||||||
} else if (configMenu==true) {
|
} else if (configMenu==true) {
|
||||||
if ((keyInserted == true and keyRequired == true) or (keyInserted==false and keyRequired==false)){
|
if ((keyInserted == true and keyRequired == true) or (keyInserted==false and keyRequired==false)){
|
||||||
config();
|
config();
|
||||||
@ -1677,8 +1685,6 @@ void loop() {
|
|||||||
buttonCheckTimer++;
|
buttonCheckTimer++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------ UPDATE LCD DISPLAY
|
|
||||||
|
|
||||||
lastPulse = millis(); //update last pulse
|
lastPulse = millis(); //update last pulse
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
[testing]
|
|
||||||
- walk test
|
|
||||||
- silent walk test
|
|
||||||
- strobe test
|
|
||||||
- automatic system test
|
|
||||||
[settings]
|
|
||||||
- [fire alarm settings]
|
|
||||||
- - [coding]
|
|
||||||
- - - Temporal 3 = 0
|
|
||||||
- - - Marchtime = 1
|
|
||||||
- - - 4-4 = 2
|
|
||||||
- - - Continuious = 3
|
|
||||||
- - - California = 4
|
|
||||||
- - - Marchtime (slower) = 5
|
|
||||||
- - enable/disable verification
|
|
||||||
- - [verification time]
|
|
||||||
- - - 0.1-25.5 seconds
|
|
||||||
- - [pre-alarm]
|
|
||||||
- - - enable/disable pre-alarm
|
|
||||||
- - - [first-stage]
|
|
||||||
- - - - [first-stage time]
|
|
||||||
- - - - - 1-10 minutes
|
|
||||||
- - - [second-stage]
|
|
||||||
- - - [smoke detector pre-alarm]
|
|
||||||
- - - - enable/disable smoke detector pre-alarm
|
|
||||||
- - - - [smoke detector timeout]
|
|
||||||
- - - - - 1-20 minutes
|
|
||||||
- - enable/disable audible silence
|
|
||||||
- [panel settings]
|
|
||||||
- - [panel name]
|
|
||||||
- - - enter panel name
|
|
||||||
- - [panel security]
|
|
||||||
- - - None
|
|
||||||
- - - Keyswitch (pin 33)
|
|
||||||
- - - Passcode (future)
|
|
||||||
- - [homescreen]
|
|
||||||
- - - panel name
|
|
||||||
- - - [stats for nerds]
|
|
||||||
- - - - zone input voltages
|
|
||||||
- - [lcd timeout]
|
|
||||||
- - - 30 sec, 1 min, 5 min, 30 min, off
|
|
||||||
[advanced settings]
|
|
||||||
- [resistor lenience]
|
|
||||||
- - 0-200
|
|
||||||
- enable/disable EOL resistors
|
|
||||||
|
|
Binary file not shown.
BIN
instructions/antigneous_tech_instructions.pdf
Normal file
BIN
instructions/antigneous_tech_instructions.pdf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user