This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Beyond The Moon - Python Codes | |
# Workshop Session 1 (Python) | |
# By Kinabalu Coders | |
import turtle | |
# tukar penjuru untuk poligon baru | |
penjuru = 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_connect(): | |
import network | |
wlan = network.WLAN(network.STA_IF) | |
wlan.active(True) | |
if not wlan.isconnected(): | |
print('connecting to network...') | |
wlan.connect('smartspacekk', 'smartspace09') | |
while not wlan.isconnected(): | |
pass | |
print('network config:', wlan.ifconfig()) |
OlderNewer