Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

DL5SMB Aug 23rd, 2019 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int enc_read(void) {
  2.   int counter = 0;
  3.   unsigned char result = rotary.process();
  4.   if (result == DIR_CW) {
  5.     counter++;
  6.     return(counter);
  7.   } else if (result == DIR_CCW) {
  8.     counter--;
  9.     return(counter);
  10.   }
  11. }
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