Skip to content

Close to the simplest possible Zig bare metal program targetting a Raspberry Pi 3.

License

Notifications You must be signed in to change notification settings

lmbarros/pi3-zig-simplest-bare-metal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplest Raspberry Pi 3 bare metal program in Zig

Not literally the simplest possible bare metal Pi 3 program in Zig, but a very simple one, and pretty well-documented.

This program will alternate the GPIO pin 16 between 0 and 1, which is good for blinking an LED. High-tech stuff here, uh?!

I have written a blog post, From Bare Docs to Bare Metal, explaining some of the fundamentals of how to program the Raspberry Pi GPIO.

How to run

Build with zig build, copy the resulting zig-out/bin/kernel7.img file to an SD card, along with all files under firmware.

About

Close to the simplest possible Zig bare metal program targetting a Raspberry Pi 3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages