Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int AI3;
- int AI;
- int VALUE;
- void setup()
- {
- pinMode(11, OUTPUT);
- pinMode(A3, INPUT);
- Serial.begin(9600);
- }
- void loop()
- {
- AI3 = analogRead(A3);
- AI = map(AI3, 0, 1023, 0, 255);
- analogWrite(11, AI);
- VALUE = map(AI3, 0, 1023, 0, 100);
- Serial.print("Vrednost:"); //Na zaslonu se izpiše "W ZANKA"
- Serial.print(" ");
- Serial.println(VALUE); //Na zaslonu pokaži vrenost ST
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement