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
cerica2.h
- Committer:
- Suzutomo
- Date:
- 2018-09-15
- Revision:
- 1:019a7d4201c2
- Parent:
- 0:a1d2ea7aa5c6
- Child:
- 2:3657788ab5fd
File content as of revision 1:019a7d4201c2:
#include "SB1602E.h"
#include "PS4Serial.h"
#include "perica3.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);}
};