From bbfa74093d04ee1cd34fb1376bfcc0dd1983c617 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Tue, 14 May 2019 11:34:09 +0800 Subject: [PATCH] add readme --- README.MD | 43 +++++++++++++++++++++++++++++++++++++++++++ board_def.h | 8 -------- 2 files changed, 43 insertions(+), 8 deletions(-) create mode 100644 README.MD diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..0e9d1ee --- /dev/null +++ b/README.MD @@ -0,0 +1,43 @@ +TTGO T22 T-Beam +===================== + + +![](images/1.png) + + + +## PinOut +| Pins | T_BEAM_V10 | T_BEAM_V07 | +| ----------- | ---------- | ---------- | +| LORA_SCK | 5 | 5 | +| LORA_MISO | 19 | 19 | +| LORA_MOSI | 27 | 27 | +| LORA_SS | 18 | 18 | +| LORA_DI0 | 26 | 26 | +| LORA_RST | 23 | 23 | +| GPS_RX_PIN | 34 | 12 | +| GPS_TX_PIN | 12 | 15 | +| I2C_SDA | 21 | 21 | +| I2C_SCL | 22 | 22 | +| PMU_IRQ | 35 | N/A | +| USER BUTTON | 36 | N/A | + +## Power Control Channel +| Modules | T_BEAM_V10 | T_BEAM_V07 | +| ------- | ---------- | ---------- | +| GPS | LDO3 | No supoort | +| LORA | LDO2 | No supoort | + + + +## How to use +- The repository depends on other library files, please recursively clone the repository + ``` + git clone --recursive https://github.com/Xinyuan-LilyGO/TTGO-T-Beam + ``` + +- Then move the library files in the `libraries` directory to + ``` + C:\Users\\Documents\Arduino\libraries + ``` +- In the Arduino board select `T-Beam` diff --git a/board_def.h b/board_def.h index 1103ea9..0c88533 100644 --- a/board_def.h +++ b/board_def.h @@ -9,14 +9,6 @@ #define ENABLE_LOAR -#ifdef ENABLE_BUTTON -#define BUTTON_1 36 -#define BUTTON_2 0 -#define BUTTON_3 0 -#define BUTTON_4 36 -#define BUTTON_5 0 -#endif - //ssd1306 oled显示屏 #define SSD1306_ADDRESS 0x3c #ifdef ENABLE_SSD1306