Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserved pins are reported as "unset". #218

Open
jingman opened this issue Dec 8, 2014 · 0 comments
Open

Reserved pins are reported as "unset". #218

jingman opened this issue Dec 8, 2014 · 0 comments
Assignees

Comments

@jingman
Copy link
Collaborator

jingman commented Dec 8, 2014

It knows that the pin is reserved, but it's reporting that it's unset.

> print scout.isleadscout
print scout.isleadscout
1
> pin.save("d6",output)
pin.save("d6",output)
Cannot change mode of reserved pin
> print pin.report.digital
print pin.report.digital
{"type":"digital","mode":[-3,-3,-3,-3,-3,-3,-3],"state":[-1,-1,-1,-1,-1,-1,-1],"at":69520}
1
> pin.status
pin.status
{
  "rx0":{"id":"0", "mode":"reserved", "val":"-"},
  "tx0":{"id":"1", "mode":"reserved", "val":"-"},
  "d2":{"id":"2", "mode":"unset", "val":"-", "pwm":true, "wakeup":0},
  "d3":{"id":"3", "mode":"unset", "val":"-", "pwm":true},
  "d4":{"id":"4", "mode":"unset", "val":"-", "pwm":true, "wakeup":0},
  "d5":{"id":"5", "mode":"unset", "val":"-", "pwm":true, "wakeup":0},
  "d6":{"id":"6", "mode":"unset", "val":"-"},
  "d7":{"id":"7", "mode":"unset", "val":"-", "wakeup":0},
  "d8":{"id":"8", "mode":"unset", "val":"-"},
  "ss":{"id":"9", "mode":"unset", "val":"-", "wakeup":0},
  "mosi":{"id":"10", "mode":"unset", "val":"-", "wakeup":0},
  "miso":{"id":"11", "mode":"unset", "val":"-", "wakeup":0},
  "sck":{"id":"12", "mode":"unset", "val":"-", "wakeup":0},
  "rx1":{"id":"13", "mode":"unset", "val":"-", "wakeup":0},
  "tx1":{"id":"14", "mode":"unset", "val":"-", "wakeup":0},
  "scl":{"id":"15", "mode":"reserved", "val":"-", "wakeup":0},
  "sda":{"id":"16", "mode":"reserved", "val":"-", "wakeup":0},
  "vcc":{"id":"17", "mode":"reserved", "val":"-"},
  "batt":{"id":"18", "mode":"reserved", "val":"-", "wakeup":0},
  "bkpk":{"id":"19", "mode":"reserved", "val":"-"},
  "chg":{"id":"20", "mode":"reserved", "val":"-"},
  "ledb":{"id":"21", "mode":"reserved", "val":"-", "pwm":true},
  "ledr":{"id":"22", "mode":"reserved", "val":"-", "pwm":true},
  "ledg":{"id":"23", "mode":"reserved", "val":"-", "pwm":true},
  "a0":{"id":"24", "mode":"unset", "val":"-"},
  "a1":{"id":"25", "mode":"unset", "val":"-"},
  "a2":{"id":"26", "mode":"unset", "val":"-"},
  "a3":{"id":"27", "mode":"unset", "val":"-"},
  "a4":{"id":"28", "mode":"unset", "val":"-"},
  "a5":{"id":"29", "mode":"unset", "val":"-"},
  "a6":{"id":"30", "mode":"unset", "val":"-"},
  "a7":{"id":"31", "mode":"unset", "val":"-"}
}
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants