8000 analogio refuse to change the value · Issue #3962 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
analogio refuse to change the value #3962
Closed
@dglaude

Description

@dglaude

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0