input pin p8_44 to p8_41 and p8_31 issue on debian 8.x
See original GitHub issuehello, I use official debian images for my BBB. And since debian 8.4+ those pin : p8_44 to p8_41 and p8_31, does not do their job as INPUT pin. they can not fire CHANGE event anymore :
b.pinMode(io, b.INPUT, 7, 'pulldown');
b.attachInterrupt(io, true, b.CHANGE, function(x){
console.log(io);
});
I use 24 IO as INPUT and the others as OUTPUT for information.
I have tested it on 8.4 and 8.6 debian. same issue. but on 7.9 debian it works like a charm.
I also have tried it with original bonescript pkg on debian images and after an update to 0.5-rc (installed from debian repo) but same issue on debian 8.4+
for information I run with /boot/uEnv.txt on 8.4 and 8.6 : ##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled: dtb=am335x-boneblack-overlay.dtb
and with that on 7.9: ##Disable HDMI/eMMC (v3.8.x) cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G
did you have plan to fix this ? thank’s a lot
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
That sounds like a reasonable assumption to make.
you are right: internal pulldown mode seems not be activated by default on debian 8.4+ (but it does on debian 7.11). if I patch /usr/local/lib/node_modules/bonescript/src/hw_mainline.js on line 87 with :
fs.writeFileSync(pinmux+"/state", 'gpio_pd');
it worksthe pinMode bonescript api references that :
and even if I try that test.js script, it does not work :
don’t you assume that if it works on debian 7.11 and not on 8.4+, it is a regression ?