pyb librairy with esp32 #10627
-
Probably a very basic question, But can I use this PYB librairy also with esp32 boards (particulairy wemos lilo esp32 s2 mini) any thoughts on the topic are appreciated. Kind greats Matthieu |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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…