Skip to content
Discussion options

You must be logged in to vote

You can't use pyb library on other boards. In the long run pyb will be deprecated and it's functionality will be on the machine library. So if you use i2c or spi or pwm, it's better to start with machine, even on pyboard.
If you have a specific example that you are interested in that relies on pyb you could post it here, then we could try to help you change the code for machine. In principle that should be easy as long as the functionality is present on the esp32.
But consider that stm32f405 and esp32 are different architectures and they have different peripherals, so it might happen that you need a functionality that is present on the stm32f405 (pyboard) but not on the esp32 s2.
Also not…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spikey1973
Comment options

Answer selected by peterhinch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants