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
board.h
- Committer:
 - Suzutomo
 - Date:
 - 2018-10-12
 - Revision:
 - 10:45cc90a9ec34
 - Parent:
 - 7:c46745e98264
 - Child:
 - 11:8fa43cb31f9b
 
File content as of revision 10:45cc90a9ec34:
#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);
    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) ;
}