dumped all my old arduino stuff in here.

This commit is contained in:
Johannes Findeisen 2015-08-15 23:03:28 +02:00
commit 8f8959b76f
76 changed files with 8127 additions and 2 deletions

View file

@ -0,0 +1,21 @@
int sensorPin = A0;
int ledPin = 13;
int sensorValue = 0;
float printValue = 0;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop() {
sensorValue = analogRead(sensorPin);
printValue = (sensorValue * 0.48828125);
Serial.print(printValue);
Serial.print("\n");
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
}