for hank
Dependencies: mbed-STM32F103C8T6_new
main.h
- Committer:
- bbw
- Date:
- 2020-04-21
- Revision:
- 6:a9cc2c424cf9
- Parent:
- 3:30d61fa10b98
File content as of revision 6:a9cc2c424cf9:
#ifndef MAIN_H #define MAIN_H #include "mbed.h" //#include "FastIO.h" #include "st7789v.h" #include "stm32f103c8t6.h" //#include "SHT21_ncleee.h" #include "eeprom.h" static BusOut lcdBus(PB_13,PB_12,PB_2,PB_1,PB_0,PA_7,PA_6,PA_5); //Laiwu board configuration BusOut(LSB------MSB) #if 0 /**/ static DigitalOut TFTRD(PB_1); static DigitalOut TFTWR(PB_10); static DigitalOut TFTDC(PB_7); static DigitalOut TFTRST(PB_11); static DigitalOut TFTCS(PB_6); #endif #if 0 static FastOut<PB_14> TFTRD; static FastOut<PB_15> TFTWR; static FastOut<PA_8> TFTDC; static FastOut<PA_11> TFTCS; #endif #if 1 static DigitalOut TFTRD(PB_14); static DigitalOut TFTWR(PB_15); static DigitalOut TFTDC(PA_8); static DigitalOut TFTCS(PA_11); #endif static I2C i2c(PB_7,PB_6); //static SHT21 sht(&i2c); //static DigitalIn Stopper1(PA_13); //static DigitalIn Stopper2(PA_15); static DigitalOut MOTOA1(PB_4); static DigitalOut MOTOB1(PB_5); static DigitalOut MOTOA2(PB_8); static DigitalOut MOTOB2(PB_9); //static DigitalIn Hall1(PA_14); static DigitalIn Hall2(PB_3); static Serial bt_uart(PA_9, PA_10); //static Serial wifi_uart(PA_2, PA_3); //static Serial debug_uart(PB_10, PB_11); static InterruptIn FrontKey(PA_4); static InterruptIn DebugKey(PA_12); static DigitalOut WIFI_PWREN(PC_13); static AnalogIn SensorCurrent(PA_0); static AnalogIn BatteryVoltage(PA_1); #endif