light sensor analogIn error

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
afjohn
 
Posts: 1
Joined: Mon Dec 30, 2013 1:33 pm

light sensor analogIn error

Post by afjohn »

Whenever the following code is run on the Circuit Playground Express it produces an error.
I have not found any references to conflicts with pin PA11. Any suggestions as to the cause of the error would be appreciated.

Here is the error...
**********-
code.py output:
Traceback (most recent call last):
File "code.py", line 6, in <module>
ValueError: Pin PA11 in use
**********

Here is the code (the first six lines)...

**********
import time

from adafruit_circuitplayground.express import cpx
import board
from analogio import AnalogIn

analogin = AnalogIn(board.LIGHT)

**********

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”