Skip to content

Commit 9fccaa8

Browse files
committed
Remove examples from Arduino dev guide
1 parent 89fa784 commit 9fccaa8

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

docs/images/Arduino_Uno_Mbed.png

93.3 KB
Loading
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## Arduino Uno
2+
3+
The Arduino Uno connector is a standardised connector in Mbed, which has a set amount of exposed functionality. To achieve meaningful portability of application code across various Mbed boards that are Arduino Uno compliant, the pin names used for the connector pins are common across these boards.
4+
5+
The following diagram shows the Arduino Uno standard for Mbed boards:
6+
![Static pinmap model](../../images/Arduino_Uno_Mbed.png)
7+
8+
**Digital and Analog pins**
9+
10+
The Arduino Uno connector for Mbed boards supports both digital and analog pins. Please note that the Arduino Uno only supports analog inputs and does not support analog output functionality. Digital pin functionality such as GPIO output or input on the Arduino Uno header can be accessed from any of the pins labelled as ARDUINO_UNO_D0 to ARDUINO_UNO_D15 and ARDUINO_UNO_A0 to ARDUINO_UNO_A5. The analog input functionality on the Arduino Uno connector can only be accessed on pins ARDUINO_UNO_A0 to ARDUINO_UNO_A5. The full digital and analog pin alias list for the Arduino Uno connector can be seen below.
11+
12+
ARDUINO_UNO_D0
13+
ARDUINO_UNO_D1
14+
ARDUINO_UNO_D2
15+
ARDUINO_UNO_D3
16+
ARDUINO_UNO_D4
17+
ARDUINO_UNO_D5
18+
ARDUINO_UNO_D6
19+
ARDUINO_UNO_D7
20+
ARDUINO_UNO_D8
21+
ARDUINO_UNO_D9
22+
ARDUINO_UNO_D10
23+
ARDUINO_UNO_D11
24+
ARDUINO_UNO_D12
25+
ARDUINO_UNO_D13
26+
ARDUINO_UNO_D14
27+
ARDUINO_UNO_D15
28+
29+
ARDUINO_UNO_A0
30+
ARDUINO_UNO_A1
31+
ARDUINO_UNO_A2
32+
ARDUINO_UNO_A3
33+
ARDUINO_UNO_A4
34+
ARDUINO_UNO_A5
35+
36+
**SPI pins**
37+
38+
The Arduino Uno connector for Mbed boards supports SPI functionality on specific pins and can be accessed using the pin alias's below
39+
40+
ARDUINO_UNO_SPI_CS or ARDUINO_UNO_D10
41+
ARDUINO_UNO_SPI_MOSI or ARDUINO_UNO_D11
42+
ARDUINO_UNO_SPI_MISO or ARDUINO_UNO_D12
43+
ARDUINO_UNO_SPI_SCK or ARDUINO_UNO_D13
44+
45+
if you need more SPI chip selects(CS) for your application, these can be controlled using additional digital out pins with the alias explained previously on this page
46+
47+
**I2C pins**
48+
49+
The Arduino Uno connector for Mbed boards supports I2C functionality on specific pins and can be accessed using the pin alias's below.
50+
51+
ARDUINO_UNO_I2C_SDA or ARDUINO_UNO_D14
52+
ARDUINO_UNO_I2C_SCL or ARDUINO_UNO_D15
53+
54+
**UART pins**
55+
56+
The Arduino Uno connector for Mbed boards supports UART functionality on specific pins and can be accessed using the pin alias's below
57+
58+
ARDUINO_UNO_UART_TX or ARDUINO_UNO_D1
59+
ARDUINO_UNO_UART_RX or ARDUINO_UNO_D0
60+
61+
For more details about UART, please check the Mbed API.
62+
63+
**PWM/Timer pins**
64+
65+
In the Arduino Uno standard, there are only 6 PWM and timers available on pins ARDUINO_UNO_D3, ARDUINO_UNO_D5, ARDUINO_UNO_D6, ARDUINO_UNO_D9, ARDUINO_UNO_D10 and ARDUINO_UNO_D11. However, Mbed boards may support the usage of PWM and timers functions on other pins as well.

0 commit comments

Comments
 (0)