Is it possible to have an application using python 2 and python 3 modules?
I am currently building an app in my raspberry pi. This application must use the I2C bus along the serial port. Previously, I developed both applications independently of each other; for I2C application, I used python3 module to handle bus. But to handle the serial port, I am using python 2 module.
Now I want to create an application that handles two interfaces. Is it possible? How should I do it?
Thank.
+3
source to share
2 answers