Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
/ lot-odroid-n2 Public archive

GPIO development library for ODROID-N2

License

Notifications You must be signed in to change notification settings

hhk7734/lot-odroid-n2

Repository files navigation

license version language

lot-odroid-n2

Installation

lot installation guide

sudo lot install cpp

Blink example

#include <lot/lot.h>
#include <lot/Gpio.h>

const int LED_PIN = 13;

int main( void )
{
    lot::Gpio led( LED_PIN );
    led.mode( lot::DOUT );

    for( ;; )
    {
        led.toggle();
        lot::delay_ms( 200 );
    }
}
g++ blink.cpp -o blink -llot &&\
./blink