Closed
Description
Testing on
Adafruit CircuitPython 6.1.0-rc.0 on 2021-01-06; Adafruit Feather M0 Express with samd21g18
analogio seems to fail when I try to change the value:
import board
from analogio import AnalogOut
analog_out = AnalogOut(board.A0)
analog_out.value = 1000
analog_out.value = 2000
The result is and error on the line that set the value to 2000:
main.py output:
Traceback (most recent call last):
File "main.py", line 5, in
ValueError: Object has been deinitialized and can no longer be used. Create a new object.
When trying the guide code from https://learn.adafruit.com/circuitpython-essentials/circuitpython-analog-out it fail on the line: analog_out.value = i