jadonk / jadonk/bonescript

pinMode fails on PocketBeagle

Open
#182 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
510
Forks
153
PR merge metrics
No merged PRs in 30d

Description

Hello.
I am using PocketBeagle.

> BeagleBoard.org Debian Image 2018-06-17
> bonescript@0.7.0

I am trying gpio operation using BoneScript.
But, I get the following error when I try to set p1_2 gpio pin to output.

>$ node -pe "require('bonescript').pinMode('P1_2', 'out')"
>info: pinMode: Missing mux name for pin object: {"name":"AIN6","ain":6,"eeprom":73,"scale":4096,"key":"P1_2","ball":{"ZCZ":"A8","BSM":"C9"}}
>info: No pinmux for P1_2
>false
>info: running rc_cleanup()

I tried other names as 'gpio_87', etc. but they also did not work.

Whereas, I have no such problem with config-pin command.

$ config-pin p1_2 output
$ config-pin p1_2 hi
$ config-pin p1_2 lo
...

i.e.
In comparison, using config-pin command on PocketBeagle, I can set p1_2 pin ho/low properly). But using bonescript I cannot.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the BoneScript pinMode entry point and reproduce the P1_2 failure on the PocketBeagle setup described in the issue. Compare its pin handling with the working config-pin commands; done means pinMode('P1_2', 'out') succeeds and the pin can be driven high and low.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.