Class daisy::GateIn¶
Generic Class for handling gate inputs through GPIO .More...
#include <gatein.h>
Public Functions¶
Type | Name |
---|---|
GateIn () |
|
void | Init (Pin pin, bool invert=true) Initializes the gate input with specified hardware pin. |
bool | State () |
bool | Trig () |
~GateIn () |
Detailed Description¶
Author:
Stephen Hensley
Date:
March 2020
Public Functions Documentation¶
function GateIn¶
GateIn Constructor
function Init¶
Initializes the gate input with specified hardware pin.
Parameters:
pin_cfg
pointer to pin to initializeinvert
True if the pin state is HIGH when 0V is present at the input. False if input signal matches the pin state.
Note:
the default for invert is true because it is typical to use an inverting input circuit (e.g. a BJT circuit) for eurorack gate inputs.
function State¶
Checks current state of gate input (no state required) read function is inverted because of suggested BJT input circuit
function Trig¶
Checks current state of gate input.
Returns:
True if the GPIO just transitioned.
function ~GateIn¶
GateIn Destructor
The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/gatein.h