Join GitHub today
stm32: Add support for PYBD boards #4669
This PR adds support for PYBD_SF2, PYBD_SF3 and PYBD_SF6 boards, including a CYW4343 WiFi driver.
I don't intend to merge this just yet, it needs a little more cleaning of some commits and features, and some of the minor changes merged first.
Until it's fully merged I intend to rebase this PR, so please be aware of that if you clone it.
Because this function may execute in a raised priority context, and Python callbacks must execute at "thread" level.
As of commit 3581dee pretty much everything in this PR is now in master, in one form or another, in most cases cleaned up and improved. The only commit from here that is not in master is the one adding (via symlink) a bunch of networking modules as frozen bytecode 87a9e99 . Eventually this will be done but for now it's easy enough to just add needed scripts to the filesystem.
@robert-hh thanks for testing, indeed the MMC doesn't work with that snippet.
What changed is that
So this should work:
machine.Pin('EN_3V3', machine.Pin.OUT, value=1) os.mount(pyb.MMCard(), '/mmc')
But I think what should be changed here is that EN_3V3 be automatically turned on if the MMCard object is initialised, because there's not much point in initialising it without power.