Powered by TinkerSpace
Join free
TinkerPy Projects lessons
๐Ÿ‘‹
Lesson 1 of 10 ยท Starter ยท 5 min

Meet TinkerPy

What is TinkerPy, and the two magic blocks: def setup() and def loop().

TinkerPy is a simple coding language for your TinkerPy board. You write instructions, press Compile, and the board follows them โ€” lights, motors, buzzers, sensors!

Two magic blocks

TinkerPy
from tinkerpy_mega import *

# ===== My TinkerPy Project =====

# This code block executes only once
def setup():
    pass  # your code goes here

# This code block executes forever
def loop():
    pass  # your code goes here
Every new project starts like this.

Pins: o and i

๐Ÿ’ก Tip

Lines starting with # are comments. The board ignores them โ€” they are notes for humans.

๐Ÿš€ Your turn

Open Projects, tap Create New Project and find the setup and loop blocks.

Chat with TinkerPy ๐Ÿ‘‹