for hank

Dependencies:   mbed-STM32F103C8T6_new

Committer:
bbw
Date:
Wed Apr 15 11:36:03 2020 +0000
Revision:
1:0fe432e5dfc4
Child:
2:f48b0967b6cc
Test_bob_0415

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bbw 1:0fe432e5dfc4 1 #ifndef MAIN_H
bbw 1:0fe432e5dfc4 2 #define MAIN_H
bbw 1:0fe432e5dfc4 3
bbw 1:0fe432e5dfc4 4 #include "mbed.h"
bbw 1:0fe432e5dfc4 5 //#include "FastIO.h"
bbw 1:0fe432e5dfc4 6 #include "st7789v.h"
bbw 1:0fe432e5dfc4 7 #include "stm32f103c8t6.h"
bbw 1:0fe432e5dfc4 8 #include "SHT21_ncleee.h"
bbw 1:0fe432e5dfc4 9 #include "eeprom.h"
bbw 1:0fe432e5dfc4 10
bbw 1:0fe432e5dfc4 11 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)
bbw 1:0fe432e5dfc4 12
bbw 1:0fe432e5dfc4 13 #if 0
bbw 1:0fe432e5dfc4 14 /**/
bbw 1:0fe432e5dfc4 15 static DigitalOut TFTRD(PB_1);
bbw 1:0fe432e5dfc4 16 static DigitalOut TFTWR(PB_10);
bbw 1:0fe432e5dfc4 17 static DigitalOut TFTDC(PB_7);
bbw 1:0fe432e5dfc4 18 static DigitalOut TFTRST(PB_11);
bbw 1:0fe432e5dfc4 19 static DigitalOut TFTCS(PB_6);
bbw 1:0fe432e5dfc4 20 #endif
bbw 1:0fe432e5dfc4 21
bbw 1:0fe432e5dfc4 22 #if 0
bbw 1:0fe432e5dfc4 23 static FastOut<PB_14> TFTRD;
bbw 1:0fe432e5dfc4 24 static FastOut<PB_15> TFTWR;
bbw 1:0fe432e5dfc4 25 static FastOut<PA_8> TFTDC;
bbw 1:0fe432e5dfc4 26 static FastOut<PA_11> TFTCS;
bbw 1:0fe432e5dfc4 27 #endif
bbw 1:0fe432e5dfc4 28
bbw 1:0fe432e5dfc4 29 #if 1
bbw 1:0fe432e5dfc4 30 static DigitalOut TFTRD(PB_14);
bbw 1:0fe432e5dfc4 31 static DigitalOut TFTWR(PB_15);
bbw 1:0fe432e5dfc4 32 static DigitalOut TFTDC(PA_8);
bbw 1:0fe432e5dfc4 33 static DigitalOut TFTCS(PA_11);
bbw 1:0fe432e5dfc4 34 #endif
bbw 1:0fe432e5dfc4 35
bbw 1:0fe432e5dfc4 36 static I2C i2c(PB_7,PB_6);
bbw 1:0fe432e5dfc4 37
bbw 1:0fe432e5dfc4 38 static SHT21 sht(&i2c);
bbw 1:0fe432e5dfc4 39
bbw 1:0fe432e5dfc4 40 //static DigitalIn Stopper1(PA_13);
bbw 1:0fe432e5dfc4 41 //static DigitalIn Stopper2(PA_15);
bbw 1:0fe432e5dfc4 42
bbw 1:0fe432e5dfc4 43 static DigitalOut MOTOA1(PB_4);
bbw 1:0fe432e5dfc4 44 static DigitalOut MOTOB1(PB_5);
bbw 1:0fe432e5dfc4 45
bbw 1:0fe432e5dfc4 46 static DigitalOut MOTOA2(PB_8);
bbw 1:0fe432e5dfc4 47 static DigitalOut MOTOB2(PB_9);
bbw 1:0fe432e5dfc4 48
bbw 1:0fe432e5dfc4 49 //static DigitalIn Hall1(PA_14);
bbw 1:0fe432e5dfc4 50 static DigitalIn Hall2(PB_3);
bbw 1:0fe432e5dfc4 51
bbw 1:0fe432e5dfc4 52 static Serial bt_uart(PA_9, PA_10);
bbw 1:0fe432e5dfc4 53 static Serial wifi_uart(PA_2, PA_3);
bbw 1:0fe432e5dfc4 54 static Serial debug_uart(PB_10, PB_11);
bbw 1:0fe432e5dfc4 55
bbw 1:0fe432e5dfc4 56 static InterruptIn FrontKey(PA_4);
bbw 1:0fe432e5dfc4 57 static InterruptIn DebugKey(PA_12);
bbw 1:0fe432e5dfc4 58
bbw 1:0fe432e5dfc4 59 //static DigitalOut WIFI_PWREN(PC_13);
bbw 1:0fe432e5dfc4 60
bbw 1:0fe432e5dfc4 61 static AnalogIn SensorCurrent(PA_0);
bbw 1:0fe432e5dfc4 62 static AnalogIn BatteryVoltage(PA_1);
bbw 1:0fe432e5dfc4 63
bbw 1:0fe432e5dfc4 64 #endif