Search found 2000 matches

by Roberthh
Thu Jun 18, 2020 8:00 pm
Forum: Development of MicroPython
Topic: tranformation MP_QSTR__slash_lib into /lib
Replies: 6
Views: 586

Re: tranformation MP_QSTR__slash_lib into /lib

That's the w600 port I am working on: https://github.com/robert-hh/micropython/tree/w60x/ports/w60x You can compile that with the standard setting: make V=s, but it requires a SDK for proper linking and compiling. A copy is here: https://github.com/robert-hh/WM_SDK_W60X But even without proper compi...
by Roberthh
Thu Jun 18, 2020 8:09 am
Forum: General Discussion and Questions
Topic: convert in HEX
Replies: 3
Views: 173

Re: convert in HEX

try:

Code: Select all

res = ''.join("%02x" % x for x in mem)
or

Code: Select all

res = ''.join('{:02x}'.format(x) for x in mem)
by Roberthh
Thu Jun 18, 2020 6:49 am
Forum: Development of MicroPython
Topic: tranformation MP_QSTR__slash_lib into /lib
Replies: 6
Views: 586

Re: transformation MP_QSTR__slash_lib into /lib

I still have this problem, that a term MP_QSTR__slash_lib is NOT converted into "/lib", but into "_slash_lib". If I look into qstrdefs.generated.h, I find it there, opposed to other ports. Up to the point of the file qstrdefs.preprocessed.h it looks fine, but the last transformation does not happen ...
by Roberthh
Wed Jun 17, 2020 5:20 pm
Forum: Pyboard D-series
Topic: permission denied deleting folder
Replies: 2
Views: 103

Re: permission denied deleting folder

rmdir requires the folder to be empty. So you have to delete the files first. That' s what the PC software does under the hoid.
by Roberthh
Mon Jun 15, 2020 6:32 pm
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 15
Views: 4663

Re: Micropython library for the TI INA219 voltage/current sensor

Hello Chris, the driver looks fine. One comment: I just removed from my driver these lines at the header: Implementation Notes -------------------- **Hardware:** * `Adafruit INA219 High Side DC Current Sensor Breakout <https://www.adafruit.com/product/904>`_ * `Adafruit INA219 FeatherWing <https://w...
by Roberthh
Mon Jun 15, 2020 8:18 am
Forum: Other Boards
Topic: W600-PICO vs Mu 1.1.0.alpha2 editor
Replies: 6
Views: 298

Re: W600-PICO vs Mu 1.1.0.alpha2 editor

Thanks, but that's not only me. Most of the work had been done by @wdyichen, who made the initial port. And the latest changes to the machine.pin module have been contributed by @etobi. I see my part as just smoothing some rough edges.
by Roberthh
Mon Jun 15, 2020 8:07 am
Forum: ESP8266 boards
Topic: NodeMCU
Replies: 3
Views: 127

Re: NodeMCU

Are you sure that main.py had been copied to the board. Please run in REPL the commands import uos uos.listdir() That returns a list of files on the device. And maybe you should try a simple tool like putty or picocom or screen for the connection to the board. Not comfortable, but also not bug-hiding.
by Roberthh
Mon Jun 15, 2020 6:17 am
Forum: ESP8266 boards
Topic: NodeMCU
Replies: 3
Views: 127

Re: NodeMCU

A few questions:

- how do you connect to the board?
- how did you copy your main.py to the board?
- once you are connected to REPL and push Ctrl-D for reboot or the reset button, what is the result.
by Roberthh
Sun Jun 14, 2020 7:01 pm
Forum: Other Boards
Topic: W600-PICO vs Mu 1.1.0.alpha2 editor
Replies: 6
Views: 298

Re: W600-PICO vs Mu 1.1.0.alpha2 editor

I have update the fls files for the W600 at this place: https://github.com/robert-hh/Shared-Stuff. Compared to the May 26 version, there are a few changes, listed in the commit description. For more details, the repository branch is here: https://github.com/robert-hh/micropython/tree/w60x
by Roberthh
Sat Jun 13, 2020 8:09 pm
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 15
Views: 4663

Re: Micropython library for the TI INA219 voltage/current sensor

Hi @elschopi, glad that it's working and that I could help. Looking at my drivers file, it seems to need some edit. Especially the hardware and software dependencies are not vaild. About licensing: You have to copy/keep the header of file. And you have to include the first Authors copyright note. Do...