Search found 1213 matches

by Roberthh
Thu Jan 31, 2019 8:59 am
Forum: The MicroPython pyboard
Topic: - do i need to have a pyBoard to start with MicroPython !?
Replies: 5
Views: 157

Re: - do i need to have a pyBoard to start with MicroPython !?

Indeed. The ESP8266 port, made AFAIK mostly by @pfalcon, is a very good one, pretty reliable, and a very good companion to the PyBoard version. By and by, the ESP32 ports improve to get close.
by Roberthh
Wed Jan 30, 2019 3:39 pm
Forum: ESP8266 boards
Topic: [Solved] USB-UART disappears after flashing micropython
Replies: 2
Views: 88

Re: USB-UART disappears after flashing micropython

On my ooold mac, the wemos lolin interface shows up as /dev/tty.SLAB_USBtoUART
by Roberthh
Tue Jan 29, 2019 7:36 am
Forum: ESP32 boards
Topic: BME280 tutorial fail library?
Replies: 1
Views: 102

Re: BME280 tutorial fail library?

I just tried this library on an ESP32 with v1.10 firmware: https://github.com/robert-hh/BME280 The test code: # # Example. Using I2C at Pin 12 and 13 # from machine import I2C, Pin from bme280_int import * i2c=I2C(scl=Pin(12), sda=Pin(13), freq=1000000) bme280 = BME280(i2c=i2c) print(bme280.values) ...
by Roberthh
Mon Jan 28, 2019 3:10 pm
Forum: The MicroPython pyboard
Topic: The error in the assembly instruction for STM32F4xx based boards
Replies: 1
Views: 81

Re: The error in the assembly instruction for STM32F4xx based boards

The AND instruction is and_ (with trailing underline), because and is a Python keyword.
by Roberthh
Sun Jan 27, 2019 5:50 pm
Forum: General Discussion and Questions
Topic: Object method as timer callback
Replies: 1
Views: 70

Re: Object method as timer callback

Try: from machine import Timer import micropython class Data(object): def __init__(self): timer = Timer(1) timer.init(period=2000, mode=Timer.PERIODIC, callback=self.cb_timer) def cb_timer(self, timer): print("CB_TIMER") micropython.alloc_emergency_exception_buf(100) Data() The error message your co...
by Roberthh
Sat Jan 26, 2019 9:29 am
Forum: Other Boards
Topic: New implementation of MicroPython for K210
Replies: 5
Views: 244

Re: New implementation of MicroPython for K210

A few other notes: - It was impossible for me to flash the provided image without the option -l isp_flash.bin and the ips_flash.bin file. You came across the topic earlier, and I learned that from you. - ampy and rshell do not work. The reason is the raw mode and soft reset behavior, which is differ...
by Roberthh
Sat Jan 26, 2019 7:18 am
Forum: Development of MicroPython
Topic: tranformation MP_QSTR__slash_lib into /lib
Replies: 1
Views: 84

tranformation MP_QSTR__slash_lib into /lib

Which setting/step in creating binaries causes during the translation of e.g. MP_QSTR__slash_lib into /lib the mapping of "_slash_" into "/"? I assume it is a singe setting/flag, but searching did not reveal the right place.
by Roberthh
Fri Jan 25, 2019 9:11 pm
Forum: Other Boards
Topic: New implementation of MicroPython for K210
Replies: 5
Views: 244

Re: New implementation of MicroPython for K210

Hello @loboris. This is a very nice port to the K210, and much smaller than the original one. I tried it and it works well. But still a lot of work to do. I noticed that you used a quite old version of pye, which also stops at entering Ctrl-D and does not copy with Ctrl-c. The newer version works we...
by Roberthh
Fri Jan 25, 2019 6:37 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 53
Views: 22323

Re: rshell - Remote Shell

Internally, rshell (and ampy) uses pyboard.py (https://github.com/micropython/micropyt ... pyboard.py) for it's magic. So you might look at that and how rshell (or ampy) use that.
by Roberthh
Thu Jan 24, 2019 11:21 am
Forum: The MicroPython pyboard
Topic: ImportError: no module named 'upower'
Replies: 3
Views: 145

Re: ImportError: no module named 'upower'

What exactly did you try. Without showing the code that failed almost no-one can help you.