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