---
int sensorPin = A0; int ledPin = 13; int ledBrightnessPin = 12; int sensorValue = 0; void setup(){ pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop(){ sensorValue = analogRead(sensorPin); Serial.print(sensorValue); Serial.print("\n"); digitalWrite(ledPin, HIGH); delay(sensorValue); digitalWrite(ledPin, LOW); delay(sensorValue); }...
No comments:
Post a Comment