Convert list of I/O status to decimal value. See also dec2bitlist().
Example: pyAPIUSBP.bitlist2dec([1,0,0,0,0,0,0,0]) -> 1 pyAPIUSBP.bitlist2dec([1,0,1,0,1,0,0,0]) -> 21
| Parameters: | val (int) – A list of I/O status. | 
|---|---|
| Returns: | Integer | 
Convert decimal value to a list of I/O status. See also bitlist2dec().
Example: dec2bitlist(1,8) -> [1, 0, 0, 0, 0, 0, 0, 0] dec2bitlist(21,8) -> [1, 0, 1, 0, 1, 0, 0, 0]
| Parameters: | 
  | 
|---|---|
| Returns: | List of I/O status.  |