Search found 216 matches

by kevinkk525
Tue Dec 11, 2018 12:46 pm
Forum: General Discussion and Questions
Topic: str/bytes splitting without heap reallocation
Replies: 0
Views: 33

str/bytes splitting without heap reallocation

Is it possible to split a string or bytes object into 2 smaller objects without them being reallocated on the heap? Basically splitting them in place into separate objects with the original one not being available anymore? The use-case for this is that I receive a very long string but the first part...
by kevinkk525
Mon Dec 10, 2018 3:48 pm
Forum: ESP32 boards
Topic: optimizing uasyncio performance
Replies: 24
Views: 648

Re: optimizing uasyncio performance

might have something to do with time.ticks_ms() being a 64-bit integer on loboris port using heap. In a post on his forum he says that in the next update, the behaviour will change and time.ticks_ms() will only return a 64-bit integer if the value needs it, otherwise it'll return a small int that wo...
by kevinkk525
Sun Dec 09, 2018 3:34 pm
Forum: General Discussion and Questions
Topic: Threading or RTOS in uPython
Replies: 4
Views: 121

Re: Threading or RTOS in uPython

uasyncio is cooperative (non-preemptive). I'd recommend reading about asyncio in python first for a general understanding. But you can of course directly look at the tutorial from pythoncoder.
by kevinkk525
Sun Dec 09, 2018 8:53 am
Forum: General Discussion and Questions
Topic: Micropython as Arduino killer
Replies: 18
Views: 634

Re: Micropython as Arduino killer

upip sounds great and should work perfectly for beginners. It should be better documented. The load of questions on this forum from newbies that don't even know how to load a library to their device is a bit too high. Later on, nobody uses upip on esp8266 as you quickly run out of RAM with bigger mo...
by kevinkk525
Sat Dec 08, 2018 5:02 pm
Forum: ESP32 boards
Topic: optimizing uasyncio performance
Replies: 24
Views: 648

Re: optimizing uasyncio performance

I thought those values for esp32 were high but testing it on my esp8266 running at 80MHz I got:
sleep(0): 2.1ms
sleep_ms(0): 2.1ms
yield: 1.5ms
by kevinkk525
Sat Dec 08, 2018 8:52 am
Forum: ESP32 boards
Topic: optimizing uasyncio performance
Replies: 24
Views: 648

Re: optimizing uasyncio performance

That is still surprisingly high but a lot better.
Does not help him though as he needs the loboris port because of the changes he made for I2S microphone.
by kevinkk525
Fri Dec 07, 2018 4:53 pm
Forum: ESP32 boards
Topic: optimizing uasyncio performance
Replies: 24
Views: 648

Re: optimizing uasyncio performance

Option 2 is what I'd try. It sounds like the best option for this scenario.
by kevinkk525
Fri Dec 07, 2018 8:40 am
Forum: ESP8266 boards
Topic: ESP8622 Car Robot Programming over wifi
Replies: 1
Views: 50

Re: ESP8622 Car Robot Programming over wifi

Your project sounds nice. Your questions on the other hand are answered multiple times in this forum. I'd recommend a search first. One keyword would be webrepl for uploading files over wifi
by kevinkk525
Thu Dec 06, 2018 3:06 pm
Forum: General Discussion and Questions
Topic: [Solved] Can't access REPL on macOS - Works on Windows
Replies: 13
Views: 183

Re: Can't access REPL on macOS - Works on Windows

I did not follow this thread and have no knowledge of macOS but could it be possible to run linux in a virtualbox machine and pass the usb device to the VM and then interact inside linux with the serial port?
by kevinkk525
Thu Dec 06, 2018 9:02 am
Forum: Other Boards
Topic: K210(Sipeed M1) run face tracking PT demo with maixpy
Replies: 5
Views: 209

Re: K210(Sipeed M1) run face tracking PT demo with maixpy

Hello Will you consider the same discount to be given on those same backers in Indiegogo in case they would order again? In my case, I am short of cash right now that I would order different package, but maybe after December I could order more. Sure, We will give discount or even donate boards for ...