Search found 285 matches

by shaoziyang
Fri Jan 17, 2020 1:57 am
Forum: ESP32 boards
Topic: ESP 32-Using SDcard and Datalogging
Replies: 1
Views: 161

Re: ESP 32-Using SDcard and Datalogging

Please refer to the following instructions:

http://docs.micropython.org/en/latest/l ... DCard.html
by shaoziyang
Wed Jan 08, 2020 8:23 am
Forum: Development of MicroPython
Topic: Tree command for upysh
Replies: 8
Views: 411

Re: Tree command for upysh

It is useful.
by shaoziyang
Thu Dec 19, 2019 1:58 am
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 293

Re: [STM32L496] interrupt not working after entering low power mode

machine module is more generality, and pyb module is for stm32 only.
by shaoziyang
Wed Dec 18, 2019 3:45 pm
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 293

Re: [STM32L496] interrupt not working after entering low power mode

rtc.wake() need a irq function:

Code: Select all

def rtc_irq(t):
    return

rtc.wakeup(4 * 1000, rtc_irq)
machine.sleep()
And it is better use machine.sleep() or machine.deepsleep() instaed of pyb.stop().
by shaoziyang
Wed Dec 18, 2019 12:52 pm
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 293

Re: [STM32L496] interrupt not working after entering low power mode

Is sw pin an wakeup pin? You may try wakeup use RTC or wakeup pin.
by shaoziyang
Mon Dec 16, 2019 1:41 am
Forum: ESP8266 boards
Topic: RTC RAM size...
Replies: 2
Views: 206

Re: RTC RAM size...

In ESP32, rtc.memory() size is 2048.
by shaoziyang
Wed Dec 04, 2019 8:16 am
Forum: General Discussion and Questions
Topic: [Solved]Display PYFLASH of STM32L4R9IDISC in Ubuntu/Window
Replies: 6
Views: 367

Re: Display PYFLASH of STM32L4R9IDISC in Ubuntu/Window

Delete ST device in device manager first, then search new device. ST drive may conflict with pyboard drive.
by shaoziyang
Thu Oct 31, 2019 1:27 pm
Forum: Other Boards
Topic: nucleo F401RE cannot import name Servo
Replies: 7
Views: 810

Re: nucleo F401RE cannot import name Servo

nucleo F401RE firmware doesn't enable servo default, you can enable it by add

#define MICROPY_HW_ENABLE_SERVO (1)

to mpconfigboard.h and recompile source code.
by shaoziyang
Sun Oct 27, 2019 2:39 pm
Forum: micro:bit boards
Topic: ISR code example gives an error on microbit
Replies: 7
Views: 782

Re: ISR code example gives an error on microbit

microbit use nRF51822, and it has 16kb ram only. So some feather can't use in it.

Document for microbit:

https://microbit-micropython.readthedocs.io/en/latest/
by shaoziyang
Sun Oct 27, 2019 12:37 pm
Forum: micro:bit boards
Topic: ISR code example gives an error on microbit
Replies: 7
Views: 782

Re: ISR code example gives an error on microbit

pyb module is for stm32/pyboard, microbit has no pyb module.