AttributeError: 'Switch' object has no attribute 'value'
Posted: Tue Jan 22, 2019 5:07 am
Hi all,
First post here, I keep getting this error any help would be appreciated. I'm following along with the tutorial for the pyb. TIA
PYB: sync filesystems
PYB: soft reboot
MicroPython v1.8.7 on 2017-01-08; PYBLITEv1.0 with STM32F411RE
Type "help()" for more information.
>>> sw = pyb.Switch()
>>> sw.value()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Switch' object has no attribute 'value'
>>> import pyb
>>> sw = pyb.Switch()
>>> sw.value()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Switch' object has no attribute 'value'
>>> from pyb import Switch
>>> sw = pyb.Switch()
>>> sw.value()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Switch' object has no attribute 'value'
>>>
First post here, I keep getting this error any help would be appreciated. I'm following along with the tutorial for the pyb. TIA
PYB: sync filesystems
PYB: soft reboot
MicroPython v1.8.7 on 2017-01-08; PYBLITEv1.0 with STM32F411RE
Type "help()" for more information.
>>> sw = pyb.Switch()
>>> sw.value()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Switch' object has no attribute 'value'
>>> import pyb
>>> sw = pyb.Switch()
>>> sw.value()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Switch' object has no attribute 'value'
>>> from pyb import Switch
>>> sw = pyb.Switch()
>>> sw.value()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Switch' object has no attribute 'value'
>>>