Proteus je napisal/a: |
Tole tudi jaz uporabljam in to izključno s kačico
Ko se enkrat razvadiš je res ... |
Koda: |
PING 44.150.168.144 (44.150.168.144) 56(84) bytes of data.
64 bytes from 44.150.168.144: icmp_seq=1 ttl=128 time=0.118 ms 64 bytes from 44.150.168.144: icmp_seq=2 ttl=128 time=0.117 ms 64 bytes from 44.150.168.144: icmp_seq=3 ttl=128 time=0.113 ms 64 bytes from 44.150.168.144: icmp_seq=4 ttl=128 time=0.110 ms 64 bytes from 44.150.168.144: icmp_seq=5 ttl=128 time=0.116 ms 64 bytes from 44.150.168.144: icmp_seq=6 ttl=128 time=0.113 ms 64 bytes from 44.150.168.144: icmp_seq=7 ttl=128 time=0.116 ms 64 bytes from 44.150.168.144: icmp_seq=8 ttl=128 time=0.110 ms 64 bytes from 44.150.168.144: icmp_seq=9 ttl=128 time=0.114 ms 64 bytes from 44.150.168.144: icmp_seq=10 ttl=128 time=0.113 ms 64 bytes from 44.150.168.144: icmp_seq=11 ttl=128 time=0.118 ms 64 bytes from 44.150.168.144: icmp_seq=12 ttl=128 time=0.112 ms |
brezimenko je napisal/a: |
Jaz bi potem raje vzel tisto verzijo, ki ima že vdelan WiFi na plošči za recimo print server. |
Koda: |
import machine import utime #from machine import Pin #from time import sleep button = machine.Pin(15, machine.Pin.IN, machine.Pin.PULL_DOWN) led = machine.Pin(16, machine.Pin.OUT, machine.value==1) while True: if button.value() == 1: print(button.value()) led.value(1) utime.sleep(1) else: led.value(0) print(button.value()) utime.sleep(1) |
Koda: |
>>> %Run Test1.py
Traceback (most recent call last): File "E:\E_Payton\MicroPython\Test1.py", line 1, in <module> import machine ModuleNotFoundError: No module named 'machine' >>> |