Pico fixes

This commit is contained in:
2026-04-02 21:48:31 +02:00
parent 0333b12fb3
commit 13c0fd32d6
3 changed files with 17 additions and 4 deletions

View File

@@ -12,13 +12,16 @@ SERVER_PORT = 3000
SERVER_IP_LOWER = 100
SERVER_IP_UPPER = 102
#SERVER_IP_LOWER = 120
#SERVER_IP_UPPER = 123
# Initialize I2C and OLED
i2c = I2C(0, sda=Pin(8), scl=Pin(9), freq=400000)
display = SSD1306_I2C(128, 64, i2c)
# connect to laptop hotspot
wifi_client.wifi_connect(SSID, PASSWORD)
wifi_client.search_server(SERVER_IP_LOWER, SERVER_IP_UPPER, SERVER_PORT)
#wifi_client.search_server(SERVER_IP_LOWER, SERVER_IP_UPPER, SERVER_PORT)
#wifi_client.send_request(42)