Arduino-GPIO
General Purpose Input/Output (GPIO) library for Arduino
BOARD Class Reference

#include <Board.h>

Collaboration diagram for BOARD:
Collaboration graph

Public Types

enum  pin_t {
  D0 = GPIO_PIN(0x29,0), D1 = GPIO_PIN(0x29,1), D2 = GPIO_PIN(0x29,2), D3 = GPIO_PIN(0x29,3),
  D4 = GPIO_PIN(0x29,4), D5 = GPIO_PIN(0x29,5), D6 = GPIO_PIN(0x29,6), D7 = GPIO_PIN(0x29,7),
  D8 = GPIO_PIN(0x23,0), D9 = GPIO_PIN(0x23,1), D10 = GPIO_PIN(0x23,2), D11 = GPIO_PIN(0x23,3),
  D12 = GPIO_PIN(0x23,4), D13 = GPIO_PIN(0x23,5), D14 = GPIO_PIN(0x26,0), D15 = GPIO_PIN(0x26,1),
  D16 = GPIO_PIN(0x26,2), D17 = GPIO_PIN(0x26,3), D18 = GPIO_PIN(0x26,4), D19 = GPIO_PIN(0x26,5),
  SS = D10, MOSI = D11, MISO = D12, SCK = D13,
  SDA = D18, SCL = D19
}
 

Detailed Description

GPIO digital pin symbols for ATmega168/ATmega328P based boards.

Board

Arduino Uno
----- -------
+-|(o)|--------------------| USB |---+
| | | | | |
| ----- | | |
| ------- |
| |
| []| SCL
| []| SDA
| []| AREF
| []| GND
NC |[] []| D13/SCK
IOREF |[] []| D12/MISO
RESET |[] []| D11/MOSI
3V3 |[] []| D10/SS
5V |[] []| D9
GND |[] []| D8
GND |[] |
Vin |[] []| D7
| []| D6
A0/D14 |[] []| D5
A1/D15 |[] []| D4
A2/D16 |[] []| D3
A3/D17 |[] []| D2
SDA/A4/D18 |[] []| D1
SCL/A5/D19 |[] ICSP []| D0
| [o-o-*] +-------+
\ [o-o-o] /
+------------------------+

Definition at line 101 of file Board.h.

Member Enumeration Documentation

Enumerator
D0 

PIND:0.

D1 

PIND:1.

D2 

PIND:2.

D3 

PIND:3.

D4 

PIND:4.

D5 

PIND:5.

D6 

PIND:6.

D7 

PIND:7.

D8 

PINB:0.

D9 

PINB:1.

D10 

PINB:2/SS.

D11 

PINB:3/MOSI/ICSP.4.

D12 

PINB:4/MISO/ICSP.1.

D13 

PINB:5/SCK/ICSP.3.

D14 

PINC:0/A0.

D15 

PINC:1/A1.

D16 

PINC:2/A2.

D17 

PINC:3/A3.

D18 

PINC:4/A4/SDA.

D19 

PINC:5/A5/SCL.

SS 

SPI Slave Select.

MOSI 

SPI Master Output Slave Input.

MISO 

SPI Master Input Slave Output.

SCK 

SPI Clock.

SDA 

TWI Data.

SCL 

TWI Clock.

Definition at line 103 of file Board.h.


The documentation for this class was generated from the following file: