Search found 34 matches

by federico
Tue Jul 12, 2022 6:00 am
Forum: Raspberry Pi microcontroller boards
Topic: Change the main program runtime
Replies: 7
Views: 2538

Re: Change the main program runtime

Thanks jmmo for your correct suggestion
by federico
Tue Jul 12, 2022 12:23 am
Forum: Raspberry Pi microcontroller boards
Topic: Change the main program runtime
Replies: 7
Views: 2538

Re: Change the main program runtime

Hoping to be of some help- Time ago, I have faced the need of how to choose wich micropython (example to run) script to import at runtime inside the main.py file. The following is the WEB Server solution (*) which uses a Color Picker to choose the micropython script. The code depends on the ESP-01S ...
by federico
Sun Jul 03, 2022 6:55 am
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 10
Views: 14741

Re: LCD1602 error I2C

A retest with another RPi Pico with micropython release 1.19 installed was successful - which rules out problems with the new micropython release
by federico
Fri Jul 01, 2022 4:57 am
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 10
Views: 14741

Re: LCD1602 error I2C

# Raspberry Pi Pico # to test the with micropython 1.19 # OSError: [Errno 5]- EIO # esp8266_i2c_lcd.py, line 55 in __init__ # the following is the code in line 55: # self.i2c.writeto(self.i2c_addr, bytearray([0])) # that set to OFF the LCD backlight # !! with releases ver. <= 1.18 no problems from ...
by federico
Tue Nov 03, 2020 11:12 am
Forum: Other Boards
Topic: W600-PICO region FLASH overflowed
Replies: 16
Views: 8427

Re: W600-PICO region FLASH overflowed

To confirm roberthh
by federico
Mon Sep 14, 2020 10:24 am
Forum: Other Boards
Topic: W600-PICO region FLASH overflowed
Replies: 16
Views: 8427

Re: W600-PICO region FLASH overflowed

Minor change to Makefile in micropython/port/w60x directory. To avoid a wrong output by the function w600.version() due to 2M Flash size setting it is sufficient to change the Makefile line 347 from: CFLAG += -DW60X_USE_2M_FLASH=1 to: CFLAG += -DW60X_USE_1M_FLASH=1 as clearly shown in the attached p...
by federico
Wed Sep 02, 2020 7:56 pm
Forum: Other Boards
Topic: nrf52840 DK PCA10056 (could not enter raw REPL)
Replies: 5
Views: 4750

Re: nrf52840 DK PCA10056 (could not enter raw REPL)

I have upgraded my pyboard.py version with the last one on github ( doesn't require the ampy support) - I newly have changed the enter_raw_repl() in the Pyboard class and simulated your requirement as from the attachment - without any problem -
pyboard_last_copy_light_py.PNG
pyboard.py last version
pyboard_last_copy_light_py.PNG (87.59 KiB) Viewed 4622 times
by federico
Wed Sep 02, 2020 1:23 am
Forum: Other Boards
Topic: nrf52840 DK PCA10056 (could not enter raw REPL)
Replies: 5
Views: 4750

Re: nrf52840 DK PCA10056 (could not enter raw REPL)

We have from the following address the correct syntax to copy a file to the board: https://docs.micropython.org/en/latest/reference/pyboard.py.html The cp command uses a ssh-like convention for referring to local and remote files. Any path starting with a : will be interpreted as on the device, othe...
by federico
Tue Sep 01, 2020 9:00 pm
Forum: Other Boards
Topic: nrf52840 DK PCA10056 (could not enter raw REPL)
Replies: 5
Views: 4750

Re: nrf52840 DK PCA10056 (could not enter raw REPL)

From the attachment 1,2,3,4,5 we have a practical demonstration about the results of interaction with an W600-PICO board, by an unchanged pyboard.py and an changed one.
The traceback says that the problem arise from the enter_raw_repl method defined in the class Pyboard ( line 192 of pyboard.py).
by federico
Tue Sep 01, 2020 1:43 am
Forum: Other Boards
Topic: nrf52840 DK PCA10056 (could not enter raw REPL)
Replies: 5
Views: 4750

Re: nrf52840 DK PCA10056 (could not enter raw REPL)

This is the involved method :
def enter_raw_repl(self)

where the changes are commented
enter_raw_repl.png
def enter_raw_repl(self)
enter_raw_repl.png (162.17 KiB) Viewed 4681 times