time.monotonic() Using Micropython and Circuitpython at the same time
Posted: Tue Oct 05, 2021 12:45 pm
I found something that use Blinka under Micropython on a Raspberry Pi Pico. I am trying to do with Circuitpython's esp32spi library.The first problem is simple The esp32spi library uses time.monotonic() but time.monotonic() is not provided by the micropython time module. So I replaced time.monotic() to time.ticks_ms() / 1000 but It didn't worked. https://githubmemory.com/repo/adafruit/ ... 480?page=1 here same issue as me.
I am getting these errors when I change(time.monotic() to time.ticks_ms()/1000):
How can I add it (if it solves the problem) ? because there are a lot of libraries with time.monotic() on Circuitpython.
I am getting these errors when I change(time.monotic() to time.ticks_ms()/1000):
Code: Select all
Raspberry Pi RP2040 - ESP32SPI hardware test
Traceback (most recent call last):
File "<stdin>", line 17, in <module>
File "/lib/adafruit_esp32spi/adafruit_esp32spi.py", line 290, in status
File "/lib/adafruit_esp32spi/adafruit_esp32spi.py", line 280, in _send_command_get_response
File "/lib/adafruit_esp32spi/adafruit_esp32spi.py", line 197, in _send_command
File "/lib/adafruit_esp32spi/adafruit_esp32spi.py", line 161, in _wait_for_ready
RuntimeError: ESP32 not responding