Skip to content

Commit

Permalink
Remove int1,2,3
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-sam committed Nov 22, 2018
1 parent 3b3848a commit 521381d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions inc/drivers/MicroBitIO.h
Expand Up @@ -60,9 +60,6 @@ class MicroBitIO
MicroBitPin P16;
MicroBitPin P19;
MicroBitPin P20;
MicroBitPin int1;
MicroBitPin int2;
MicroBitPin int3;

/**
* Constructor.
Expand All @@ -78,7 +75,7 @@ class MicroBitIO
int ID_P9, int ID_P10,int ID_P11,
int ID_P12,int ID_P13,int ID_P14,
int ID_P15,int ID_P16,int ID_P19,
int ID_P20, int ID_INT1, int ID_INT2, int ID_INT3);
int ID_P20);
};

#endif
7 changes: 2 additions & 5 deletions source/drivers/MicroBitIO.cpp
Expand Up @@ -46,7 +46,7 @@ MicroBitIO::MicroBitIO(int ID_P0, int ID_P1, int ID_P2,
int ID_P9, int ID_P10,int ID_P11,
int ID_P12,int ID_P13,int ID_P14,
int ID_P15,int ID_P16,int ID_P19,
int ID_P20, int ID_INT1, int ID_INT2, int ID_INT3) :
int ID_P20) :
P0 (ID_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_ALL), //P0 is the left most pad (ANALOG/DIGITAL/TOUCH)
P1 (ID_P1, MICROBIT_PIN_P1, PIN_CAPABILITY_ALL), //P1 is the middle pad (ANALOG/DIGITAL/TOUCH)
P2 (ID_P2, MICROBIT_PIN_P2, PIN_CAPABILITY_ALL), //P2 is the right most pad (ANALOG/DIGITAL/TOUCH)
Expand All @@ -65,9 +65,6 @@ MicroBitIO::MicroBitIO(int ID_P0, int ID_P1, int ID_P2,
P15(ID_P15,MICROBIT_PIN_P15,PIN_CAPABILITY_STANDARD), //MOSI
P16(ID_P16,MICROBIT_PIN_P16,PIN_CAPABILITY_STANDARD), //PIN 16
P19(ID_P19,MICROBIT_PIN_P19,PIN_CAPABILITY_STANDARD), //SCL
P20(ID_P20,MICROBIT_PIN_P20,PIN_CAPABILITY_STANDARD), //SDA
int1(ID_INT1,P0_28,PIN_CAPABILITY_STANDARD), //INT1
int2(ID_INT2,P0_29,PIN_CAPABILITY_STANDARD), //INT2
int3(ID_INT3,P0_27,PIN_CAPABILITY_STANDARD) //INT3
P20(ID_P20,MICROBIT_PIN_P20,PIN_CAPABILITY_STANDARD) //SDA
{
}

0 comments on commit 521381d

Please sign in to comment.