I have been working on a project on a Pico however my code is getting very long.
How do I organize my code and separate it into different .py files? I was thinking about doing like the import modules, but I am not sure how to do it correctly. Something like this:
Code: Select all
from machine import I2C, I2S, Pin, SPI
import time
import array
import math
import my_arrays
import my_functions
import my_constants
import my_variables