py board is a master or slave device

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
mhwang1973
Posts: 9
Joined: Tue Jul 11, 2017 9:35 am

py board is a master or slave device

Post by mhwang1973 » Wed Jul 12, 2017 8:43 am

Hi, all,
I use my old stm32F407 board to run MicroPython, camparing with the sch of PYboard, there is the diffrence of USB otg. I want to know the PYboard is a master device or a slave device when it is plugged into windows.
Thanks in advance。

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: py board is a master or slave device

Post by dhylands » Wed Jul 12, 2017 10:33 pm

If you're referring to USB host or USB device, then the pyboard is a USB device (which would correspond to a slave). It is possible to configure the pyboard as a USB host so that you can connect a mouse or keyboard.

klik
Posts: 5
Joined: Thu Jan 08, 2015 8:37 am

Re: py board is a master or slave device

Post by klik » Mon Jul 17, 2017 2:01 pm

dhylands wrote:It is possible to configure the pyboard as a USB host so that you can connect a mouse or keyboard.
@dhylands
That sounds interesting. So, if I understood you correctly, I can connect a normal USB-keyboard to the pyboard and then send some characters without a PC to the Pyboard?
Can you please give me a hint in the right direction? Thank you!

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: py board is a master or slave device

Post by dhylands » Mon Jul 17, 2017 9:28 pm

I believe that you need to build custom firmware and you may need to add some hardware.

There is a thread in the forum here: viewtopic.php?f=6&t=1032

I believe that Damien also set it up that way to allow the keybaord to be used with one of the MicroPython LCDs, but I couldn't find that in the forum.

Post Reply