Search found 337 matches

by shaoziyang
Thu Sep 03, 2020 12:50 am
Forum: ESP32 boards
Topic: How to use ROTARYIO from Circuitpython in Micropython ESP32?
Replies: 1
Views: 101

Re: How to use ROTARYIO from Circuitpython in Micropython ESP32?

MicroPython doesn't support ROTARYIO, but encoder is easy to use in micropython.
by shaoziyang
Sat Aug 15, 2020 2:50 am
Forum: General Discussion and Questions
Topic: i2c.readfrom timeout
Replies: 2
Views: 148

Re: i2c.readfrom timeout

You may try reduce the frequency of the I2C bus.
by shaoziyang
Fri Aug 07, 2020 7:51 am
Forum: Programs, Libraries and Tools
Topic: OneWire crc8 function usage
Replies: 1
Views: 112

Re: OneWire crc8 function usage

Code: Select all

import onewire

ow = onewire.OneWire(Pin(22))

buf=b'\x70\x01\x4b\x46\x7f\xff\x0c\x10\x40'
ow.crc8(buf)
by shaoziyang
Thu Aug 06, 2020 2:11 am
Forum: micro:bit boards
Topic: octopus temperature and humidity sensor DHT
Replies: 1
Views: 903

Re: octopus temperature and humidity sensor DHT

dht is not build-in module in microbit. You may try BME280 or other I2C sensor.
by shaoziyang
Tue Aug 04, 2020 1:08 am
Forum: Other Boards
Topic: USB problem on STM32F411CEU6
Replies: 6
Views: 1068

Re: USB problem on STM32F411CEU6

If crystal‘s load capacitance is not match, it will takes a long time before PLL frequencies stable, exceed DFU bootloader detect time.
by shaoziyang
Thu Jul 30, 2020 2:35 am
Forum: ESP32 boards
Topic: A replacement for _uart.wait_tx_done in esp32
Replies: 2
Views: 858

Re: A replacement for _uart.wait_tx_done in esp32

You may use pin irq when there is no tx/rx irq function.
by shaoziyang
Thu Jul 23, 2020 12:52 am
Forum: ESP32 boards
Topic: i2c - cannot see the device.
Replies: 2
Views: 207

Re: i2c - cannot see the device.

LSM303D is being OBSOLETE, you may use LSM303A instead.
by shaoziyang
Mon Jul 20, 2020 12:59 pm
Forum: ESP32 boards
Topic: ESP32 Virtual Timers??
Replies: 7
Views: 601

Re: ESP32 Virtual Timers??

You may use Timer(-1), Timer(-2)... for different virtual timer. Currently that's not correct on the ESP32; virtual timers are not implemented . See Josh's PR #6258 for more details. In short there are four hardware timers and using -1 (and -2) actually maps to one of those timers due to a defect. ...
by shaoziyang
Mon Jul 20, 2020 12:58 pm
Forum: ESP32 boards
Topic: ESP32 Virtual Timers??
Replies: 7
Views: 601

Re: ESP32 Virtual Timers??

You may use Timer(-1), Timer(-2)... for different virtual timer. Currently that's not correct on the ESP32; virtual timers are not implemented . See Josh's PR #6258 for more details. In short there are four hardware timers and using -1 (and -2) actually maps to one of those timers due to a defect. ...
by shaoziyang
Mon Jul 20, 2020 12:46 am
Forum: ESP32 boards
Topic: ESP32 Virtual Timers??
Replies: 7
Views: 601

Re: ESP32 Virtual Timers??

You may use Timer(-1), Timer(-2)... for different virtual timer.