test

Dependencies:   mbed-STM32F103C8T6 SHT21_ncleee

Revision:
1:0fe432e5dfc4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Wed Apr 15 11:36:03 2020 +0000
@@ -0,0 +1,64 @@
+#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
\ No newline at end of file