Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (39 sloc) 580 Bytes
/*
homino
Homeautomation with Arduino
http://github.com/seips-net/homino
*/
boolean debug_status = true;
// setup
void setup()
{
Serial.begin(9600);
dn("Debug enabled.");
}
// loop
void loop()
{
}
// button functions
void create_button(int pin)
{
pinMode(pin, INPUT_PULLUP);
}
// print functions
void d(String message)
{
Serial.print(message);
}
void dn(String message)
{
Serial.println(message);
}
// debug functions
void d(String message)
{
if(debug_status){Serial.print(message);}
}
void dn(String message)
{
if(debug_status){Serial.println(message);}
}