ADC

class olaf.Adc(pin: int, mock: bool = False)[source]

Octavo A8 ADC pin

Parameters:
  • pin (int) – The pin number between 0 and 7 for the adc pin on the Octavo A8.

  • mock (bool) – Mock the ADC.

property raw: int

The raw value from the ADC

Type:

int

property value: float

The ADC voltage value in volts.

Type:

float