The friendly Operating System for the Internet of Things
arduino.hpp File Reference

Main interface definition of the Arduino API. More...

Detailed Description

#include "periph/gpio.h"
#include "arduino_board.h"
#include "serialport.hpp"
+ Include dependency graph for arduino.hpp:

Go to the source code of this file.

Enumerations

enum  { INPUT, OUTPUT, INPUT_PULLUP }
 Possible pin configurations. More...
 
enum  { LOW = 0, HIGH = 1 }
 Possible pin states. More...
 

Functions

void pinMode (int pin, int mode)
 Configure a pin as either input or output. More...
 
void digitalWrite (int pin, int state)
 Set the value for the given pin. More...
 
int digitalRead (int pin)
 Read the current state of the given pin. More...
 
void delay (unsigned long msec)
 Sleep for a given amount of time [milliseconds]. More...
 

Variables

static SerialPort Serial (UART_DEV(0))
 Primary serial port (mapped to UART_DEV(0))