Linux Format

Using the GPIO with MicroBlocks

OUR EXPERT

Les Pounder is associate editor at Tom’s Hardware and a freelance maker for hire. He blogs about his adventures and projects at http://bigl.es.

YOU NEED

> Pi Pico

> Half- or full-size breadboard

> 220 ohm resistor (red-redbrown-gold)

> An LED

> 3x M2M jumper wires

> NeoPixel strip

> Code: https://github.com/lesp/LXF 301-Micro Blocks/archive/refs/ heads/ main.zip

Writing code for the Raspberry Pi Pico is not just restricted to text. MicroBlocks (https://microblocks.fun) is a free language for Linux, Windows, Mac OS and Chrome devices that uses a Scratch-like interface to write code. Using blocks of code, learners can see how it works and understand the principles of coding without being scared by a wall of text. In this tutorial, we will install MicroBlocks on our Ubuntu 22.04 machine and write two projects to demonstrate how it can be used with the Pi Pico.

Preparing MicroBlocks

Installing MicroBlocks is easy, but there’s a couple of

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format10 min read
Code A Classic Star Wars Scroller
Don’t miss next issue, subscribe on page 16! OUR EXPERT Ferenc Deák never throws anything away, which is why he still has all his demoscene files. You can find and clone all the code from the GitHub page: https://github. com/fritzone/lxf-demologia La
Linux Format4 min read
Pepper Grinder
Minimum OS: Ubuntu 22.04 CPU: Intel Core i5 4570, AMD A105800K APU Mem: 8GB GPU: GeForce GTX 650, Radeon HD 7750, Iris Pro Graphics 580. OpenGL 2.1+, 1GB VRAM HDD: 300MB Poor Pepper. She’s the star of Devolver Digital’s new Drill baby, drill! platfor
Linux Format3 min read
SanDisk Pro-Blade
Size: 4TB (1TB, 2TB options) Port: USB 3.2 Gen 2x2 Type-C, PCIe 3.0 x4 Bridge: ASMedia ASM 2364 Power: Bus Cable: 50cm Type-C Size: 109.8x28 x7.5mm 45g (Mag), 130.4x 71.5x16mm 165g (Transport) Western Digital unveiled the mouth-filling SanDisk Profes

Related