PinOut Names not working correctly
Created by: el-j
first of all: really nice board! thank you!
i have a problem with bonescript and the pin names. i try to use the gpio pins from p2. after a frustrating time where nothing worked with the board. i figured out that i have to update the bonescript module with the latest release from github. (it was not integrated in the lastest debian image)
now i am able to use the "P1_xx" "P2_xx" declaration for the pins without getting just an error. sadly it does not work properly for all pins, from my testing.
the pin P2_2 and P2_8 working correctly with a pushbutton. but the pins P2_4 + 6 + 10 do not get any input with the same code.
i try to find the answer with the getPinMode methode but i cannot get a clue out of it.
not working:
{ pin: 'P2_6',
name: 'GPIO1_25',
options:
[ 'gpmc_wpn',
'gmii2_rxer',
'gpmc_csn5',
'rmii2_rxer',
'mmc2_sdcd',
'pr1_mii1_txen',
'uart4_txd',
'gpio1_25' ],
gpio: { active: true, direction: 'in', allocated: false } }
mux = undefined
pullup = undefined
slew = undefined
gpio = [object Object]
options = gpmc_wpn,gmii2_rxer,gpmc_csn5,rmii2_rxer,mmc2_sdcd,pr1_mii1_txen,uart4_txd,gpio1_25
pin = P2_6
name = GPIO1_25
err = undefined
working:
{ pin: 'P2_8',
name: 'GPIO1_28',
options:
[ 'gpmc_ben1',
'mii2_col',
'NA',
'mmc2_dat3',
'NA',
'NA',
'mcasp0_aclkr',
'gpio1_28' ],
gpio: { active: true, direction: 'in', allocated: false } }
mux = undefined
pullup = undefined
slew = undefined
gpio = [object Object]
options = gpmc_ben1,mii2_col,NA,mmc2_dat3,NA,NA,mcasp0_aclkr,gpio1_28
pin = P2_8
name = GPIO1_28
err = undefined
do you have any idea what i can do, to use this pins?