Skip to content

Instantly share code, notes, and snippets.

@hyl392
hyl392 / Thief Prevention
Last active February 11, 2018 12:33
Thief Prevention
const int sensorPin = A0;
const int ledPin = 9;
int sensorValue = 0;
int sensorMin = 1023;
int sensorMax = 0;
int buzzer = 8;
void setup() {
@hyl392
hyl392 / Making the Drum Show Even More Flashy
Created February 3, 2018 17:57
Making the Drum Show Even More Flashy
int buttonState = 0;
int led = 9;
int button = 7;
int led2 = 3;
void setup() {
pinMode(led, OUTPUT);
pinMode(button, INPUT);
pinMode(led2, OUTPUT);
// Serial.begin(9600);