Skip to content

Instantly share code, notes, and snippets.

View BrandonYuen's full-sized avatar

Brandon Yuen BrandonYuen

View GitHub Profile
@BrandonYuen
BrandonYuen / doorSensorSmartObject.ino
Created April 12, 2017 19:42
Code for my Smart Object using Arduino and a Door Sensor
const int buzzer = 11;
const int sensor = 0;
int state; // 0 close - 1 open wwitch
int openDuration; // integer that counts how long the door is open
void setup()
{
Serial.begin(9600);
<a href="delete.php?page=<?=$page?>&id=<?= htmlentities($reservering->id)?>">DELETE <span class="glyphicon glyphicon-trash"></span></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="edit.php?page=<?=$page?>&id=<?= htmlentities($reservering->id)?>">EDIT <span class="glyphicon glyphicon-pencil"></span></a>