How To Control Neopixels with BASIC on Raspberry Pi Pico

In the 1980s, the boom in home computers saw machines from Atari, Apple, Commodore, Acorn, Sinclair et al all looking to introduce computing to a generation. In an example of history repeating itself we saw the emergence of the Raspberry Pi in the 2010s. But as Raspberry Pi and Python now go hand-in-hand for this generation, in the 1980s it was BASIC.

BASIC, Beginners All-Purpose Symbolic Instruction Code is a high level, human readable language originally developed in 1964 by John G. Kemeny, Thomas E. Kurtz and Mary Kenneth Keller at Dartmouth College. BASIC came to prominence in the late 1970s, thanks to the rise of home computers. The 1980s saw BASIC, multiple versions of the language, for many different home computers. Microsoft BASIC, TI-BASIC, Amiga BASIC, AppleSoft BASIC. BASIC was both our programming language and a means to control our home computers.

Swipe to scroll horizontally
Raspberry Pi PicoNeoPixelWire Color
3v3VCCRed
GNDGNDBlack
GPIO28Data In (DIN)Green
Les Pounder

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • lazzakin
    Thank you! This got me up and running. Question though: where can I find info on more fine-grained control of a neopixel strip with PicoMite basic? (e.g. brightness, RGB values, position, etc.)

    UPDATE: I found I can lower the brightness simply by changing the amount of RGB as a tuple. For example: this produces a dim red pixel, the rest black:

    Dim a%(5)=(RGB(10,0,0),RGB(black),RGB(black),RGB(black),RGB(black),RGB(black))
    Reply