Search found 34 matches

by zaord
Sun Aug 09, 2020 9:28 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio parralel threading seems to not work
Replies: 9
Views: 191

Re: uasyncio parralel threading seems to not work

My question is that the stepper routine I post above Have a sleep to vary the speed of rotation of my stepper, and this await seems to not allow the other coroutine to run since the oled refresh function is like so slow that is freeze the screen. So I wonder if it is normal of if it's due to the fac...
by zaord
Sun Aug 09, 2020 8:02 am
Forum: Programs, Libraries and Tools
Topic: uasyncio parralel threading seems to not work
Replies: 9
Views: 191

Re: uasyncio parralel threading seems to not work

Hmmm Good to know :)

Thanks a lot Peter !
by zaord
Sat Aug 08, 2020 2:49 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio parralel threading seems to not work
Replies: 9
Views: 191

Re: uasyncio parralel threading seems to not work

Okay, I get several error that I could fix with the _exception_handler, but my code is actually still frozen during my stepper function execution. So I have some question : 1) Is it possible to call await uasyncio.sleep_ms(120) in the function stepper from the function InvPress which is called by th...
by zaord
Sat Aug 08, 2020 2:36 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio parralel threading seems to not work
Replies: 9
Views: 191

Re: uasyncio parralel threading seems to not work

Hi,

I found maybe a mistake in your tutorial

async def main():
loop = asyncio.get_event_loop()

Isn't be uasyncio.get_ instead ?

I try and come back if I have more questions !
by zaord
Sat Aug 08, 2020 11:21 am
Forum: Programs, Libraries and Tools
Topic: uasyncio parralel threading seems to not work
Replies: 9
Views: 191

Re: uasyncio parralel threading seems to not work

Hi here, It's seems that I did not put Any await so only one routine could be run and never the others. Here I put the code updated : uasyncio.run(self.main()) async def screen(self): await uasyncio.sleep_ms(100) Writer.set_textpos(ssd, 0, 0) # In case previous tests have altered it wri = Writer(ssd...
by zaord
Fri Aug 07, 2020 3:26 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio parralel threading seems to not work
Replies: 9
Views: 191

uasyncio parralel threading seems to not work

Hi here, I try to use two routine I wants to be exectued in the same time continulsy, but Only the first one is running... Where I am wrong ? async def screen(self): Writer.set_textpos(ssd, 0, 0) # In case previous tests have altered it wri = Writer(ssd, small, verbose=False) wri.set_clip(False, Fal...
by zaord
Sat Jul 18, 2020 8:45 pm
Forum: Development of MicroPython
Topic: Error while I try to make UNix port
Replies: 2
Views: 226

Re: Error while I try to make UNix port

Okay i reclean all and now its fixed :) tack !
by zaord
Fri Jul 17, 2020 1:11 pm
Forum: Drivers for External Components
Topic: VS1053b audio drivers: play music, speech or sound FX
Replies: 15
Views: 1417

Re: VS1053b audio drivers: play music, speech or sound FX

Thanks Guys for your answears ! The other projects i quote just before is made with freeRTOS, seems effectively a good way. I was questioning myself because the board used in the hardware is quite old, but seems to works with 8 simultaneous tracks, so that's a good point to start. I don't wants to s...
by zaord
Fri Jul 17, 2020 12:54 pm
Forum: Development of MicroPython
Topic: Error while I try to make UNix port
Replies: 2
Views: 226

Error while I try to make UNix port

Hi here ;) I have an error while I try to build micropython unix port : CC ../../extmod/modussl_axtls.c In file included from ../../lib/axtls/ssl/tls1.h:46, from ../../lib/axtls/ssl/ssl.h:75, from ../../extmod/modussl_axtls.c:35: ../../lib/axtls/ssl/os_port.h:1:20: error: expected ‘=’, ‘,’, ‘;’, ‘as...
by zaord
Thu Jul 16, 2020 9:53 am
Forum: Drivers for External Components
Topic: VS1053b audio drivers: play music, speech or sound FX
Replies: 15
Views: 1417

Re: VS1053b audio drivers: play music, speech or sound FX

Hi, I know aldready 2 project working through stm32 making similar things : https://hackaday.io/project/8320-the-beatsqueezer-stm32-sampler http://www.midibox.org/dokuwiki/doku.php?id=midibox_sd_card_sample_player What do you think could make the projet a miss in micropython ? Because of the languag...