Search found 5062 matches

by pythoncoder
Sun Apr 11, 2021 12:58 pm
Forum: MicroPython pyboard
Topic: Reading multiples waves files in the same time
Replies: 2
Views: 58

Re: Reading multiples waves files in the same time

I think this is beyond the scope of microcontroller hardware for a variety of reasons.

I would consider using something like a Raspberry Pi hosting a full version of Linux. I'd ask for advice in a suitable forum: Linux has a variety of audio applications which can probably do what you are after.
by pythoncoder
Sun Apr 11, 2021 10:41 am
Forum: Raspberry Pi microcontroller boards
Topic: Wifi bridge for RPI Pico
Replies: 30
Views: 2559

Re: Wifi bridge for RPI Pico

... Peter is there any possibility that you would be able to clarify if an ESP-01 module would be useable with your MQTT system, ... I have no ESP-01 hardware or experience. The underlying mqtt_as library has been extensively tested with the reference board (Adafruit Feather Huzzah) and with the We...
by pythoncoder
Sun Apr 11, 2021 9:27 am
Forum: Drivers for External Components
Topic: Update to font_to_py for tiny fonts
Replies: 5
Views: 443

Incompatible font files

I've had a look at that driver. It works in a different way from mine. In some ways it is more efficient: my drivers inherit from framebuf which has a cost in RAM. One upside of my approach is compatibility with nano-gui. The second is that the display objects inherit the framebuf graphics primitive...
by pythoncoder
Sat Apr 10, 2021 1:18 pm
Forum: ESP32 boards
Topic: waveshare eInk display is stuck powering on with BUSY pin on high
Replies: 3
Views: 125

Re: waveshare eInk display is stuck powering on with BUSY pin on high

As a general comment, having ported several display drivers to MicroPython, the way forward is to sit down with the hardware, the datasheet, and the code for the similar display. Check the code line by line against the datasheet. That said, my limited experience with Waveshare boards was bad. Maybe ...
by pythoncoder
Sat Apr 10, 2021 1:06 pm
Forum: MicroPython pyboard
Topic: How to trigger delayed callback from interrupt
Replies: 3
Views: 130

Re: How to trigger delayed callback from interrupt

Another approach if you don't want to use my Delay_ms class is something like this: import uasyncio as asyncio from machine import Pin from pyb import LED led = LED(1) async def my_app(): tsf = asyncio.ThreadSafeFlag() def irq_han(_): led.on() tsf.set() # Trigger the thread safe flag pin = Pin('X1',...
by pythoncoder
Fri Apr 09, 2021 1:57 pm
Forum: MicroPython pyboard
Topic: How to trigger delayed callback from interrupt
Replies: 3
Views: 130

Re: How to trigger delayed callback from interrupt

I would use a uasyncio based software timer: import uasyncio as asyncio from primitives.delay_ms import Delay_ms from machine import Pin from pyb import LED led = LED(1) async def my_app(): tim = Delay_ms(func=lambda : led.off(), duration=100) def irq_han(_): led.on() tim.trigger() # Start the timer...
by pythoncoder
Fri Apr 09, 2021 1:12 pm
Forum: Drivers for External Components
Topic: Update to font_to_py for tiny fonts
Replies: 5
Views: 443

Re: Update to font_to_py for tiny fonts

I have no idea what /lib/ili934xnew.py is. My ILI9341 driver is this one . Python fonts produced by font_to_py.py are compatible with my nano_gui , Writer and CWriter classes, using my drivers. The specification for the files is documented, so other authors may choose to support them. Or they may us...
by pythoncoder
Fri Apr 09, 2021 1:02 pm
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 7
Views: 304

Re: ntptime kills the wifi station, hard reset required to fix

Perhaps I'm misunderstanding the problem here, but this works for me on a Pyboard D SF2W: MicroPython v1.13-107-g18518e26a-dirty on 2020-11-02; PYBD-SF2W with STM32F722IEK Type "help()" for more information. >>> import do_connect >>> do_connect.do_connect() connecting to network... network config: (...
by pythoncoder
Thu Apr 08, 2021 5:07 am
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 336

Re: ntptime not included with PyBoard firmware

@kwiley It is easy if your location is static and you handle the date for the change; you are doing it correctly. Full Unix support is not easy as it involves knowing the DST parameters for every country in the world. And they don't always get it right: I have an old project with firmware from an an...
by pythoncoder
Thu Apr 08, 2021 4:56 am
Forum: MicroPython pyboard
Topic: Did I break my board?
Replies: 1
Views: 108

Re: Did I break my board?

I'm afraid it sounds as if you have. I can only think of one thing left to try, which is to see if you can flash new firmware, but given the symptoms I don't hold out much hope :(