Search found 2759 matches

by Roberthh
Fri Jul 16, 2021 3:56 pm
Forum: Raspberry Pi microcontroller boards
Topic: Raspberry Pi Pico factory reset
Replies: 4
Views: 255

Re: Raspberry Pi Pico factory reset

There is a special .uf2 image which just wipes out the whole flash. I could not find the link again, but IO have a copy of that file. After running it, you must install the firmware .uf file again.
flash_nuke.zip
(8.87 KiB) Downloaded 11 times
by Roberthh
Thu Jul 15, 2021 7:29 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

File changed now to display the changed frequency.
by Roberthh
Thu Jul 15, 2021 7:24 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

That might be just the display, where the change has not be noted back to the config. Did you look at the bus?
by Roberthh
Thu Jul 15, 2021 4:46 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

Just for a test, I made a version of mimxrt/machine_i2c.c, which supports the init() method with the keywords freq and drive . You 'll find it here: https://github.com/robert-hh/micropython/tree/mimxrt_i2c_init. You can simply copy over the file mimxrt/machine_i2c.c for testing. Generally I would sa...
by Roberthh
Thu Jul 15, 2021 3:25 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

Both Hardware and Software I2c share the same dictionary. The hardware i2c has no init() method, that's why you get that message. You can simply instantiate the I2c again for a frequency change. That is not an expensive operation. I was thinking of implementing a separate init() method, but followed...
by Roberthh
Thu Jul 15, 2021 5:32 am
Forum: ESP32 boards
Topic: Deep Sleep amps too high?
Replies: 3
Views: 176

Re: Deep Sleep amps too high?

Do you use the bare ESP32 or a board with it? The USB/UART bridge chips are not put to deep sleep and can consume up to 20mA.
by Roberthh
Tue Jul 13, 2021 9:09 am
Forum: ESP32 boards
Topic: Micropython on ESP32-C3
Replies: 16
Views: 1647

Re: Micropython on ESP32-C3

Did you try:

make BOARD=GENERIC_C3
by Roberthh
Mon Jul 12, 2021 7:44 pm
Forum: Raspberry Pi microcontroller boards
Topic: Help needed getting MicroPython Driver for SSH1106 working
Replies: 3
Views: 155

Re: Help needed getting MicroPython Driver for SSH1106 working

I cannot tell you much about Thonny ad the way to transfer files to the board. But the Author of Thonny will surely answer that part. He is a regular visitor of this board. As the co-author of the sh1106 driver I can answer that part. Both the sh1106.py and the readme.md file have short code example...
by Roberthh
Sun Jul 11, 2021 4:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no attribu
Replies: 10
Views: 294

Re: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no att

You use rtc.datetime(datetime_tuple) to set date / time, and rtc.datetime() git get date & time.
Somewhere in your code is a call to rtc.init() which you should remove.
by Roberthh
Sun Jul 11, 2021 3:27 pm
Forum: Raspberry Pi microcontroller boards
Topic: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no attribu
Replies: 10
Views: 294

Re: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no att

use rtc.datetime(datetime_tuple) instead, like:

rtc.datetime((21,07,11,0, 17,26,0, 0))

note that the datetime tuple requires 8 entries.