API

From an MDB Perspective, Pi Hat VMC uses the same API as other MDB products. To learn about the MDB API, please head over to API section and start by checking API General page.

In addition to the aforementioned, Pi Hat VMC was enhanced with I/O operation Capabilities, namely activate output and read Input values.

Activate Output

PinAPI Index
14Driver High 1
20Driver High 2
15Driver High 3
21Driver High 4
22Driver Low 1
17Driver Low 2
23Driver Low 3
18Driver Low 4
24Driver Low 5
12Input 1
6Input 2
11Input 3
5Input 4
Activate Output
Copy
Example
Copy

Manual Read Input

Manually Read Inputs
Copy

The hex value below is given by the active inputs. Each active input will correspond to the input index bit with a value 1 on the hex value given by the "I" command.

RESPONSE
Copy
Example
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard