Search found 352 matches

by rcolistete
Thu Jun 30, 2016 3:07 am
Forum: General Discussion and Questions
Topic: Continuously reading ADC pins
Replies: 7
Views: 6331

Re: Continuously reading ADC pins

My Pyboard v1.1 works well with this code :

Code: Select all

import pyb
import math
while True:
    adcint = pyb.ADC(pyb.Pin('X4')).read()
    print("Analog reading of port X4 = %f V" % (adcint*3.3/4095))
    pyb.delay(50)
by rcolistete
Wed Jun 08, 2016 4:33 pm
Forum: WiPy and CC3200 boards
Topic: Pymakr on this forum
Replies: 6
Views: 8512

Re: Pymakr on this forum

In the document "Pycom Pymakr Beta Release 1.0.0.b1 Notes - 27 April 2016" we can read : Works * Built-in REPL console (see below on how to configure it). * PEP8 checking: with a file in the editor, right click, check > code style. Features to come in next release * Project synchronization. * Automa...
by rcolistete
Fri Jun 03, 2016 3:10 am
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44407

Re: MemoryError when importing a custom module

pythoncoder wrote:@rcolistete This occurs when the compiler runs out of RAM: when you import a .py module the compiler running on the board converts the text file to bytecode, which is then run by the Python VM.
Thanks. My suggestion was to compare different MicroPython boards with respect capability to load modules.
by rcolistete
Sat May 21, 2016 9:53 am
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44407

Re: MemoryError when importing a custom module

Hello, I am working on a module for the MFRC522 RFID reader. The module size is 11KB I managed to copy the module on the micropython filesystem with the help of webrepl_cli.py. When I try to import the module through the UART REPL, I get the following error: MemoryError: memory allocation failed, a...
by rcolistete
Wed May 04, 2016 11:09 am
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 37
Views: 73489

Re: Free RAM on MicroPython boards

My mistake, WiPy still has 56KB of free RAM for MicroPython 1.7 & 1.8.

Updated the 1st post.
by rcolistete
Wed Apr 20, 2016 5:33 pm
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 37
Views: 73489

Re: Free RAM on MicroPython boards

Updated the 1st post with approx. free RAM for LoPy (200 KB) and ESP8266 (22 KB).

So there is only BBC Micro:bit with unknown free RAM.
by rcolistete
Wed Apr 06, 2016 1:13 pm
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 37
Views: 73489

Re: Free RAM on MicroPython boards

Thanks.

But if anyone who uses ESP8266, BBC Micro:bit and LoPy could measure the free RAM and fill the "?" above, it would be very useful to the community port effort (from Python 3 -> MicroPython).
by rcolistete
Wed Apr 06, 2016 12:21 am
Forum: Announcements and News
Topic: MicroPython and LoRa+WiFi+BLE with the LoPy on Kickstarter
Replies: 6
Views: 42210

Re: MicroPython and LoRa+WiFi+BLE with the LoPy on Kickstarter

What about a section "LoPy" in this forum ?
by rcolistete
Wed Apr 06, 2016 12:20 am
Forum: Announcements and News
Topic: MicroPython on the BBC micro:bit
Replies: 26
Views: 164634

Re: MicroPython on the BBC micro:bit

What about a section "BBC Micro:bit" ?
by rcolistete
Wed Apr 06, 2016 12:02 am
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 37
Views: 73489

Free RAM on MicroPython boards

[Moderators note: please note that the figures are valid on the date stated, and may vary from one MicroPython version to another.] I need to know how much RAM (heap size ?) is available for the user in MicroPython running on : - Pyboard v1.1 (99 KB < 192KB), MicroPython v1.8.6 (updated in 21/11/201...