Adafruit Trinket M0 Editing Blocks
Adafruit Trinket M0
CircuitPython or Arduino IDE on this tiny little microcontroller board
bylady ada andKattni Rembor
published August 23, 2017, last edited June 24, 2025
- Overview
- Guided Tour
- Pinouts
- Windows Driver Installation
- What is CircuitPython?
- CircuitPython
- CircuitPython Essentials
- CircuitPython Pins and Modules
- CircuitPython Built-Ins
- CircuitPython Digital In & Out
- CircuitPython Analog In
- CircuitPython Analog Out
- CircuitPython PWM
- CircuitPython Servo
- CircuitPython Cap Touch
- CircuitPython Internal RGB LED
- CircuitPython NeoPixel
- CircuitPython DotStar
- CircuitPython UART Serial
- CircuitPython I2C
- CircuitPython HID Keyboard and Mouse
- CircuitPython CPU Temp
- CircuitPython Storage
- CircuitPython Expectations
- MakeCode
- Arduino IDE Setup
- UF2 Bootloader Details
- Downloads
Primary Products
161
Beginner
Product guide
Editing Blocks
The block editor is the easiest way to get started with MakeCode Maker. You can drag and drop blocks from the category list. Each time you make a change to the blocks, the simulator will automatically restart and run the code. You can test your program in the browser! The simulator will also generate the wiring for your breadboard for simple programs.
On the maker home screen, click on "New Project", then select which board you want to use (you can change board later too).
Blinky!
The animation above shows to use the blocks to create a program that blinks an LED.
Creating a blink effect is done by setting the pin HIGH,pause for a little, then set the pin LOW, pause for a little, then repeatforever.
- forever runs blocks in a loop with a 20ms pause in between (it is similar to Arduinoloop).
- digital write pin sets the pin to high or low
- pause blocks the current thread for 100ms. If other events or forever loops are running, they have the opporunity to run in parallel.
Page last edited March 08, 2024
Text editor powered bytinymce.











