Skip to content

Instantly share code, notes, and snippets.

// how many times a button has been pressed since the beginning of time
const int BUTTON_PIN = 3;
int buttonCount = 0;
void setup() {
pinMode(BUTTON_PIN, INPUT);
}
#include <Servo.h>
Servo myservo;
int SERVO_PIN = 9;
int BUTTON_PIN = 3;
boolean button = LOW;
void setup() {
pinMode(BUTTON_PIN, INPUT);
// Pot input LED output for Interaction Lab course
int ledPin = 3;
int analogInPin = 0;
int val = 0;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
#include <Servo.h>
Servo myservo;
void setup() {
// put your setup code here, to run once:
myservo.attach(9);
Serial.begin(9600);
}
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int sensorValue = analogRead(A0);
@margmarg
margmarg / keybase.md
Created December 19, 2017 20:02
Keybase Proof

Keybase proof

I hereby claim:

  • I am margmarg on github.
  • I am margmarg (https://keybase.io/margmarg) on keybase.
  • I have a public key ASA8ks7muwRdvIGL2AbpGCYJykIxAVdCC51GmS9w9hdlnAo

To claim this, I am signing this object: