The function returns the analog reading of the sensor connected to the specified analog pin of the Quarky. The value varies between 0 to 4095.
readanalogsensor()
Function Definition: readanalogsensor(analog_pin = "A1")
- Python Library: Sensors (Quarky)
- Library Import: quarky = Quarky()
- Mode: Stage Mode, Upload Mode
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
analog_pin | string | The analog pin of the Quarky where the sensor is connected. | "A1", "A2", or "A3" | "A1" |
Description
Example
There are no examples documented for this article.