Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 4th, 2020 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int pot =A0;
  2. int value =0;
  3. float result =0;
  4.  
  5. void setup() {
  6.   // put your setup code here, to run once:
  7.   Serial.begin(9600);
  8.   pinMode(pot,INPUT);
  9. }
  10.  
  11. void loop() {
  12.   // put your main code here, to run repeatedly:
  13. value = analogRead(pot);
  14. result = (value*5)/1023.0;
  15. Serial.print(result);
  16. Serial.println();
  17. delay(200);
  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