Search found 363 matches

by shaoziyang
Thu Oct 10, 2019 4:46 am
Forum: Other Boards
Topic: Update pyb.Switch() to support multiple buttons?
Replies: 1
Views: 1633

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

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

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

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

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

Main difference is accelerometer and magnetic sensor.
by shaoziyang
Wed Sep 04, 2019 2:48 am
Forum: ESP32 boards
Topic: why UART use pin id as paramter directly?
Replies: 1
Views: 1409

why UART use pin id as paramter directly?

It is strange that, in UART use pin id as paramter directly, eg:

Code: Select all

u=UART(1,9600,tx=4,rx=5)

But in SPI/I2C, it is use pin object, eg:

Code: Select all

i2c=I2C(1,sda=Pin(14),scl=Pin(15))
by shaoziyang
Sat Aug 31, 2019 10:19 am
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 4723

Re: low power consumption pbyL board

Current firmware is not reach the minimum power consumption of STM32L476, but its power consumption is low enough for most battery-powered applications.
by shaoziyang
Fri Aug 30, 2019 1:55 pm
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 4723

Re: low power consumption pbyL board

I use ZT303, a 4 1/2 bits multimeter. Internal shunt for uA is about 100 ohm, not 1000 ohm.
by shaoziyang
Fri Aug 30, 2019 1:10 am
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 4723

Re: low power consumption pbyL board

Yes, it will make the display data a little smaller.
by shaoziyang
Thu Aug 29, 2019 3:19 pm
Forum: Other Boards
Topic: low power consumption pbyL board
Replies: 9
Views: 4723

Re: low power consumption pbyL board

I am sorry to put the wrong picture, I have fixed it.

In running mode, it about 10mA.