Skip to content

Instantly share code, notes, and snippets.

@ririw
Created October 9, 2017 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ririw/238b5ff19e71fb58354e4146c1fd82a1 to your computer and use it in GitHub Desktop.
Save ririw/238b5ff19e71fb58354e4146c1fd82a1 to your computer and use it in GitHub Desktop.
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