porklib: Simple library for programming Arduino in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.1 KiB

This library is very old and unmaintained.

There may be some good bits worth salvaging, but for new projects I recommend the avr-c-boilerplate as a base instead. Copy and port good modules from this library if you like.

"porklib", MightyPork's Arduino Library

This library aims to make development for AVR in C easy and fun.

Modules of the library provide facilities for pin numbering and aliasing, bitwise operations and accessing internal and external peripherals of the AVR.

It takes some inspiration from Arduino, but is written in pure C, which makes it faster and smaller.

Pull requests to add new modules are welcome, please go ahead!


You can use the provided Makefile to build your project with this library.

A project typically consists of one main.c file, and some *_config.c files where the library headers request it (those define eg. IO pin mapping).

Adjust the Makefile to your needs!


The library is provided under MIT license, see the LICENSE file for more info.