0

light sensor analogIn error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

light sensor analogIn error

by afjohn on Wed May 15, 2019 3:34 pm

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)

**********
afjohn
 
Posts: 1
Joined: Mon Dec 30, 2013 1:33 pm

Please be positive and constructive with your questions and comments.