Search found 18 matches
- Wed Mar 20, 2019 4:46 pm
- Forum: Programs, Libraries and Tools
- Topic: Fast RGB to HSV (And vice versa) calculations?
- Replies: 18
- Views: 12811
Re: Fast RGB to HSV (And vice versa) calculations?
When I see HSV->RGB I think of this great write-up and portable C library: http://www.vagrearg.org/content/hsvrgb Of course, not too helpful in the near-term but since mattyt is talking about a colorsys module it might be helpful. Speaking of which, I'd like to help out with something like that. Let...
- Wed Mar 20, 2019 4:39 pm
- Forum: General Discussion and Questions
- Topic: How to get CPU load approximate value on Micropython ?
- Replies: 3
- Views: 2610
Re: How to get CPU load approximate value on Micropython ?
ThomasChr and fstengel are correct in saying that on the vanilla microcontroller ports the load is 100% because MicroPython is always running something . For example it might be waiting for input at the REPL prompt or (after receiving input) taking the necessary steps to lex, compile, and then run t...
- Wed Mar 20, 2019 4:21 pm
- Forum: Development of MicroPython
- Topic: Using Pointer to State in NLR Assembly
- Replies: 9
- Views: 6866
Re: Using Pointer to State in NLR Assembly
dhylands , thanks for letting me know - learning something new all the time! Sorry, but there's no need for such a patch (on its own). Thanks - your parenthetical is pretty enticing. What else would you want to see along with such a patch? I'd still argue in favor of making this change and here's w...
- Tue Mar 19, 2019 4:28 pm
- Forum: Development of MicroPython
- Topic: Using Pointer to State in NLR Assembly
- Replies: 9
- Views: 6866
Re: Using Pointer to State in NLR Assembly
Oops, you got it - thanks for spotting that! Ahh what a relief. I was so blinded by worry that some recent changes to the ESP32 port had caused this that I must've just forgot to make that little change. What I'm taking away from this is that the link error was trickier to spot than usual, probably ...
- Tue Mar 19, 2019 2:55 pm
- Forum: Development of MicroPython
- Topic: Using Pointer to State in NLR Assembly
- Replies: 9
- Views: 6866
Re: Using Pointer to State in NLR Assembly
Sure, here is a link to my fork. For what its worth this is not specific to the ESP32 port - you should be able to see the error if you just try to build mpy-cross.
- Tue Mar 19, 2019 7:44 am
- Forum: Development of MicroPython
- Topic: Using Pointer to State in NLR Assembly
- Replies: 9
- Views: 6866
Using Pointer to State in NLR Assembly
Hi everyone. I'd like to submit a PR soon for changing the MP_STATE_XXX(x) macros so that they access the current state through a pointer. I was up-to-date with the repo at commit [41e7ad647] then I diverged and got demo code working on an ESP32. Now I'm making the effort to consolidate my changes i...
- Tue Mar 19, 2019 7:16 am
- Forum: Development of MicroPython
- Topic: Understanding Inside of Micropython
- Replies: 3
- Views: 3070
Re: Understanding Inside of Micropython
hadi, I would agree with jickster and pfalcon - the surefire way to learn about uPython is to read the code. I'll add that if you're like me and tend to get caught up in the details that it is important to take it in small chunks. For example when you're trying to understand the garbage collector do...
- Tue Mar 19, 2019 5:33 am
- Forum: Development of MicroPython
- Topic: Run more than one micropython instance
- Replies: 30
- Views: 24166
Re: Run more than one micropython instance
Hello everyone - interesting thread. I wish I had seen it earlier this year. Summary: if the op (tarun2121) is still pursuing this project it is definitely within reach and I'd like to work together on it. If you can use an underlying scheduler such as FreeRTOS then the rest of the work is minimal t...