import sys #this will make us work with our system such us command line, path of files and our interpreter version
import machine # this give us access to our device or micro controller
# Basic system information display
print("MicroPython Version:", sys.version) # this prints the micropython version
print("Platform:", sys.platform) # this prints what is our module in this case an ESP32
print("Implementation:", sys.implementation) # this prints micropython deataails along with the version and module
# Available interfaces
print("\nAvailable Interfaces:") #this will be the command to print text in the console for list of interfaces
try: #this will initiate the first command which is to print ESP 32's current available interfaces
for i in dir(machine):
if not i.startswith('__'):
print(" -", i)
except: # this will be the separator for the esp32 interface that canot be enumerated
print("Unable to enumerate machine interfaces")