add(ESP32)
This commit is contained in:
parent
8b79c69973
commit
44cc65add0
|
|
@ -1,7 +1,8 @@
|
||||||
# Thonny
|
# Thonny
|
||||||
|
|
||||||
## Install
|
`MicroPython`
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
```
|
```
|
||||||
|
|
@ -14,3 +15,37 @@ cd thonny-4.1.7
|
||||||
```
|
```
|
||||||
|
|
||||||
### Windows
|
### 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>)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>)
|
|
||||||
Loading…
Reference in New Issue