Main interface definition of the Arduino API.
More...
Main interface definition of the Arduino API.
- Author
- Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Definition in file arduino.hpp.
#include <stdint.h>
#include "irq.h"
#include "periph/gpio.h"
#include "arduino_board.h"
#include "serialport.hpp"
Go to the source code of this file.
|
typedef bool | boolean |
| Arduino boolean data type definion.
|
|
typedef uint8_t | byte |
| Arduino byte data type definion.
|
|
|
unsigned long | millis () |
| Returns the number of milliseconds since start.
|
|
void | pinMode (int pin, int mode) |
| Configure a pin as either input or output.
|
|
void | digitalWrite (int pin, int state) |
| Set the value for the given pin.
|
|
int | digitalRead (int pin) |
| Read the current state of the given pin.
|
|
void | delay (unsigned long msec) |
| Sleep for a given amount of time [milliseconds].
|
|
void | delayMicroseconds (unsigned long usec) |
| Sleep for a given amount of time [microseconds].
|
|
unsigned long | micros () |
| Returns the number of microseconds since start.
|
|
int | analogRead (int pin) |
| Read the current value of the given analog pin.
|
|
void | analogWrite (int pin, int value) |
| Write an analog value to a pin.
|
|
static void | interrupts (void) |
| Enables interrupts.
|
|
static void | noInterrupts (void) |
| Disables interrupts.
|
|
|
static SerialPort | Serial (ARDUINO_UART_DEV) |
| Primary serial port (mapped to ARDUINO_UART_DEV)
|
|