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
Dependents: 2021Arobo_UMAPYOI 2021Arobo_YUMIPYOI
Diff: board.h
- Revision:
- 11:8fa43cb31f9b
- Parent:
- 10:45cc90a9ec34
- Child:
- 12:9d099f3d2a3b
--- a/board.h Fri Oct 12 15:59:14 2018 +0000
+++ b/board.h Wed Dec 05 02:25:44 2018 +0000
@@ -1,13 +1,13 @@
#include "SB1602E.h"
-#include "perica3.h"
+//#include "perica3.h"
#include "QEI.h"
#include "PS4Serial.h"
#include "cerica2.h"
QEI Enc[2] = {QEI(PC_6, PC_5, PC_8, 360), QEI(PA_11, PB_12, PA_12, 360)};
I2C i2c(PB_9,PB_8);
-SB1602E lcd(i2c,"hello");
-PERICA perica(&i2c,0x10 << 1);
+SB1602E lcd(i2c,"CERICA2\nHello!");
+//PERICA perica(&i2c,0x10 << 1);
PS4Serial PS4(PA_9,PA_10);
const PinName GPIO[13] = {
@@ -27,18 +27,11 @@
};
DigitalOut LED[5] = {
- DigitalOut(PA_15),
- DigitalOut(PB_7),
- DigitalOut(PC_13),
- DigitalOut(PC_2),
- DigitalOut(PC_3)
+ PA_15, PB_7, PC_13, PC_2, PC_3
};
DigitalIn SW[4] {
- DigitalIn(PC_0),
- DigitalIn(PC_1),
- DigitalIn(PB_0),
- DigitalIn(PA_4),
+ PC_0, PC_1, PB_0,PA_4
};
//DigitalOut DevRst(PC_12);
@@ -49,7 +42,4 @@
for (int i = 0; i < 5; i++) LED[i] = 1;
wait(1);
for (int i = 0; i < 5; i++) LED[i] = 0;
-
-
- //if (perica.motor(0,0) = 1) ;
}