All Questions
7 questions
3
votes
2
answers
155
views
ImportError: can't import name perf_counter. What may be the reason?
I`ve been working on my code for Micropython-flashed ESP8266, and well... this error occured:
from time import perf_counter
ImportError: can't import name perf_counter
I believe that the whole code ...
-1
votes
2
answers
488
views
MicroPython sleep_us lies?
Working on another project I faced something weird in working with time.
Especially with time.ticks_us().
I am using the ESP32 S2 module.
Code:
from time import ticks_us, sleep_us
for i in range(100):
...
0
votes
1
answer
657
views
Have the real date and time in micropython
In order to do a project that includes data from PySense, I need to attach to that data a way to associate a time and date. However, it is showing me a date from 1970 and the time starts at 00:00:00.
...
1
vote
2
answers
665
views
Calculate acceleration and deceleration while traveling from A to B
I am using code like the example below to simulate travel from one point to another.
The goal I want to achieve is have a realistic acceleration and deceleration at the beginning and end of trip ...
0
votes
1
answer
261
views
How to make code sleep without using modules
I'm currently in a bit of a predicament, I'm trying to make a micro python program that has a small time delay for readability, but cannot use any imports. I would simply install the module onto the ...
2
votes
2
answers
901
views
Converting Python Time to MicroPython PyBoard
I have a Python script controlling a Fibonacci clock that works great on the Raspberry Pi 4B, however, when I transfer the code to a PyBoard using MicroPython (which I'm completely new to) it doesn't ...
2
votes
3
answers
2k
views
Other ways of creating a delay other than time.sleep() in python
I am doing a bit of python on my casio calculator and i have run into a little problem, the version of python that my calculator uses is microPython 1.9.4. I am not able to use import time as the time ...