NIT Fukui / CERICA_2019

Dependencies:   ST7032 QEI PS4Serial

Dependents:   2021Arobo_UMAPYOI 2021Arobo_YUMIPYOI

Committer:
Suzutomo
Date:
Sat Sep 15 11:01:43 2018 +0000
Revision:
1:019a7d4201c2
Parent:
0:a1d2ea7aa5c6
Child:
2:3657788ab5fd
Add Cerica's PinMap

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Suzutomo 0:a1d2ea7aa5c6 1 #include "SB1602E.h"
Suzutomo 0:a1d2ea7aa5c6 2 #include "PS4Serial.h"
Suzutomo 0:a1d2ea7aa5c6 3 #include "perica3.h"
Suzutomo 0:a1d2ea7aa5c6 4
Suzutomo 0:a1d2ea7aa5c6 5 enum WireSel {
Suzutomo 0:a1d2ea7aa5c6 6 FEP01,TweLite
Suzutomo 0:a1d2ea7aa5c6 7 };
Suzutomo 1:019a7d4201c2 8
Suzutomo 1:019a7d4201c2 9 #define GPIO0 = PC_9,
Suzutomo 1:019a7d4201c2 10 #define GPIO1 = PA_5,
Suzutomo 1:019a7d4201c2 11 #define GPIO2 = PA_6,
Suzutomo 1:019a7d4201c2 12 #define GPIO3 = PA_7,
Suzutomo 1:019a7d4201c2 13 #define GPIO4 = PB_6,
Suzutomo 1:019a7d4201c2 14 #define GPIO5 = PC_7,
Suzutomo 1:019a7d4201c2 15 #define GPIO6 = PA_8,
Suzutomo 1:019a7d4201c2 16 #define GPIO7 = PB_10,
Suzutomo 1:019a7d4201c2 17 #define GPIO8 = PB_13,
Suzutomo 1:019a7d4201c2 18 #define GPIO9 = PB_14,
Suzutomo 1:019a7d4201c2 19 #define GPIO10 = PB_15,
Suzutomo 1:019a7d4201c2 20 #define GPIO11 = PB_1,
Suzutomo 1:019a7d4201c2 21 #define GPIO12 = PB_2,
Suzutomo 1:019a7d4201c2 22 };
Suzutomo 0:a1d2ea7aa5c6 23 class CERICA
Suzutomo 0:a1d2ea7aa5c6 24 {
Suzutomo 0:a1d2ea7aa5c6 25 private:
Suzutomo 0:a1d2ea7aa5c6 26 I2C i2c;
Suzutomo 0:a1d2ea7aa5c6 27 DigitalOut wireSelect;
Suzutomo 0:a1d2ea7aa5c6 28
Suzutomo 0:a1d2ea7aa5c6 29 public:
Suzutomo 0:a1d2ea7aa5c6 30 SB1602E lcd;
Suzutomo 0:a1d2ea7aa5c6 31 PS4Serial PS4;
Suzutomo 0:a1d2ea7aa5c6 32 PERICA perica;
Suzutomo 0:a1d2ea7aa5c6 33 CERICA(WireSel WireSel_);
Suzutomo 1:019a7d4201c2 34 bool motor(char sendChannel,int verocity) {return perica.motor(sendChannel,verocity);}
Suzutomo 0:a1d2ea7aa5c6 35 };