Search found 5066 matches

by pythoncoder
Mon Apr 12, 2021 7:10 am
Forum: Programs, Libraries and Tools
Topic: machine.RTC documentation
Replies: 3
Views: 92

Re: machine.RTC documentation

My advice is to use the pyb library for the Pyboard's RTC. Its documentation is correct, unlike that of machine.rtc.

All Pyboards are compatible with pyb.
by pythoncoder
Mon Apr 12, 2021 7:04 am
Forum: MicroPython pyboard
Topic: Reading multiples waves files in the same time
Replies: 3
Views: 101

Re: Reading multiples waves files in the same time

My comment was based on experience developing this library which can play MP3 and FLAC files via an external decoder chip. Handling a single audio stream from a file on an SD card was near the limit of what could be achieved, even with the number crunching of decoding the stream offloaded to externa...
by pythoncoder
Mon Apr 12, 2021 6:55 am
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 17
Views: 4151

Re: Receive and transmit IR remote codes

Given that you know you have a Sony 12 bit remote you should be able to run from ir_rx.test import test test(2) # The specific test for Sony 12 bit Then make a record of the data and address value associated with each button that is of interest. Transmitting using those values using the ir_tx SONY_1...
by pythoncoder
Mon Apr 12, 2021 6:39 am
Forum: Raspberry Pi microcontroller boards
Topic: nano-gui working on rp2
Replies: 2
Views: 418

Re: nano-gui working on rp2

It isn't on PyPi. PyPi isn't much help for targets with no network interface.

Installation is done by cloning the repo to your PC and copying files to the filesystem, preserving the directory structure. Instructions may be found here.
by pythoncoder
Sun Apr 11, 2021 12:58 pm
Forum: MicroPython pyboard
Topic: Reading multiples waves files in the same time
Replies: 3
Views: 101

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: 31
Views: 2618

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: 453

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: 153

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: 145

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: 145

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...