Search found 363 matches

by shaoziyang
Sat Jul 04, 2020 2:10 am
Forum: ESP32 boards
Topic: 16x2 LCD
Replies: 20
Views: 12940

Re: 16x2 LCD

If you not set addr parameter in LCD1602, it will auto detect address. You may try

i2c = I2C(1, sda=Pin(12), scl=Pin(14))
LCD = LCD1602(i2c, 39)
by shaoziyang
Mon Jun 22, 2020 3:28 pm
Forum: Programs, Libraries and Tools
Topic: irqUART: UART with rxd irq and frame irq
Replies: 0
Views: 1695

irqUART: UART with rxd irq and frame irq

machine.UART is not support RXD irq feature, it will brings some difficulties to uart programming in some cases. irqUART give a alternative solutionuse, it use pin irq instead of uart irq. irqUART is simple, small and fast. irqUART was tested on pyboard and esp32. demo.jpg Usage define user RXD irq,...
by shaoziyang
Wed Jun 17, 2020 1:41 am
Forum: Other Boards
Topic: STM32L476 wakeup by PA0 from deepsleep
Replies: 2
Views: 2004

Re: STM32L476 wakeup by PA0 from deepsleep

You need set EWUP1 bit in registry PWR_CR3.

Code: Select all

import stm

A0 = Pin('A0', Pin.IN, pull=Pin.PULL_DOWN) 
stm.mem32[stm.PWR+0x08] |= 1
by shaoziyang
Tue Jun 16, 2020 8:07 am
Forum: ESP32 boards
Topic: Esp32-S2 port
Replies: 4
Views: 5022

Re: Esp32-S2 port

circuitpython is support ESP32-S2, but micropython doesn't.
by shaoziyang
Wed May 27, 2020 12:43 am
Forum: micro:bit boards
Topic: memory allocation error when file size reduces
Replies: 7
Views: 6376

Re: memory allocation error when file size reduces

The most problem for microbit is ramsize, so don't run complex task on it.

And you may try to simplify program functions and modules code to save memory.
by shaoziyang
Tue May 26, 2020 12:53 am
Forum: micro:bit boards
Topic: memory allocation error when file size reduces
Replies: 7
Views: 6376

Re: memory allocation error when file size reduces

Yes, the loading order will do affect, maxiam loading size is less than half of the free memory, so loading large file first.
by shaoziyang
Mon May 25, 2020 1:12 am
Forum: micro:bit boards
Topic: memory allocation error when file size reduces
Replies: 7
Views: 6376

Re: memory allocation error when file size reduces

microbit's ram size and flash size is small, so if import too many modules or large modules, it will cause memory error. You may try remove some unused code, use tab instead of leading blanks to save memory. To improve the calculation accuracy of altitude, it is necessary to sample many times and ca...
by shaoziyang
Fri May 22, 2020 1:38 am
Forum: General Discussion and Questions
Topic: issues with wakeup_X1
Replies: 3
Views: 2470

Re: issues with wakeup_X1

You can set the WKUP mode by modify PWR register EWUP bit directly.
by shaoziyang
Mon May 18, 2020 6:41 am
Forum: ESP32 boards
Topic: Mounting SD Card on ESP-WROOM-32 using SD/MMC hardware.
Replies: 7
Views: 5536

Re: Mounting SD Card on ESP-WROOM-32 using SD/MMC hardware.

pyESP32 is make by myself, use ESP32-WROVER with 4M psram.
  • USB type-c interface
  • USB power and charge
  • High efficiency DC/DC power supply
  • on board USB/TTL converter
  • one click upgrade firmware
  • microSD slot
  • low cost
  • open hardware
不带ESP32.jpg
不带ESP32.jpg (105.03 KiB) Viewed 5386 times
by shaoziyang
Mon May 18, 2020 12:41 am
Forum: ESP32 boards
Topic: Mounting SD Card on ESP-WROOM-32 using SD/MMC hardware.
Replies: 7
Views: 5536

My pyESP32 board

My ESP32 board, with microSD slot.

pyESP32-01.jpg
pyESP32-01.jpg (97.31 KiB) Viewed 5405 times

pyESP32-02.jpg
pyESP32-02.jpg (103.03 KiB) Viewed 5405 times