Search found 775 matches

by Roberthh
Tue Nov 28, 2017 2:29 pm
Forum: General Discussion and Questions
Topic: How to get the file size
Replies: 3
Views: 117

Re: How to get the file size

That's ok, but Micropython does not support symbolic field names.

Code: Select all

import uos
info = uos.stat("filename")
filesize = info[6]
by Roberthh
Sun Nov 26, 2017 8:33 pm
Forum: ESP8266 boards
Topic: dhcp hostname doesn´t work on self compiled master branch (solved)
Replies: 7
Views: 195

Re: dhcp hostname doesn´t work on self compiled master branch

Did you try to set the value for dhcp_hostname="name" to a fixed string instead of getting it by a call to Config1.GetValue('DeviceName'), just to sort out the reason for the error?
by Roberthh
Fri Nov 24, 2017 10:41 am
Forum: Programs, Libraries and Tools
Topic: picotui - Text User Interface (TUI) library for MicroPython (and CPython)
Replies: 7
Views: 1581

Re: picotui - Text User Interface (TUI) library for MicroPython (and CPython)

Hi pfalcon, Since you wrote unix port I am confused here. Would this also run via an ssh/telnet session on a micropython board? Thanks I have used a subset of the picotui on ESP8266, just radiobuttons and simple text fields, for the configuration of an application. That works well. The full package...
by Roberthh
Thu Nov 23, 2017 2:21 pm
Forum: The MicroPython pyboard
Topic: pyboard is dead, why
Replies: 3
Views: 168

Re: pyboard is dead, why

pyb.stop() just sets the device temporarily into a low power mode. After reset, it should work again normally. After reloading the formware, did you remove the jumper between the boot and 3.3V pin? And if you are using Windows, did you check that not only the COM port changed?
by Roberthh
Mon Nov 13, 2017 5:00 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 637

Re: Tool uPyLoader for MP on esp32

sys.stdout.write normally expects str. However mycropython is more tolerant. Just for interest I enabled buffer in the pycom port, by adding the line: #define MICROPY_PY_SYS_STDIO_BUFFER (1) to mpconfigport.h and rebuilt the firmware. That's all what's needed, but for you this is hardly suitable, be...
by Roberthh
Mon Nov 13, 2017 2:24 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 637

Re: Tool uPyLoader for MP on esp32

There is a config option called MICROPY_PY_SYS_STDIO_BUFFER. I'll try to set that to 1. Sometimes that's all that is needed, sometimes the option is still there, but the code is missing. Personally I would spend the time in a transparent encoding, which make the least possible assumption on transpar...
by Roberthh
Mon Nov 13, 2017 2:02 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 637

Re: Tool uPyLoader for MP on esp32

The ususal stdin/stdout is not transparent, in that it replaces characters (e.g. \r by \n) and tries to do a simple uft-8 conversion. The buffer versions are transparent. The difference in code the is minor. So I could try a PR for Pycom. Alternatively you could try to encode the data such it fits i...
by Roberthh
Fri Nov 10, 2017 12:06 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 637

Re: Tool uPyLoader for MP on esp32

Hello @profra, I responded already to your question in the pycom.io board. The answer can be found in the makefile applicatio.mk, which also controls flashing: BOOT_OFFSET = 0x1000 PART_OFFSET = 0x8000 APP_OFFSET = 0x10000 You do not need to flash wipy.bin. If you want to see, how the call fopr espt...
by Roberthh
Fri Nov 10, 2017 6:34 am
Forum: General Discussion and Questions
Topic: How to obtain a list of importable modules?
Replies: 15
Views: 1167

Re: How to obtain a list of importable modules?

You might need to update. It works on my PyBoard:
(sysname='pyboard', nodename='pyboard', release='1.9.3', version='v1.9.3-11-gb9580b8-dirty on 2017-11-07', machine='PYBv1.1 with STM32F405RG')