SHARE
TWEET

Untitled

a guest Feb 14th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. int pent = A0;
  3. int val = 0;
  4. int led = 10;
  5.  
  6.  
  7. void setup() {
  8.   // put your setup code here, to run once:
  9. pinMode(pent, INPUT);
  10. Serial.begin(9600);
  11. }
  12.  
  13. void loop() {
  14.   // put your main code here, to run repeatedly:
  15. val = analogRead(pent);
  16. Serial.println(val);
  17. analogWrite(led, val/4);
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top