Search found 1034 matches

by jimmo
Mon Jan 27, 2020 3:53 am
Forum: ESP32 boards
Topic: solutions for non-blocking rtttl ringtones?
Replies: 4
Views: 84

Re: solutions for non-blocking rtttl ringtones?

If you want to increase the thread stack size, you can set _thread.stack_size = 8192 Note the default on ESP32 is 5kiB, the minimum is 4kiB. The probably better solution to your problem is to use (u)asyncio, but that will likely require a significant re-writing of the rtttl library and your applicat...
by jimmo
Mon Jan 27, 2020 3:48 am
Forum: General Discussion and Questions
Topic: Pyboard writing to tvt/csv file
Replies: 3
Views: 79

Re: Pyboard writing to tvt/csv file

The reason for the restart is that the filesystem doesn't synchronise with the host PC until it is re-mounted on the host. Peter explained this recently here: https://forum.micropython.org/viewtopic.php?f=2&t=7542&p=42993#p42972 The reason the `if` statement is failing is that it needs to be `adc.re...
by jimmo
Mon Jan 27, 2020 3:39 am
Forum: Programs, Libraries and Tools
Topic: Ampy error when using git command
Replies: 2
Views: 51

Re: Ampy error when using git command

I think the command you ran (using "pip3" will install this on your PC -- the error from ampy is about ubinascii on the device. It's surprising though, because the ESP8266 includes ubinascii. Can you try connecting to the REPL and running: import ubinascii and see if that works? Which firmware are y...
by jimmo
Thu Jan 23, 2020 11:45 pm
Forum: ESP32 boards
Topic: Enabling Ethernet and BLE both on micropython version 1.12 for ESP32
Replies: 13
Views: 903

Re: Enabling Ethernet and BLE both on micropython version 1.12 for ESP32

This is related to https://github.com/micropython/micropython/issues/5543 The memory that it's running out of isn't the MicroPython heap (which is on PSRAM), rather it's the internal RAM managed by the ESP IDF, where it allocates SSL buffers etc. We have no control over how/where the IDF allocates m...
by jimmo
Thu Jan 23, 2020 1:54 am
Forum: Other Boards
Topic: Teensy 4.0
Replies: 16
Views: 3061

Re: Teensy 4.0

I implemented the start of a basic port of MicroPython to the Teensy 4.0 -- PR at https://github.com/micropython/micropython/pull/5558 It's at the same level as the SAMD port in functionality (REPL over USB VCP), but it should be very straightforward to add basic Pin support. One thing I noticed str...
by jimmo
Thu Jan 23, 2020 1:50 am
Forum: Other Boards
Topic: How to port Micropython to new Microcontroller
Replies: 10
Views: 1891

Re: How to port Micropython to new Microcontroller

There's now basic support for SAMD21 and SAMD51 in the main repo -- https://github.com/micropython/micropyt ... ports/samd

This would probably provide a good starting point for SAME (similar to what Scott suggested above about looking at the CircuitPython SAMD implementation)
by jimmo
Thu Jan 23, 2020 1:42 am
Forum: Development of MicroPython
Topic: How can I manually add a C module without micropython.mk?
Replies: 4
Views: 156

Re: How can I manually add a C module without micropython.mk?

cduran wrote:
Wed Jan 22, 2020 4:01 pm
I don't want to tinker too much with my codes makefile. At least no more than just adding the files I need to build.
How did you integrate MicroPython core then? Do you separately build libmicropython (i.e. like the examples/embeddeding example) and link against that?
by jimmo
Wed Jan 22, 2020 5:05 am
Forum: Development of MicroPython
Topic: enabling uos features in unix port
Replies: 7
Views: 168

Re: enabling uos features in unix port

Not that I'm aware of.

uos is a bit complicated because it varies between ports.

What would you like to enable?
by jimmo
Wed Jan 22, 2020 12:33 am
Forum: ESP32 boards
Topic: Enabling Ethernet and BLE both on micropython version 1.12 for ESP32
Replies: 13
Views: 903

Re: Enabling Ethernet and BLE both on micropython version 1.12 for ESP32

Hi, Yes, BLE is now implemented for the ESP32 and PYBD. Probably best start with the documentation at http://docs.micropython.org/en/latest/library/ubluetooth.html and the code examples at https://github.com/micropython/micropython/tree/master/examples/bluetooth There's both examples of central and ...
by jimmo
Wed Jan 22, 2020 12:31 am
Forum: MicroPython pyboard
Topic: how to update the system firmware by the file replacement remotely
Replies: 1
Views: 112

Re: how to update the system firmware by the file replacement remotely

Hi,

When you say "firmware" do you mean your MicroPython code (i.e. the .py files on the filesystem) or the actual MicroPython firmware (i.e. update from v1.11 -> v1.12).