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: cerica2.h
- Revision:
- 3:72c7158376db
- Parent:
- 2:3657788ab5fd
- Child:
- 11:8fa43cb31f9b
--- a/cerica2.h Wed Sep 19 10:04:49 2018 +0000
+++ b/cerica2.h Fri Oct 05 08:11:37 2018 +0000
@@ -1,35 +1,14 @@
-#include "SB1602E.h"
-#include "PS4Serial.h"
-#include "perica3.h"
+#include "mbed.h"
enum WireSel {
FEP01,TweLite
};
-#define GPIO0 PC_9
-#define GPIO1 PA_5
-#define GPIO2 PA_6
-#define GPIO3 PA_7
-#define GPIO4 PB_6
-#define GPIO5 PC_7
-#define GPIO6 PA_8
-#define GPIO7 PB_10
-#define GPIO8 PB_13
-#define GPIO9 PB_14
-#define GPIO10 PB_15
-#define GPIO11 PB_1
-#define GPIO12 PB_2
-
class CERICA
{
private:
- I2C i2c;
DigitalOut wireSelect;
public:
- SB1602E lcd;
- PS4Serial PS4;
- PERICA perica;
CERICA(WireSel WireSel_);
- bool motor(char sendChannel,int verocity) {return perica.motor(sendChannel,verocity);}
};
\ No newline at end of file