Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST7032 QEI PS4Serial
Diff: board.h
- Revision:
- 18:aa0c973d8551
- Parent:
- 17:fa2c87e5c5c7
--- a/board.h Wed Oct 09 07:55:11 2019 +0000
+++ b/board.h Tue Oct 29 07:51:27 2019 +0000
@@ -31,15 +31,23 @@
PA_15, PB_7, PC_13, PC_2, PC_3
};
-DigitalIn SW[4] = {
+/*DigitalIn SW[4] = {
PC_0, PC_1, PB_0,PA_4
-};
+};*/
+DigitalIn SW1(PC_0);
+DigitalIn SW2(PC_1);
+DigitalIn SW3(PB_0);
+DigitalIn SW4(PA_4);
//DigitalOut DevRst(PC_12);
void boardInit()
{
- for (int i = 0; i < 4; i++) SW[i].mode(PullUp);
+ //for (int i = 0; i < 4; i++) SW[i].mode(PullUp);
+ SW1.mode(PullUp);
+ SW2.mode(PullUp);
+ SW3.mode(PullUp);
+ SW4.mode(PullUp);
for (int i = 0; i < 5; i++) LED[i] = 1;
wait(1);
for (int i = 0; i < 5; i++) LED[i] = 0;