Search found 326 matches

by shaoziyang
Mon Jul 06, 2020 1:41 am
Forum: ESP32 boards
Topic: How to transfer library to ESP32?
Replies: 5
Views: 93

Re: How to transfer library to ESP32?

You may use webrepl or ftp transfer file through wlan, or use pyboard.py through serial port. i can't get the webrepl to connect :S i have enabled webrepl on my ESP32 :S pyboard.py also easy to use. It is in micropython/tools folder, it may use to transfer file, list file, etc. Compared with other ...
by shaoziyang
Sun Jul 05, 2020 1:34 am
Forum: ESP32 boards
Topic: How to transfer library to ESP32?
Replies: 5
Views: 93

Re: How to transfer library to ESP32?

You may use webrepl or ftp transfer file through wlan, or use pyboard.py through serial port.
by shaoziyang
Sat Jul 04, 2020 2:14 am
Forum: Development of MicroPython
Topic: IRQ_RXIDLE in UART?
Replies: 1
Views: 36

Re: IRQ_RXIDLE in UART?

UART receive callback is not perfect now, it is works, but not stable. You may try my irqUART for UART receive.

viewtopic.php?f=15&t=8579
https://github.com/micropython-Chinese- ... sc/irqUART
by shaoziyang
Sat Jul 04, 2020 2:10 am
Forum: ESP32 boards
Topic: 16x2 LCD
Replies: 19
Views: 1795

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: 96

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: 109

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: 2
Views: 212

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: 1079

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: 1079

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: 1079

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...