add(ESP32)

This commit is contained in:
unknown 2025-09-27 14:16:33 -05:00
parent 8b79c69973
commit 44cc65add0
2 changed files with 36 additions and 37 deletions

View File

@ -1,7 +1,8 @@
# Thonny
## Install
`MicroPython`
## Install
### Linux
```
@ -14,3 +15,37 @@ cd thonny-4.1.7
```
### Windows
## Code
### (HIGH) status
led.value(1)
led.on()
### (LOW) status
led.value(0)
led.off()
### Pin
led_placa = Pin(2, Pin.OUT, value=1)
### Button
boton_up = Pin(4, Pin.IN, Pin.PULL_DOWN)
## Mod
### Time
import utime
utime.sleep(<segundos>)
utime.sleep_ms(<milisegundos>)
utime.sleep_us(<microsegundos>)

View File

@ -1,36 +0,0 @@
# Thonny
`MicroPython`
## Led
### (HIGH) status
led.value(1)
led.on()
### (LOW) status
led.value(0)
led.off()
### Pin
led_placa = Pin(2, Pin.OUT, value=1)
### Button
boton_up = Pin(4, Pin.IN, Pin.PULL_DOWN)
## Mod
### Time
import utime
utime.sleep(<segundos>)
utime.sleep_ms(<milisegundos>)
utime.sleep_us(<microsegundos>)