Search found 278 matches

by shaoziyang
Thu Oct 31, 2019 1:27 pm
Forum: Other Boards
Topic: nucleo F401RE cannot import name Servo
Replies: 7
Views: 387

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

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

Re: ISR code example gives an error on microbit

pyb module is for stm32/pyboard, microbit has no pyb module.
by shaoziyang
Thu Oct 10, 2019 4:46 am
Forum: Other Boards
Topic: Update pyb.Switch() to support multiple buttons?
Replies: 1
Views: 151

Re: Update pyb.Switch() to support multiple buttons?

That's a good idea.
by shaoziyang
Wed Sep 11, 2019 1:06 pm
Forum: MicroPython pyboard
Topic: Does pyboard use RTC pin as GPIO
Replies: 5
Views: 280

Re: Does pyboard use RTC pin as GPIO

I use a multimeter to measure voltage on capacitor, it is not change.

Or read the pin value, it always zero.

Code: Select all

PC14=Pin('PC14', Pin.OUT)
PC14(1)
PC14()
by shaoziyang
Wed Sep 11, 2019 3:23 am
Forum: MicroPython pyboard
Topic: Does pyboard use RTC pin as GPIO
Replies: 5
Views: 280

Re: Does pyboard use RTC pin as GPIO

I need more GPIOs, and not use RTC. So I turn off RTC by set

#define MICROPY_HW_ENABLE_RTC (0)

but PC14/PC15 out value is not change.
by shaoziyang
Tue Sep 10, 2019 4:59 am
Forum: MicroPython pyboard
Topic: Does pyboard use RTC pin as GPIO
Replies: 5
Views: 280

Does pyboard use RTC pin as GPIO

Does pyboard use RTC pin as general GPIO? I have try to turn off RTC in mpconfigboard.h, but when I set PC14/PC15 to OUT mode and set 1, it always get 0.
by shaoziyang
Fri Sep 06, 2019 6:12 am
Forum: micro:bit boards
Topic: Microbit hardware revisions - v1.3b or v1.5 - any important differences?
Replies: 2
Views: 248

Re: Microbit hardware revisions - v1.3b or v1.5 - any important differences?

Main difference is accelerometer and magnetic sensor.