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
board.h
- Committer:
- Suzutomo
- Date:
- 2018-10-06
- Revision:
- 6:6c3c49d45b98
- Parent:
- 5:434332dbbfc5
- Child:
- 7:c46745e98264
File content as of revision 6:6c3c49d45b98:
#include "SB1602E.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); //PS4Serial PS4(PA_9,PA_10); const PinName GPIO[13] = { PC_9, PA_5, PA_6, PA_7, PB_6, PC_7, PA_8, PB_10, PB_13, PB_14, PB_15, PB_1, PB_2 }; DigitalOut LED[5] = { DigitalOut(PA_15), DigitalOut(PB_7), DigitalOut(PC_13), DigitalOut(PC_2), DigitalOut(PC_3) }; DigitalIn SW[4] { DigitalIn(PC_0), DigitalIn(PC_1), DigitalIn(PB_0), DigitalIn(PA_4), }; //DigitalOut DevRst(PC_12); void boardInit() { for (int i = 0; i < 4; i++) SW[i].mode(PullUp); //if (perica.motor(0,0) = 1) ; }