Arduino to Peripheral Module adapter library

Dependents:   ARD2PMD_WebServer

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

IndexNamePmod
0pa11
1pa22
2pa33
3pa44
4pb17
5pb28
6pb39
7pb410

MAX14661 Multiplexer Abstraction

mux_a[17] is an array of integers representing the bit mask of a multiplexer switch arranged in Arduino order

IndexPinName
0D0RX
1D1TX
2D2D3
3D3D4
4D4PB1
5D5PB2
6D6PB3
7D7PB4
8D8D8
9D9D9
10D10PA1
11D11PA2
12D12PA3
13D13PA4
14D14SDA
15D15SCL
16na0

mux_p[9] is an array of integers representing the bit mask of a multiplexer switch arranged in Pmod order

IndexPinName
0D10PA1
1D11PA2
2D12PA3
3D13PA4
4D4PB1
5D5PB2
6D6PB3
7D7PB4
8na0

Files at this revision

API Documentation at this revision

Comitter:
gsteiert
Date:
Sat May 10 04:22:17 2014 +0000
Parent:
3:18ae8990f74b
Commit message:
Cleaned up example in comments.

Changed in this revision

ARD2PMD.h Show annotated file Show diff for this revision Revisions of this file
diff -r 18ae8990f74b -r f016a009708c ARD2PMD.h
--- a/ARD2PMD.h	Sat May 10 02:05:38 2014 +0000
+++ b/ARD2PMD.h	Sat May 10 04:22:17 2014 +0000
@@ -31,10 +31,10 @@
  *
  * #include "ARD2PMD.h"
  *
- * ARD2PMD a2p(p28, p27);
+ * ARD2PMD a2p();
  *
  * int main() {
- *     a2p.mux.setAB((mbd2pmd::RX | mbd2pmd::PA3), (mbd2pmd::TX | mbd2pmd::PA2));
+ *     a2p.mux.setAB((ARD2PMD::RX | ARD2PMD::PA3), (ARD2PMD::TX | ARD2PMD::PA2));
  * }
  * @endcode
  */