Search found 548 matches

by Damien
Wed Feb 07, 2018 7:45 am
Forum: Announcements and News
Topic: Talks and videos about MicroPython
Replies: 1
Views: 2269

Talks and videos about MicroPython

At Linux Conf AU 2018 (held in January in Sydney) there was a workshop on "Getting started with MicroPython" by Nick Moore. The full video can be found here: https://www.youtube.com/watch?v=inUMgHQ62sA . In particular at the end there are some words about supporting development of MicroPython: https...
by Damien
Wed Feb 07, 2018 7:32 am
Forum: Programs, Libraries and Tools
Topic: State of micropython-lib?
Replies: 25
Views: 8085

Re: State of micropython-lib?

Hello everyone, Thanks to those who raised their concerns over the recent forking of MicroPython and the library. I agree the current state is confusing and explanations are needed. Without going into specifics, Paul (aka pfalcon) can oftentimes demonstrate inappropriate behaviour in discussions. Fo...
by Damien
Wed Feb 07, 2018 2:03 am
Forum: General Discussion and Questions
Topic: HTTPS stream halts before finished
Replies: 5
Views: 992

Re: HTTPS stream halts before finished

MicroPython's ssl.read(n) method will try to read exactly n bytes so will block forever if the server doesn't send enough. I think the fix simply comes down to the fact that you need to parse the "content-length" header and then only request exactly that many bytes of data after the headers are fini...
by Damien
Fri Nov 17, 2017 12:56 am
Forum: Development of MicroPython
Topic: [SOLVED]MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?
Replies: 5
Views: 356

Re: MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?

Regarding the MPY, why do I need to convert the .mpy file - which is pure binary - to the frozen-mpy-in-C format? I guess I’m asking: is the .mpy format useful in itself either now or in the future (ie without converting to mpy-in-C format)? Yes .mpy is useful. There are 3 main ways to import and e...
by Damien
Thu Nov 16, 2017 5:58 am
Forum: The MicroPython pyboard
Topic: is the 32-kHz crystal necessary?
Replies: 2
Views: 228

Re: is the 32-kHz crystal necessary?

The firmware will try to autodetect the presense of an external 32kHz crystal (LSE). If the LSE fails to start then the firmware will fallback to the LSI setting (internal osc). So, to answer your question, if you remove the crystal and use the pre-complied PYBv1.x firmware then it will (or at least...
by Damien
Thu Nov 16, 2017 5:52 am
Forum: Programs, Libraries and Tools
Topic: mqtt.simple connection over ssl
Replies: 2
Views: 204

Re: mqtt.simple connection over ssl

I assume you're using an esp8266-based board. In that case the ssl certs are not yet supported but there is some working code which adds this feature, see here: https://github.com/micropython/micropython/pull/3398 . At that link you can also see an example of using MQTT.
by Damien
Thu Nov 16, 2017 5:48 am
Forum: Development of MicroPython
Topic: [SOLVED]MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?
Replies: 5
Views: 356

Re: MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?

FROZEN_STR will store the scripts as strings in flash and when imported compile them at runtime and store the compiled bytecode in RAM. So that won't help to reduce RAM usage, it's instead a nice way to have scripts and resources in flash without having a filesystem). FROZEN_MPY is what you want: it...
by Damien
Tue Nov 14, 2017 1:51 am
Forum: General Discussion and Questions
Topic: This forum's behaviour has changed for the worse.
Replies: 9
Views: 842

Re: This forum's behaviour has changed for the worse.

I updated the theme to we_universal 2.5.2 and re-installed the fontawesome font. I think all the problems are now fixed. Re using a different forum software: Discourse looks interesting, it has a lot of stars on github (23k+) and even a phpBB3 import tool. But, as was mentioned above, it opens up a ...
by Damien
Tue Nov 14, 2017 12:48 am
Forum: The MicroPython pyboard
Topic: Little wonders need some thanks
Replies: 7
Views: 660

Re: Little wonders need some thanks

Thanks guys! It's my pleasure to have developed MicroPython and the pyboard. Coming from an academic background, it's the technical side of things that I enjoy the most, and still everyday I love finding new ways to optimise and improve the code. And it's fantastic to have people using the software ...
by Damien
Fri Oct 20, 2017 10:54 pm
Forum: Drivers for External Components
Topic: Using the ESP with a Ethernet Port through SPI
Replies: 7
Views: 666

Re: Using the ESP with a Ethernet Port through SPI

It may actually be possible to use the Wiznet in raw Ethernet mode with the esp8266. It would at least be interesting to try and get it working. The main thing it depends on is being able to call netif_add in lwip. It depends how much the esp8266 lwip is modified from the stock version. Sent from my...