an experimental library for AVR microchips exploiting C++ meta programming
C++
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
neatavr
.gitignore
README.rst
neatavr.hpp

README.rst

NeatAVR

NeatAVR is an experimental library for AVR microchips based on C++ meta programming.

Example

#define F_CPU 8000000UL

#include "neatavr.hpp"

#include "neatavr/serial.hpp"

#include <util/delay.h>

using namespace NeatAVR;

typedef Arduino13 LED;

int main() {
    Serial::init();

    Serial::printline("Hello World!");

    LED::output();

    System::enable_interrupts();

    while (1) {
        _delay_ms(500);

        LED::toggle()
    }
}