Is there a command I can use to make the RP2040 listen to the encoders again?
Here is the code I use to establish connection:
- Code: Select all | TOGGLE FULL SIZE
import pyvisa
import board
import time
resources = rm.list_resources()
foundInstr = None
for iRes in resources:
if 'ASRL6' in iRes:
foundInstr = iRes
if foundInstr != None:
inst = rm.open_resource(foundInstr)
and here the code I use to set the value and read back the set value:
- Code: Select all | TOGGLE FULL SIZE
inst.clear()
inst.write('250')
value = inst.read()
print(value)
Thank you very much for your help