Beispiel #1
0
// call set up function to set up pins:
void setup(void) { // Start up instructions:
    freq[0].begin(11); // Initialize our first tone generator
    freq[1].begin(12); // Initialize our second tone generator
    keypad.setHoldTime(1500); // hold for two seconds to change state to HOLD
    pinMode(10, INPUT); // 2600 button
    pinMode(13, OUTPUT); // LED for recording
    keypad.addEventListener(procButton);
    notify(); // boot successful
    Serial.begin(9600);
}
Beispiel #2
0
// --- setup ---
void setup()
{
	pinMode(alarmPin, OUTPUT);
	pinMode(pirPin, INPUT);
// 	pinMode(relayPin, OUTPUT);
  kpd.addEventListener(kpdEvent); //keypad event listener
  Serial.begin(9600); // serial debug
  slcd.begin();
  set_lcd("bonjour", "");
  delay(3000);
  set_lcd("demarre", "");
}