SilverThings / bulldog

Java GPIO Library for BeagleBoneBlack, Raspberry Pi and CubieBoard.
http://www.silverspoon.io
Apache License 2.0
49 stars 23 forks source link

Bulldog initializes PIN value with Signal.Low despite it's current value #47

Closed sbunciak closed 8 years ago

sbunciak commented 9 years ago

E.g. assuming that PIN P1_11 has been set to high outside of Bulldog, the following will fail:

Board board = Platform.createBoard();
DigitalOutput outputPin = board.getPin("P1_11").as(DigitalOutput.class);

assertEquals(outputPin.getAppliedSignal(), Signal.High);