Search found 363 matches

by shaoziyang
Thu Jun 02, 2022 1:55 am
Forum: Drivers for External Components
Topic: BME/BMP280
Replies: 11
Views: 33361

Re: BME/BMP280

This library works normally. Please check your I2C settings, include pull-up resistors. I have test it with esp8266/esp32/stm32 in several boards.

You may try

Code: Select all

i2c.scan()
before use BME280.
by shaoziyang
Fri Mar 18, 2022 3:48 am
Forum: Programs, Libraries and Tools
Topic: Pi calculation performance test for micropython and circuitpython
Replies: 0
Views: 8609

Pi calculation performance test for micropython and circuitpython

Pi calculation performance test for micropython and circuitpython.
table1.jpg
table1.jpg (147.48 KiB) Viewed 8609 times
https://github.com/micropython-Chinese- ... PiCalcTest
by shaoziyang
Tue Feb 22, 2022 3:52 am
Forum: Programs, Libraries and Tools
Topic: Exception put to file log
Replies: 2
Views: 1992

Re: Exception put to file log

Please note that file writing speed is very slow, which may affect other tasks. It needs to be carefully scheduled.
by shaoziyang
Sun Jul 25, 2021 9:52 am
Forum: General Discussion and Questions
Topic: I2C.scan() not returning slave addresses
Replies: 7
Views: 2960

Re: I2C.scan() not returning slave addresses

In micropython I2C default clock speed is 400K (fast mode), so if your I2C device only support 100k speed (normal mode), it will not return.

You may change I2C speed and try again.
by shaoziyang
Wed Apr 28, 2021 3:31 am
Forum: MicroPython pyboard
Topic: Some microSD card need mount twice to work
Replies: 1
Views: 4184

Some microSD card need mount twice to work

I have try to mount microSD card via SPI in pyboard. Some microSD card works, but some microSD card will cause timeout error. >>> sd=sdcard.SDCard(SPI, PIN_CS) >>> os.mount(sd, '/SD') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "sdcard.py", line 239, in readblocks Fil...
by shaoziyang
Wed Apr 21, 2021 3:25 pm
Forum: General Discussion and Questions
Topic: round(1,1) will raise NotImplementedError in windows port
Replies: 0
Views: 1791

round(1,1) will raise NotImplementedError in windows port

round(1,1) will raise NotImplementedError in windows port. It woks in other port.

Code: Select all

>>> round(1,1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NotImplementedError:
>>> round(1.0,1)
1.0
by shaoziyang
Thu Apr 08, 2021 8:35 am
Forum: ESP32 boards
Topic: Is it possible to disable ADC?
Replies: 3
Views: 3048

Re: Is it possible to disable ADC?

Finally I found a way to disable ADC by set registry 0x3FF4880C.

Code: Select all

def disableADC():
    mem32[0x3FF4880C] &= 0xFFF3FFFF
    mem32[0x3FF4880C] |= 0x00020000
by shaoziyang
Thu Apr 08, 2021 8:02 am
Forum: ESP32 boards
Topic: Is it possible to disable ADC?
Replies: 3
Views: 3048

Re: Is it possible to disable ADC?

There is no deinit() method in ESP32's ADC now.
by shaoziyang
Thu Apr 08, 2021 4:47 am
Forum: ESP32 boards
Topic: Is it possible to disable ADC?
Replies: 3
Views: 3048

Is it possible to disable ADC?

Is it possible to disable ADC function after use ADC to reduce power in sleep mode?