Search found 10 matches

by MCHobby
Mon Sep 18, 2017 8:33 pm
Forum: ESP8266 boards
Topic: Change hostname.
Replies: 12
Views: 4888

Re: Change hostname.

Hi, I'm using ESP8266 under MicroPython. I had use the default ESP8266 hostname from WebRepl and find this really convenient when using the network DHCP. I'm using the modem-router from the Internet Provider. Using "ws://ESP_xxxx:8266" with WebRepl is really a dream. However, from time to time this ...
by MCHobby
Sat Jun 18, 2016 3:17 pm
Forum: The WiPy and CC3200 boards
Topic: Sending email
Replies: 32
Views: 13462

Re: Sending email

I was looking for smtplib but did not locate it.
Does someone have any information about it OR is this retired?

Regards,
Dominique
by MCHobby
Thu May 05, 2016 9:57 am
Forum: ESP8266 boards
Topic: Official release and Bin availability
Replies: 2
Views: 980

Official release and Bin availability

The ESP8266 is now released with the version v1.8.

Did someone knows when the ESP8266 binary would be available on http://micropython.org/download/ ?
by MCHobby
Sat Apr 16, 2016 7:13 am
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 6907

Re: How to reduce the memory consumption of the object definition

So if I do understand properly, there is not other way than compiling a tuned "uPy firmware with Persistant Byte code" to reduce RAM consumption. It is a nice feature but probably over the knowledge of most of the makers. Is there other way (good practice) to reduce the memory consumption? Some thre...
by MCHobby
Fri Apr 15, 2016 6:44 am
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 6907

Re: How to reduce the memory consumption of that objet definition

Bear in mind that data stored in Flash is immutable. To avoid RAM use you'll need a bytes object rather than a bytearray. If you declare mutable variables, compile the module, and store it as persistent bytecode, at runtime the variables will presumably be put in RAM. I've only tested immutable dat...
by MCHobby
Fri Apr 15, 2016 6:42 am
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 6907

Re: How to reduce the memory consumption of that objet definition

On Arduino, we do have a way to grab back data from the Flash memory. This indeed requires to compile the Arduino sketck + upload to make the data available in the Flash (but this is a quite easy and short process) I would be nice to have a way to store some data into the Flash without recompiling t...
by MCHobby
Mon Apr 11, 2016 11:05 am
Forum: The MicroPython pyboard
Topic: PyBoard: is there a way to expand physical ram on Pyboard
Replies: 6
Views: 1916

PyBoard: is there a way to expand physical ram on Pyboard

"Graphical application" will consume more RAM than other software. Indeed, code should be tuned and optimized to consume as less RAM as possible. However, what can we do if we are reaching the limit of available RAM on a PyBoard? Is there a way to extend the RAM? (I do already seen some amazing stuf...
by MCHobby
Sun Apr 10, 2016 5:08 pm
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 6907

How to reduce the memory consumption of the object definition

Hi everybody, I have the following object definition (Arial_14 stored inside arial_14.py) which consume 8Kb of ram ( calculated with gc.free_mem() & gc.alloc_mem() ) when I do import it. So when I do "from arial_14 import Arial_14" then 8 Kb of RAM are used. Since Arial_14 represent "static data", I...
by MCHobby
Sun Apr 10, 2016 10:44 am
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 32
Views: 18755

Re: Free RAM on MicroPython boards

[quote="dhylands"]You can run the following to determine the amount of free RAM (this works on the pyboard). [code]>>> import gc >>> gc.mem_free() 101376 [/code] You should probably do a gc.collect() first to free up as much memory as can be freed.[/quote] I did also find the gs.mem_alloc() However,...
by MCHobby
Mon Jan 26, 2015 2:10 pm
Forum: The MicroPython pyboard
Topic: pyboard pins quick reference
Replies: 4
Views: 1950

Re: pyboard pins quick reference

Hi,
I'm writing some info in french on the board and need some help.
I don't have the board yet but need to know the onboard LED color and feature (from top to bottom).
Some are used while the boot process... which one is it
Could someone share the info with me?

Thank
Dominique