Search found 75 matches

by water
Mon Jun 28, 2021 6:35 pm
Forum: ESP32 boards
Topic: About maximum PWM frequency.
Replies: 0
Views: 806

About maximum PWM frequency.

I use oscilloscope measure ESP32-S module PWM output, use:

Code: Select all

machine.PWM()
when PWM frequency > 78125, it will be keep output high, this's ESP32 hardware limit? or MicroPython implement on ESP32 limit?
by water
Thu Jun 24, 2021 9:54 pm
Forum: ESP32 boards
Topic: Can I configure I2C frequency?
Replies: 1
Views: 1072

Can I configure I2C frequency?

In my memory old version of MicroPython (I forgot which version), I2C can configure frequency likes freq = 400000 , but I can't do that in current version: i2c = machine.SoftI2C(scl = Pin(5), sda = Pin(4), freq = 400000) i2c SoftI2C(scl=5, sda=4, freq=500000) i2c = SoftI2C(scl = Pin(5), sda = Pin(4)...
by water
Tue Apr 27, 2021 2:49 pm
Forum: Other Boards
Topic: [ATSAMD] How to setup SAMD series build environment?
Replies: 6
Views: 4995

Re: How to setup SAMD series build environment?

Solved, lib/asf4 folder empty, execute

Code: Select all

git submodule update --init lib/asf4
build pass, but I execute

Code: Select all

git submodule update --init --recursive
from micropython root folder before, why lib/asf4 folder is empty?
by water
Mon Apr 26, 2021 9:55 pm
Forum: Other Boards
Topic: [ATSAMD] How to setup SAMD series build environment?
Replies: 6
Views: 4995

Re: How to setup SAMD series build environment?

Code: Select all

make submodules
from ports/samd
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Updating submodules: lib/asf4 lib/tinyusb

Code: Select all

make BOARD=ADAFRUIT_ITSYBITSY_M4_EXPRESS
The error above appear still.
But I success build some STM32 at same environment.
by water
Mon Apr 26, 2021 8:15 pm
Forum: Other Boards
Topic: [Solved] How to setup ESP32-S2 build environment?
Replies: 2
Views: 4698

[Solved] How to setup ESP32-S2 build environment?

make BOARD=GENERIC_S2 idf.py -D MICROPY_BOARD=GENERIC_S2 -B build-GENERIC_S2 build Checking Python dependencies... Python requirements from /home/mc3/espressif/esp-idf/requirements.txt are satisfied. Executing action: all (aliases: build) Running cmake in directory /home/mc3/micropython/ports/esp32...
by water
Mon Apr 26, 2021 8:04 pm
Forum: Other Boards
Topic: [ATSAMD] How to setup SAMD series build environment?
Replies: 6
Views: 4995

[ATSAMD] How to setup SAMD series build environment?

I try to build ATSAMD51 use make BOARD=MINISAM_M4 , return error below: Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. mkdir -p build-MINISAM_M4/genhdr GEN build-MINISAM_M4/genhdr/mpversion.h GEN build-MINISAM_M4/genhdr/moduledefs.h GEN build-MINISAM_M4/genhdr/qst...
by water
Sat Apr 24, 2021 8:54 pm
Forum: ESP32 boards
Topic: Can't include USER_C_MODULES since v1.15 ?
Replies: 1
Views: 1183

Can't include USER_C_MODULES since v1.15 ?

Since v1.15, micropython switched to cmake on the ESP32 port, breaking compatibility with user modules (likes ulab),
Is it mean I can't include likes ulab to MicroPython after v1.14 ? have some solutions except switch to v1.14 ?
by water
Wed Feb 17, 2021 8:02 pm
Forum: MicroPython pyboard
Topic: Can I use a Pin as Timer source?
Replies: 1
Views: 2100

Can I use a Pin as Timer source?

Can I let Timer.counter() add 1 when Pin level changed.
by water
Fri Feb 12, 2021 7:00 pm
Forum: MicroPython pyboard
Topic: SD card after ejecting and re-inserting.
Replies: 5
Views: 4922

Re: SD card after ejecting and re-inserting.

.deinit() is affect to ESP32 port, I confuse them, on PyBoard, use sd.power() instead,
before eject SD card,

Code: Select all

uos.umount('/sd')
sd.power(0)
True
then re-insert SD card,

Code: Select all

sd.power(1)
True

Code: Select all

uos.mount(sd, '/sd')
If none SD card inserted, execute sd.power(0) or sd.power(1) will return False.
by water
Fri Jan 29, 2021 8:39 pm
Forum: General Discussion and Questions
Topic: Can I pass parameter to Timer callback?
Replies: 5
Views: 6376

Can I pass parameter to Timer callback?

How to do that? :?:
Thanks.