Running helloworld
import time
while True:
time.sleep(1)
print("hello world")
Through Helloworld, you could know uPyCraft more directly.
Step 1. open uPyCraft.
Step 2. plug in board.
Step 3. select board.
Step 4. select serial port.
Step 5. create new file, name it helloworld.py and copy code as below to edit box and save it by the order Ctrl+S.
Caution: The frequent prints (while loop) of spacing that less than 4mm will lead to suddenly stop working of IDE tools.
We are sorry for the inconvenience caused and will optimize it in the later versions.
import time
while True:
time.sleep(1)
print("hello world")
Step 6. click download and run to programming and run the program. The printed message will show in the terminal box.