Background
Line.request() accepts LineRequestFlags including ACTIVE_LOW. This inverts the polarity of the value in the LineHandle::get_value() and LineHandle::set_value() APIs to mean:
0 -> inactive -> electrically high
1 -> active -> electrically low
Problem
Line.request() also accepts a default argument which is currently documented as:
For an output, the default parameter specifies the value the line should have when it is configured as an output.
The polarity of this argument is not clear.
If I do this:
line.request(LineRequestFlags.ACTIVE_LOW, 0, "me");
does 0 mean:
- inactive -> electrically high
- electrically low
Somewhat related: #49
Background
Line.request()acceptsLineRequestFlagsincludingACTIVE_LOW. This inverts the polarity of the value in theLineHandle::get_value()andLineHandle::set_value()APIs to mean:0-> inactive -> electrically high1-> active -> electrically lowProblem
Line.request()also accepts adefaultargument which is currently documented as:The polarity of this argument is not clear.
If I do this:
does
0mean:Somewhat related: #49