Skip to content

Instantly share code, notes, and snippets.

Sjur Seibt sjurlur

Block or report user

Report or block sjurlur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5188018
Hall Effect Switch
Turns on and off a light emitting diode(LED) connected to digital
pin 13, when Hall Effect Sensor attached to pin 2 is triggered by a magnet
Hall effect sensor used is the A1120EUA from Allegro Microsystems
This example code is in the public domain.
sjurlur / Apekatt
Last active Dec 14, 2015
Den bråkete apekatten
View Apekatt
const int M1 = 4; // H-bridge leg 1 (pin 2, 1A)
const int E1 = 5;
const int M2 = 8; // H-bridge leg 2 (pin 7, 2A)
const int E2 = 9;
const int mouthPin = 2;
//const int knapp = 3;
char mouth;
boolean state = true;
const int enablePin = 10; // H-bridge enable pin
You can’t perform that action at this time.