Post B467SWm4Z1QvzKiWCO by neauoire@merveilles.town
(DIR) More posts by neauoire@merveilles.town
(DIR) Post #B43xyOtU0kR6xLp4q0 by neauoire@merveilles.town
0 likes, 0 repeats
Need #Uxn on the m5 stack?https://git.sr.ht/~rabbits/uxn-m5
(DIR) Post #B43y2hDtnyosxhQ8ae by june@social.nouveau.community
0 likes, 0 repeats
@neauoire IT LIVES
(DIR) Post #B43yVIBNz5ILhKsfKK by angelwood@merveilles.town
0 likes, 0 repeats
@neauoire dont those have IMU's? you could make a uxn step tracker!
(DIR) Post #B43ya0z7LwZpo8OVNo by neauoire@merveilles.town
0 likes, 0 repeats
@angelwood I'm just procrastinating from working on the e-ink one right now X)
(DIR) Post #B448BxUVgpXjZ1FHyy by avi@cosocial.ca
0 likes, 0 repeats
@neauoire “ 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?
(DIR) Post #B448BxfV1yKk76O46y by neauoire@merveilles.town
0 likes, 0 repeats
@avi Oh X) yes, that's a mistake, sorry about that.
(DIR) Post #B44AUOxwThJNtbvzPM by nomand@merveilles.town
0 likes, 0 repeats
@neauoire do the adv!
(DIR) Post #B44DBeiE0aPb5qKrcu by neauoire@merveilles.town
0 likes, 0 repeats
@nomand working on the e-ink one right now :)
(DIR) Post #B45GM7Qoa1Y853phM8 by maxime_andre@mastodon.xyz
0 likes, 0 repeats
@neauoire i had to try it :)
(DIR) Post #B45GM7dvnG2cjjyAng by neauoire@merveilles.town
0 likes, 0 repeats
@maxime_andre glad to see :) Copy paste? Did you have to change anything?
(DIR) Post #B45t7faxAujfuCfzJw by neauoire@merveilles.town
0 likes, 0 repeats
@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.https://git.sr.ht/~rabbits/uxn-m5/tree/master/item/src/uxn-m5.c#L174
(DIR) Post #B45uN3MfBOBzvItKAy by maxime_andre@mastodon.xyz
0 likes, 0 repeats
@neauoire 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
(DIR) Post #B45uN3WEbnqgOzMy5w by neauoire@merveilles.town
0 likes, 0 repeats
@maxime_andre thanks for the tip :) it works.https://git.sr.ht/~rabbits/uxn-m5/tree/master/item/src/uxn-m5.c#L333
(DIR) Post #B45ugv7LYRyQ8ZCULY by maxime_andre@mastodon.xyz
0 likes, 0 repeats
@neauoire you prefer millis() instead of micros() ?
(DIR) Post #B45ugvGuyrd6cFg8GW by neauoire@merveilles.town
0 likes, 0 repeats
@maxime_andre I came across this searching for micros's API, and it spooked me.https://forum.arduino.cc/t/why-is-micros-so-much-slower-than-millis/896975
(DIR) Post #B45vUVCGCYQADz8ome by maxime_andre@mastodon.xyz
0 likes, 0 repeats
@neauoire 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."https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/esp_timer.html
(DIR) Post #B45vUVKlgvE6eN7c2q by neauoire@merveilles.town
0 likes, 0 repeats
@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.
(DIR) Post #B45wM82IWp6o1x3JNg by maxime_andre@mastodon.xyz
0 likes, 0 repeats
@neauoire l'adresse ?
(DIR) Post #B45wM8BrxElUVdWxIe by neauoire@merveilles.town
0 likes, 0 repeats
@maxime_andre M5.Lcd.pushColors(row, w, true); le true permet de garder l'addresse en memoire mais en fin de compte j'avais mal compris la docs.
(DIR) Post #B467SWbRCYvVSLk1ce by maxime_andre@mastodon.xyz
0 likes, 0 repeats
@neauoire ah j'arrive pas à trouver ça dans la doc
(DIR) Post #B467SWm4Z1QvzKiWCO by neauoire@merveilles.town
0 likes, 0 repeats
@maxime_andre ouais c'est super mal documentez, j'ai trouvez ca sur reddit.