Search found 9 matches
- Wed Apr 15, 2020 8:53 am
- Forum: Programs, Libraries and Tools
- Topic: UDP server for new uasyncio code (V3)
- Replies: 2
- Views: 2664
Re: UDP server for new uasyncio code (V3)
Hi. Thanks for the feedback. I'm testing this on an ESP32. I've looked at streams.py and it polls (through ipoll()). AFAIK there seems to be no interrupt-driven mechanisms to hook into in uasyncio, perhaps because the ISRs are of limited use in micropython (as opposed to Unix). run_until_complete() ...
- Tue Apr 14, 2020 6:48 pm
- Forum: Programs, Libraries and Tools
- Topic: UDP server for new uasyncio code (V3)
- Replies: 2
- Views: 2664
UDP server for new uasyncio code (V3)
Hi. I've made a simple UDP server for the new uasyncio code. It invokes a callback when a packet arrives. It looks at the return value of the callback and sends this back the client. If the callback returns None no response is sent. It is pretty minimalist but it does what I need it do do. One thing...
- Wed Apr 08, 2020 6:13 pm
- Forum: Programs, Libraries and Tools
- Topic: Neopixel strange behavior fast update
- Replies: 1
- Views: 2207
Re: Neopixel strange behavior fast update
I see random artifacts on my neopixels as well, from time to time. Not as frequent as you, though. Do you have a cap on the power input of the neopixels? It has previously resolved some of my issues. I've been told that Micropython on the ESP doesn't use the RMT, so I'm guessing it falls back to bit...
- Wed Apr 08, 2020 10:19 am
- Forum: ESP32 boards
- Topic: Spurious errors with Neopixels
- Replies: 3
- Views: 2377
Re: Spurious errors with Neopixels
Thanks!
That's all I needed to know. I'll see if I can dig up the RMT lib. I've used the RMT from C++ before and there are other working neopixel libs out there in other languages, so it should be doable to make this work.
That's all I needed to know. I'll see if I can dig up the RMT lib. I've used the RMT from C++ before and there are other working neopixel libs out there in other languages, so it should be doable to make this work.
- Tue Apr 07, 2020 4:30 pm
- Forum: ESP32 boards
- Topic: Spurious errors with Neopixels
- Replies: 3
- Views: 2377
Spurious errors with Neopixels
Hello. I have this bandwidth monitor that uses one of these neopixel rings to display network usage. It is updated 10x per second and it brings me joy to see the pixels blinking. :-) From time to time I see a random pixel on the array lighting up. I don't see any patterns. I'm curious if this is an ...
- Tue Mar 31, 2020 2:06 pm
- Forum: General Discussion and Questions
- Topic: asyncio and udp
- Replies: 2
- Views: 2614
Re: asyncio and udp
Thanks!
I'll have a look at the new library. The UDP support in the old library is for client side only, as far as I can see. There is no bind() anywhere to be seen so I can't listen for packets.
I'll have a look at the new library. The UDP support in the old library is for client side only, as far as I can see. There is no bind() anywhere to be seen so I can't listen for packets.
- Sun Mar 29, 2020 9:53 am
- Forum: General Discussion and Questions
- Topic: asyncio and udp
- Replies: 2
- Views: 2614
asyncio and udp
Hi, I have a synchronous service that receives a stream of UDP packets and updates some Neopixels. It currently works OK, but the code is synchronous and I want to do a little housekeeping. I could likely do a classic timeout on the recv() but I'd much prefer to use uasyncio and have the whole code ...
- Sat Mar 28, 2020 11:20 am
- Forum: Programs, Libraries and Tools
- Topic: Testing and mocking
- Replies: 2
- Views: 2697
Re: Testing and mocking
This seems to be a surprisingly narrow topic. For me this is surprising, because the opportunity to test if for me one of the big driver for micropython. Anyways, if anyone else should stumble on the thread my best advice would be to start out with @ToddFBass ESP32 Machine Emulator - https://github....
- Thu Mar 26, 2020 7:52 am
- Forum: Programs, Libraries and Tools
- Topic: Testing and mocking
- Replies: 2
- Views: 2697
Testing and mocking
Hi. I'm reasonably new with micropython. So far it has been a pleasant experience and I've got my first devices deployed after only a short time. :D I'm used to working more or less test-driven and I'm very fond of pytest. So naturally I've been searching for test and mocking frameworks for micropyt...