Arduino to Peripheral Module adapter library
This library assigns the proper pins for an Arduino compatible board with the ard2pmd adapter board.
- mux I2C pins
mux(D14, D15)
Digital I/O
pmd[8]
is an array of pointers to the DigitalInOut objects
Index | Name | Pmod |
---|---|---|
0 | pa1 | 1 |
1 | pa2 | 2 |
2 | pa3 | 3 |
3 | pa4 | 4 |
4 | pb1 | 7 |
5 | pb2 | 8 |
6 | pb3 | 9 |
7 | pb4 | 10 |
MAX14661 Multiplexer Abstraction
mux_a[17]
is an array of integers representing the bit mask of a multiplexer switch arranged in Arduino order
Index | Pin | Name |
---|---|---|
0 | D0 | RX |
1 | D1 | TX |
2 | D2 | D3 |
3 | D3 | D4 |
4 | D4 | PB1 |
5 | D5 | PB2 |
6 | D6 | PB3 |
7 | D7 | PB4 |
8 | D8 | D8 |
9 | D9 | D9 |
10 | D10 | PA1 |
11 | D11 | PA2 |
12 | D12 | PA3 |
13 | D13 | PA4 |
14 | D14 | SDA |
15 | D15 | SCL |
16 | na | 0 |
mux_p[9]
is an array of integers representing the bit mask of a multiplexer switch arranged in Pmod order
Index | Pin | Name |
---|---|---|
0 | D10 | PA1 |
1 | D11 | PA2 |
2 | D12 | PA3 |
3 | D13 | PA4 |
4 | D4 | PB1 |
5 | D5 | PB2 |
6 | D6 | PB3 |
7 | D7 | PB4 |
8 | na | 0 |
History
Cleaned up example in comments.
2014-05-10, by gsteiert [Sat, 10 May 2014 04:22:17 +0000] rev 4
Cleaned up example in comments.
Modified to be consistent with mbd2pmd so to work with a common PmodInterface library
2014-05-10, by gsteiert [Sat, 10 May 2014 02:05:38 +0000] rev 3
Modified to be consistent with mbd2pmd so to work with a common PmodInterface library
Fixed pin to mux mapping
2014-02-15, by gsteiert [Sat, 15 Feb 2014 22:08:18 +0000] rev 2
Fixed pin to mux mapping
Removed unreachable break statements
2014-02-10, by gsteiert [Mon, 10 Feb 2014 03:39:26 +0000] rev 1
Removed unreachable break statements
Initial commit of ARD2PMD
2014-02-10, by gsteiert [Mon, 10 Feb 2014 03:10:39 +0000] rev 0
Initial commit of ARD2PMD