The function reports the analog reading of the LDR (Light) sensor connected to the selected pin. The value will vary between 0 to 4095.
There are lots of pins to which the sensor can be connected:
- Analog Pins: A1, A2, and A3
Function Definition: ldrvalue(pin = "A1")
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
pin | string | The pin of Quarky or the Expansion board where the relay is connected. | "A1", "A2", "A3" | "A1" |
The function reports the analog reading of the LDR (Light) sensor connected to the selected pin. The value will vary between 0 to 4095.
There are lots of pins to which the sensor can be connected:
Copyright 2024 – Agilo Research Pvt. Ltd. All rights reserved – Terms & Condition | Privacy Policy