Skip to content

general

Global constants.

Attributes:

Name Type Description
PIN_ADC int

Pin number of the adc pin (not physically the same pin as the button!)

PIN_BEEPER int

Pin number of the beeper.

PIN_BUTTON int

Pin number of the button in the rotary encoder.

PIN_ENCODER_TRACK_1 int

Pin number of the first track of the encoder.

PIN_ENCODER_TRACK_2 int

Pin number of the second track of the encoder.

PIN_RGB_STRIP int

Pin number of the rgb strip.

PIN_RX int

Pin number of the RX port.

PIN_SCL int

Pin number of the scl port for i2c.

PIN_SDA int

Pin number of the sda port for i2c.

PIN_TX int

Pin number of the TX port.

PIN_ADC module-attribute

PIN_ADC: int = const(0)

Pin number of the adc pin (not physically the same pin as the button!)

PIN_BEEPER module-attribute

PIN_BEEPER: int = const(15)

Pin number of the beeper.

PIN_BUTTON module-attribute

PIN_BUTTON: int = const(0)

Pin number of the button in the rotary encoder.

PIN_ENCODER_TRACK_1 module-attribute

PIN_ENCODER_TRACK_1: int = const(12)

Pin number of the first track of the encoder.

PIN_ENCODER_TRACK_2 module-attribute

PIN_ENCODER_TRACK_2: int = const(14)

Pin number of the second track of the encoder.

PIN_RGB_STRIP module-attribute

PIN_RGB_STRIP: int = const(2)

Pin number of the rgb strip.

PIN_RX module-attribute

PIN_RX: int = const(3)

Pin number of the RX port.

PIN_SCL module-attribute

PIN_SCL: int = const(5)

Pin number of the scl port for i2c.

PIN_SDA module-attribute

PIN_SDA: int = const(4)

Pin number of the sda port for i2c.

PIN_TX module-attribute

PIN_TX: int = const(1)

Pin number of the TX port.