Skip to content

Commit 9be2cdf

Browse files
authored
Merge branch 'adafruit:master' into master
2 parents 5ba2d72 + 45d535e commit 9be2cdf

File tree

6 files changed

+200
-0
lines changed

6 files changed

+200
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Apply board specific content here
2+
set(IDF_TARGET "esp32s3")
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2020 Ha Thach (tinyusb.org) for Adafruit Industries
5+
* Copyright (c) 2023 Linar Yusupov
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
26+
#pragma once
27+
28+
//--------------------------------------------------------------------+
29+
// Button
30+
//--------------------------------------------------------------------+
31+
32+
// Enter UF2 mode if GPIO is pressed while 2nd stage bootloader indicator
33+
// is on e.g RGB = Purple. If it is GPIO0, user should not hold this while
34+
// reset since that will instead run the 1st stage ROM bootloader
35+
#define PIN_BUTTON_UF2 0
36+
37+
// Initial delay in milliseconds to detect user interaction to enter UF2
38+
#define UF2_DETECTION_DELAY_MS 1000
39+
40+
//--------------------------------------------------------------------+
41+
// LED
42+
//--------------------------------------------------------------------+
43+
44+
// LED for indicator and writing flash
45+
//#define LED_PIN 18
46+
//#define LED_STATE_ON 1
47+
48+
//--------------------------------------------------------------------+
49+
// TFT
50+
//--------------------------------------------------------------------+
51+
52+
#define CONFIG_LCD_TYPE_ST7789V
53+
54+
#define DISPLAY_PIN_MISO -1 // required if use CONFIG_LCD_TYPE_AUTO
55+
#define DISPLAY_PIN_MOSI 48
56+
#define DISPLAY_PIN_SCK 38
57+
58+
#define DISPLAY_PIN_CS 39
59+
#define DISPLAY_PIN_DC 47
60+
#define DISPLAY_PIN_RST 40
61+
62+
#define DISPLAY_PIN_BL 7
63+
#define DISPLAY_BL_ON 0 // GPIO state to enable back light
64+
65+
#define DISPLAY_PIN_POWER 17
66+
#define DISPLAY_POWER_ON 1 // GPIO state to enable TFT
67+
68+
#define DISPLAY_WIDTH 320
69+
#define DISPLAY_HEIGHT 170
70+
71+
#define DISPLAY_COL_OFFSET 35
72+
#define DISPLAY_ROW_OFFSET 0
73+
74+
// Memory Data Access Control & // Vertical Scroll Start Address
75+
// Rotate display by changing MY to MX below
76+
#define DISPLAY_MADCTL TFT_MADCTL_MY
77+
#define DISPLAY_VSCSAD 0
78+
79+
#define DISPLAY_TITLE "Heltec T190"
80+
81+
//--------------------------------------------------------------------+
82+
// USB UF2
83+
//--------------------------------------------------------------------+
84+
85+
#define USB_VID 0x303A // Espressif VID
86+
#define USB_PID 0x1001 // Espressif assigned PID
87+
#define USB_MANUFACTURER "Heltec"
88+
#define USB_PRODUCT "Vision Master T190"
89+
90+
#define UF2_PRODUCT_NAME USB_MANUFACTURER " " USB_PRODUCT
91+
#define UF2_BOARD_ID "ESP32S3-HT-VMT190-v1.0"
92+
#define UF2_VOLUME_LABEL "HTBOOT"
93+
#define UF2_INDEX_URL "https://heltec.org/project/vision-master-t190"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Board Specific Config
2+
3+
# Partition Table
4+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MB.csv"
5+
6+
# Serial flasher config
7+
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Apply board specific content here
2+
set(IDF_TARGET "esp32s3")
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2020 Ha Thach (tinyusb.org) for Adafruit Industries
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
#ifndef WAVESHARE_ESP32_S3_LCD_19_H_
26+
#define WAVESHARE_ESP32_S3_LCD_19_H_
27+
28+
//--------------------------------------------------------------------+
29+
// Button
30+
//--------------------------------------------------------------------+
31+
// Enter UF2 mode if GPIO is pressed while 2nd stage bootloader indicator
32+
// is on e.g RGB = Purple. If it is GPIO0, user should not hold this while
33+
// reset since that will instead run the 1st stage ROM bootloader
34+
#define PIN_BUTTON_UF2 0
35+
36+
// GPIO that implement 1-bit memory with RC components which hold the
37+
// pin value long enough for double reset detection.
38+
// #define PIN_DOUBLE_RESET_RC
39+
40+
// #define CUSTOM_PIN_BUTTON_PWR_EN
41+
42+
//--------------------------------------------------------------------+
43+
// LED
44+
//--------------------------------------------------------------------+
45+
// GPIO connected to Neopixel data
46+
#define NEOPIXEL_PIN 15
47+
// Brightness percentage from 1 to 255
48+
#define NEOPIXEL_BRIGHTNESS 0xFF
49+
// Number of neopixels
50+
#define NEOPIXEL_NUMBER 2
51+
52+
//--------------------------------------------------------------------+
53+
// TFT
54+
//--------------------------------------------------------------------+
55+
#define CONFIG_LCD_TYPE_ST7789V
56+
57+
#define DISPLAY_PIN_MISO -1 // Not used for ST7789V
58+
#define DISPLAY_PIN_MOSI 13 // LCD_DIN
59+
#define DISPLAY_PIN_SCK 10 // LCD_CLK
60+
#define DISPLAY_PIN_DC 11 // LCD_DC
61+
#define DISPLAY_PIN_CS 12 // LCD_CS
62+
#define DISPLAY_PIN_RST 9 // LCD_RST
63+
#define DISPLAY_PIN_BL 14 // LCD_BL
64+
65+
#define DISPLAY_BL_ON 0 // GPIO state to enable back light
66+
67+
#define DISPLAY_WIDTH 320
68+
#define DISPLAY_HEIGHT 170
69+
#define DISPLAY_COL_OFFSET 35
70+
#define DISPLAY_ROW_OFFSET 0
71+
72+
// Memory Data Access Control & Vertical Scroll Start Address
73+
#define DISPLAY_MADCTL (TFT_MADCTL_MX)
74+
#define DISPLAY_VSCSAD 0
75+
#define DISPLAY_TITLE "ESP32S3-LCD-1.9"
76+
77+
//--------------------------------------------------------------------+
78+
// USB UF2
79+
//--------------------------------------------------------------------+
80+
#define USB_VID 0x303a // Espressif VID
81+
#define USB_PID 0x8223
82+
#define USB_MANUFACTURER "Waveshare"
83+
#define USB_PRODUCT "ESP32-S3_LCD_1.9"
84+
#define UF2_PRODUCT_NAME USB_MANUFACTURER " " USB_PRODUCT
85+
#define UF2_BOARD_ID "ESP32S3-LCD_1.9-v0"
86+
#define UF2_VOLUME_LABEL "S3-LCD-BOOT"
87+
#define UF2_INDEX_URL "https://www.waveshare.com/esp32-s3-lcd-1.9.htm"
88+
89+
#endif
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Board Specific Config
2+
3+
# Partition Table
4+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MB.csv"
5+
6+
# Serial flasher config
7+
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y

0 commit comments

Comments
 (0)