Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(pullup) {
- case 1:
- pinObject.pullup = 'disabled';
- break;
- case 2:
- pinObject.pullup = 'pullup';
- break;
- case 0:
- pinObject.pullup = 'pulldown';
- break;
- case 3:
- default:
- console.error('Unknown pullup value: '+pullup);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement