europi

Before using any of this library, follow the instructions in programming_instructions.md to set up your module.

The EuroPi library is a single file named europi.py. It should be imported into any custom program by using from europi import * to give you full access to the functions within, which are outlined below. Inputs and outputs are used as objects, which each have methods to allow them to be used. These methods are used by using the name of the object, for example ‘cv3’ followed by a ‘.’ and then the method name, and finally a pair of brackets containing any parameters that the method requires.

For example:

cv3.voltage(4.5)

Will set the CV output 3 to a voltage of 4.5V.

europi.bootsplash()

Display the EuroPi version when booting.

europi.reset_state()

Return device to initial state with all components off and handlers reset.

europi.turn_off_all_cvs()

Calls cv.off() for every cv in cvs. This is done commonly enough in contrib scripts that a function seems useful.