Search found 629 matches

by jickster
Sun Mar 24, 2019 5:48 pm
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Re: Fast RGB to HSV (And vice versa) calculations?

If I wrote the C code and showed you how to merge it into the firmware, would you do it?


Sent from my iPhone using Tapatalk Pro
by jickster
Sun Mar 24, 2019 2:04 am
Forum: General Discussion and Questions
Topic: Is it possible to run micropython scripts loaded from hTTP?
Replies: 4
Views: 196

Re: Is it possible to run micropython scripts loaded from hTTP?

Hi andrews, This sort of thing is certainly possible - particularly if you already know how you will retrieve the file via HTTP. There is an example of how to embed MicroPython in a C project here: https://github.com/micropython/micropython/tree/master/examples/embedding In addition to the 'mp_lexe...
by jickster
Sun Mar 24, 2019 1:56 am
Forum: MicroPython pyboard
Topic: Why is my timer erratic?
Replies: 10
Views: 308

Re: Why is my timer erratic?

Try with different frequencies


Sent from my iPad using Tapatalk Pro
by jickster
Fri Mar 22, 2019 12:35 am
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Re: Fast RGB to HSV (And vice versa) calculations?

There’s one way to determine if the multiplies and divides are costing so much time. Where you divide by 1000, replace it with right shift by 10. a / 1000 Becomes (a >> 10) Multiplies turn into left shift by 10 a * 1000 Becomes (a << 10) This is “almost” correct because left/right shift by 10 is mul...
by jickster
Fri Mar 22, 2019 12:20 am
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Re: Fast RGB to HSV (And vice versa) calculations?

I find it suspicious that viper divide doesn’t exist but native divide does.




Sent from my iPhone using Tapatalk Pro
by jickster
Thu Mar 21, 2019 10:42 pm
Forum: General Discussion and Questions
Topic: Is it possible to run micropython scripts loaded from hTTP?
Replies: 4
Views: 196

Re: Is it possible to run micropython scripts loaded from hTTP?

andrews wrote:
Thu Mar 21, 2019 9:06 pm
to load a python script from hTTP or HTTPS
Do you mean "loads a .py file from http"?
by jickster
Thu Mar 21, 2019 7:28 pm
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Re: Fast RGB to HSV (And vice versa) calculations?

FYI what’s probably happening is the esp doesn’t have hardware divide.




Sent from my iPhone using Tapatalk Pro
by jickster
Thu Mar 21, 2019 6:26 pm
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Re: Fast RGB to HSV (And vice versa) calculations?

Seems a perfect application for viper. https://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers Sent from my iPhone using Tapatalk Pro unfortunately viper doesn't seem to support divisions? as there are quite a few going on (and necessary for HSV to RGB calculation) t...
by jickster
Wed Mar 20, 2019 1:48 am
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Re: Fast RGB to HSV (And vice versa) calculations?

mattyt wrote:Viper is great - unless you want it to work on multiple ports. Most of my development is on the ESP32 right now where there is no Viper implementation...
What about “@native”?


Sent from my iPhone using Tapatalk Pro
by jickster
Wed Mar 20, 2019 1:43 am
Forum: Programs, Libraries and Tools
Topic: Fast RGB to HSV (And vice versa) calculations?
Replies: 18
Views: 659

Fast RGB to HSV (And vice versa) calculations?

Seems a perfect application for viper.

https://www.kickstarter.com/projects/21 ... ontrollers

Sent from my iPhone using Tapatalk Pro