Skip to content

Instantly share code, notes, and snippets.

@ririw

ririw/main.cpp

Created Oct 9, 2017
Embed
What would you like to do?
Rebecca code
#include "Arduino.h"
#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach(0);
Serial.begin(9600);
}
void loop()
{
int x = analogRead(23);
int y = x/5;
myservo.write(y);
delay(10);
Serial.print(x);
Serial.print('\n');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.