Adds connecting to server

This commit is contained in:
Daniel Svitan
2025-05-08 12:35:21 +02:00
parent 5d0a59dc86
commit b31382fcda
4 changed files with 136 additions and 23 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
from machine import Pin
import utime
trigger = Pin(3, Pin.OUT)
echo = Pin(2, Pin.IN)
trigger = Pin(2, Pin.OUT)
echo = Pin(3, Pin.IN)
sound = 340 * 100 # m/s * centi = cm/s