time.sleep_ms -> wrong argument type ?!
-
hello,
in my patch i have said "import time"
and then later on i write time.sleep_ms(500)
but the compiler tells me:Traceback (most recent call last):
File "main.py", line 14, in <module>
TypeError: argument has wrong typeand i go like "wait, what.. wHAT??"
-
@soren
which firmware version?os.uname()and are you sure that line 14 is about
time.sleep_ms(500)?
Or it contain var instead of 500? -
ok so apparently it's the compiler that's pretty useless. the problem was not (despite the compiler saying so) line 14, but something in my initialization of SPI.
os.uname gives me:
(sysname='LoPy', nodename='LoPy', release='1.6.8.b2', version='v1.8.6-530-gca8bdcbb on 2017-03-21', machine='LoPy with ESP32', lorawan='1.0.0')
-
@soren
current firmware is 1.6.13.b1but i never have had problem with line number in error message
Do you have line break as LF or CRLF or mixed?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login