# Discover what network/WiFi modules are actually available import lcd import sys lcd.init() lcd.clear() print("=" * 40) print("Module Discovery") print("=" * 40) # Try different possible module names modules_to_try = [ "network", "network_esp32", "network_esp8285", "esp32_spi", "esp8285", "wifi", "ESP32_SPI", "WIFI" ] found = [] y = 10 for module_name in modules_to_try: try: mod = __import__(module_name) msg = "FOUND: " + module_name print(msg) lcd.draw_string(10, y, msg[:25], 0x07E0, 0x0000) # Green y += 15 found.append(module_name) # Show methods print(" Methods: " + str(dir(mod))) except Exception as e: msg = "NONE: " + module_name print(msg + " (" + str(e) + ")") print("\n" + "=" * 40) if found: print("Found modules: " + str(found)) lcd.draw_string(10, y + 20, "Found: " + str(len(found)), 0xFFFF, 0x0000) else: print("No WiFi modules found!") lcd.draw_string(10, y + 20, "No WiFi found!", 0xF800, 0x0000) print("=" * 40)