“ The file device is not sandboxed, meaning that it should not be able to read or write outside of the working directory.” I feel like one of those “not”s must be wrong?
@maxime_andre !!! I just learned how to write many pixels to the screen at once, I didn't see it in the arduino manual, but this makes it all A LOT faster. git.sr.ht/~rabbits/uxn-m5/tree…
nice ! btw if you want to have exactly 60 fps, you can use micros() to get the time since boot in microseconds, + delayMicroseconds, and calculate how much time you need to delay
I set up a sketch to test the hz of the main loop with millis() vs micros(). With millis() hz was giving a reading between 288,935 and 289,232 but with micros is was reading 174,730 which is substantially slower.
they are using an arduino nano, maybe that's why it's slower. on the esp32, micros just calls esp_timer_get_time. "This function is fast and has no locking mechanisms that could potentially introduce delays or conflicts. As a result, it can be useful for fine-grained timing, with the accuracy of 1 μs, in tasks as well as in ISR routines." docs.espressif.com/projects/es…
@maxime_andre oh! J'avais meme regardez du cote de la docs de ESP X) haha, merci pour le lien.
Ca roule super vite en ce moment de toute maniere. Y'a un truc qui reste a comprendre et c'est le truc de l'addresse pendant le screen_flush, y'a moyen de conserver ca et de ne pas avoir a recalculer je pense.
June
in reply to Devine Lu Linvega • • •Chloe :>
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to Chloe :> • • •Avi Bryant
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to Avi Bryant • • •nomand
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to nomand • • •max22-
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to max22- • • •Devine Lu Linvega
in reply to max22- • • •git.sr.ht/~rabbits/uxn-m5/tree…
~rabbits/uxn-m5 (master): src/uxn-m5.c - sourcehut git
git.sr.htmax22-
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to max22- • • •git.sr.ht/~rabbits/uxn-m5/tree…
~rabbits/uxn-m5 (master): src/uxn-m5.c - sourcehut git
git.sr.htmax22-
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to max22- • • •forum.arduino.cc/t/why-is-micr…
Why is micros() so much slower than millis()?
Arduino Forummax22-
in reply to Devine Lu Linvega • • •"This function is fast and has no locking mechanisms that could potentially introduce delays or conflicts. As a result, it can be useful for fine-grained timing, with the accuracy of 1 μs, in tasks as well as in ISR routines."
docs.espressif.com/projects/es…
ESP Timer (High Resolution Timer) - ESP32 - — ESP-IDF Programming Guide v5.5.3 documentation
docs.espressif.comDevine Lu Linvega
in reply to max22- • • •@maxime_andre oh! J'avais meme regardez du cote de la docs de ESP X) haha, merci pour le lien.
Ca roule super vite en ce moment de toute maniere. Y'a un truc qui reste a comprendre et c'est le truc de l'addresse pendant le screen_flush, y'a moyen de conserver ca et de ne pas avoir a recalculer je pense.
max22-
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to max22- • • •max22-
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to max22- • • •