Pins and Peripherals¶
Zerynth allows multi-hardware programming. To do this in a reliable and maintainable way it has been necessary to define a pin naming strategy that allows programming native multi-board scripts.
Zerynth follows the widely accepted Arduino pin naming schema where Digital pin are named with
Dx where x is the number of the physical pin available on the board (not of the MCU pin!). Similarly, Analog pins are named with
In Zerynth names are always UPPERCASE. The following PIN names are included in the Zerynth built-ins:
D256representing the names of digital pins.
LED7representing the names of the on-board installed LEDs.
USER_BUTTONrepresenting the name of the on-board installed button.
- all the names that appear on the Z-Bus schematics:
SERIALnrepresenting the different serial ports.
I2Cnrepresenting the different I2C buses.
SPInrepresenting the different SPI buses.