P9_17 and P9_18 Problem with button

35 views
Skip to first unread message

Hannes

unread,
Dec 8, 2014, 9:16:59 AM12/8/14
to libbu...@googlegroups.com
Hello!

It seems there is a wrong Devicetree settings for P9_17 and P9_18?
When I setup the Devicetree by my own, the input are working with:

My Devicetree:
pinmux-pins:
pin 86 (44e10958): P9_18_pinmux.33 (GPIO UNCLAIMED) function pinmux_P9_18_default_pin group pinmux_P9_18_default_pin
pin 87 (44e1095c): P9_17_pinmux.32 (GPIO UNCLAIMED) function pinmux_P9_17_default_pin group pinmux_P9_17_default_pin

pins:
pin 86 (44e10958) 00000037 pinctrl-single 
pin 87 (44e1095c) 00000037 pinctrl-single

libbulldog:
pinmux-pins:
pin 86 (44e10958): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 87 (44e1095c): (MUX UNCLAIMED) (GPIO UNCLAIMED)

pins:
pin 86 (44e10958) 00000062 pinctrl-single 
pin 87 (44e1095c) 00000062 pinctrl-single 


The folder "gpio4" and "gpio5" exists.

Problem in the library or is it my mistake?

Thank you!

My Javacode:
// Detect the board we are running on
Board board = Platform.createBoard();

DigitalInput in11 = board.getPin(BBBNames.P9_18).as(DigitalInput.class);
DigitalInput in12 = board.getPin(BBBNames.P9_17).as(DigitalInput.class);

in11.setInterruptDebounceMs(50);
in12.setInterruptDebounceMs(50);

Button but11 = new Button(in11, Signal.High);
Button but12 = new Button(in12, Signal.High);

but11.addListener(new ButtonListener() {
        @Override
public void buttonPressed() {
updateOutputIn11(true);
}
@Override
public void buttonReleased() {
updateOutputIn11(false);
}
});
but12.addListener(new ButtonListener() {
@Override
public void buttonPressed() {
updateOutputIn12(true);
}
@Override
public void buttonReleased() {
updateOutputIn12(false);
}
});



Hannes

unread,
Dec 8, 2014, 9:18:20 AM12/8/14
to libbu...@googlegroups.com
I forgot:
Beaglebone Black Rev.C
Linux beaglebone 3.8.13-bone67 #1 SMP Wed Sep 24 21:30:03 UTC 2014 armv7l GNU/Linux

Reply all
Reply to author
Forward
0 new messages