Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98fd5f6742 | ||
|
|
368a8d5015 | ||
|
|
d0d27a6715 |
No files matched your search
@@ -0,0 +1,11 @@
|
|||||||
|
from machine import Pin
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
led = Pin(2, Pin.OUT)
|
||||||
|
|
||||||
|
while True:
|
||||||
|
led.on()
|
||||||
|
sleep(1)
|
||||||
|
led.off()
|
||||||
|
sleep(1)
|
||||||
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import dht
|
||||||
|
import machine
|
||||||
|
d = dht.DHT11(machine.Pin(16))
|
||||||
|
|
||||||
|
d.measure()
|
||||||
|
print(d.temperature())
|
||||||
|
print(d.humidity())
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
@@ -0,0 +1,5 @@
|
|||||||
|
from machine import ADC
|
||||||
|
|
||||||
|
ldr = ADC(0)
|
||||||
|
|
||||||
|
print(ldr.read())
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Reference in new issue
Block a user