Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // potméters led villogtatás
- int led = 13;
- int potpin = A0;
- int pot = 0;
- void setup() {
- // put your setup code here, to run once:
- pinMode (led, OUTPUT);
- Serial.begin(9600);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- pot = analogRead(potpin);
- Serial.println(pot);
- digitalWrite (led, HIGH);
- delay (pot);
- digitalWrite (led, LOW);
- delay (pot); //a poti adja a villogások közti időt
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement