Advertisement
Guest User

Untitled

a guest
Feb 9th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. switch(pullup) {
  2. case 1:
  3. pinObject.pullup = 'disabled';
  4. break;
  5. case 2:
  6. pinObject.pullup = 'pullup';
  7. break;
  8. case 0:
  9. pinObject.pullup = 'pulldown';
  10. break;
  11. case 3:
  12. default:
  13. console.error('Unknown pullup value: '+pullup);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement