update the pin for metro52

This commit is contained in:
hathach committed 2017-06-29 15:47:20 +07:00
1 parent a1a20425db
commit d1e86c6ee0
3 files changed
+92 -77

No files matched your search

+7 -44
View File
@@ -22,52 +22,15 @@
#include "wiring_digital.h"
#include <nrf.h>
const uint32_t g_ADigitalPinMap[] = {
// D0 - D7
0, // xtal 1
1, // xtal 2
2, // a0
3, // a1
4, // a2
5, // a3
6, // TXD
7, // GPIO #7
// D8 - D13
8, // RXD
9, // NFC1
10, // NFC2
11, // GPIO11
12, // SCK
13, // MOSI
14, // MISO
15, // GPIO #15
16, // GPIO #16
// function set pins
17, // LED #1 (red)
18, // SWO
19, // LED #2 (blue)
20, // DFU
21, // Reset
22, // Factory Reset
23, // N/A
24, // N/A
25, // SDA
26, // SCL
27, // GPIO #27
28, // A4
29, // A5
30, // A6
31, // A7
const uint32_t g_ADigitalPinMap[] =
{
0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ,
8 , 9 , 10 , 11 , 12 , 13 , 14 , 15,
16 , 17 , 18 , 19 , 20 , 21 , 22 , 23,
24 , 25 , 26 , 27 , 28 , 29 , 30 , 31
};
void initVariant()
{
// LED1 & LED2