Created
October 9, 2017 03:03
-
-
Save ririw/238b5ff19e71fb58354e4146c1fd82a1 to your computer and use it in GitHub Desktop.
Rebecca code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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