jadonk / jadonk/bonescript

pinMode fails on PocketBeagle

Aperta
#182 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
510
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, node.js
Ambito
embedded-iot
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.