Search found 243 matches

by shaoziyang
Fri Sep 07, 2018 3:32 pm
Forum: Other Boards
Topic: PYB Nano V2 mini board
Replies: 12
Views: 1115

Re: PYB Nano V2 mini board

PYB Nano V2 is a pocket micropython board, with STM32F411 microcontroller and 8MByte Flash. It's nice to see you've made your own board. It would be far more interesting if you give some more information, like schematics, bottom layout, does it have sdcard connector, ... PYB Nano V2 is upgrade from...
by shaoziyang
Fri Sep 07, 2018 12:29 pm
Forum: The MicroPython pyboard
Topic: RTC refuses to set
Replies: 2
Views: 201

Re: RTC refuses to set

Sometimes RTC may not initial correctly after power on, then RTC not running. You may try clock.init() to re-initial RTC.
by shaoziyang
Fri Sep 07, 2018 10:53 am
Forum: Other Boards
Topic: PYB Nano V2 mini board
Replies: 12
Views: 1115

Re: PYB Nano V2 mini board

pythoncoder wrote:
Fri Sep 07, 2018 9:17 am
But with fewer I/O pins...
And lower cost. :)
by shaoziyang
Wed Sep 05, 2018 3:22 am
Forum: Other Boards
Topic: PYB Nano V2 mini board
Replies: 12
Views: 1115

PYB Nano V2 mini board

PYB Nano V2 is a pocket micropython board, with STM32F411 microcontroller and 8MByte Flash.
pybnano_02.jpg
pybnano_02.jpg (83.03 KiB) Viewed 823 times
by shaoziyang
Thu Aug 30, 2018 7:57 am
Forum: The micro:bit
Topic: micro:bit not working with 1.9.2
Replies: 3
Views: 318

Re: micro:bit not working with 1.9.2

My microbit is working fine in v1.9.2, maybe the new firmware is not good. you may try it in MU 1.0, it using micropython 1.9.2.
by shaoziyang
Sat Aug 25, 2018 4:41 am
Forum: The MicroPython pyboard
Topic: Wake up PyBoard
Replies: 2
Views: 217

Re: Wake up PyBoard

In standby mode, the only way to wake pyboard is reset. In stop mode, you may use RTC or pin level irq to wake it.

Code: Select all

def pin1_irq(t):
	#do something
	return

pin1 = Pin(Pin('B0'), Pin.IN)
pin1.irq(handler=pin1_irq, trigger=Pin.IRQ_FALLING)
by shaoziyang
Thu Aug 23, 2018 2:58 am
Forum: General Discussion and Questions
Topic: Best way to debug with no USB
Replies: 6
Views: 362

Re: Best way to debug with no USB

You may try one of you UART as REPL, debug and download with it.
by shaoziyang
Tue Aug 21, 2018 3:00 am
Forum: General Discussion and Questions
Topic: Calculation benchmark of micropython in different hardware
Replies: 14
Views: 1019

Calculation benchmark of micropython in different hardware

I have made a compare of calculation benchmark of micropython in different hardware, I hope it will be helpful to you. Because forum does not support table, so I put result in a picture. benchmark.jpg runtest.zip I have made more test, and put it in github: https://github.com/shaoziyang/micropython_...
by shaoziyang
Mon Aug 20, 2018 7:47 am
Forum: The micro:bit
Topic: arm thumb2 assembly
Replies: 3
Views: 300

Re: arm thumb2 assembly

from microbit import * display.show('S') def get_serial_number(type=hex): NRF_FICR_BASE = 0x10000000 DEVICEID_INDEX = 25 # deviceid[1] @micropython.asm_thumb def reg_read(r0): ldr(r0, [r0, 0]) return type(reg_read(NRF_FICR_BASE + (DEVICEID_INDEX*4))) while True: if button_a.was_pressed(): display.s...