Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bb = require('./bonescript');
- var Inanna1 = bone.P8_3;
- var Test = bone.USR3;
- setup = function() {
- pinMode(Inanna1, INPUT);
- pinMode(Test, OUTPUT);
- };
- loop = function() {
- if digitalRead(Inanna1, LOW);
- digitalWrite(Test, HIGH);
- else digitalWrite(Test,LOW);
- delay(100);
- };
- bb.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement