-
-
Notifications
You must be signed in to change notification settings - Fork 85
M5Stack StickS3 - New Tab5 - driver modules #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
KenVanHoeylandt
merged 11 commits into
TactilityProject:main
from
Shadowtrance:driver-modules
Mar 20, 2026
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ad653e0
M5Stack StickS3 - New Tab5 - driver modules
Shadowtrance d3e0bca
Fixes
Shadowtrance bc8f699
and some more
Shadowtrance 3011d56
Update rx8130ce.cpp
Shadowtrance 879efa6
quick ninja symbol
Shadowtrance a1fa099
more symbols for p4 app i'm making
Shadowtrance a960680
addressing things...
Shadowtrance be4c1f8
MOAR SYMBOLS!
Shadowtrance 088dc6c
probably the last symbols for now
Shadowtrance 9e245ee
Update Detect.cpp
Shadowtrance 72281f9
Update Detect.cpp
Shadowtrance File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,4 +19,5 @@ shape=rectangle | |
| dpi=187 | ||
|
|
||
| [lvgl] | ||
| colorDepth=16 | ||
| colorDepth=16 | ||
| fontSize=18 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,3 +26,4 @@ warningMessage= | |
| [lvgl] | ||
| theme=DefaultDark | ||
| colorDepth=16 | ||
| fontSize=18 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,3 +21,4 @@ dpi=187 | |
|
|
||
| [lvgl] | ||
| colorDepth=16 | ||
| fontSize=18 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,3 +21,4 @@ dpi=187 | |
|
|
||
| [lvgl] | ||
| colorDepth=16 | ||
| fontSize=18 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,4 @@ dpi=187 | |
|
|
||
| [lvgl] | ||
| colorDepth=16 | ||
| fontSize=18 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| dependencies: | ||
| - Platforms/platform-esp32 | ||
| - Platforms/platform-esp32 | ||
| - Drivers/bmi270-module | ||
| dts: m5stack,cardputer-adv.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| dependencies: | ||
| - Platforms/platform-esp32 | ||
| - Platforms/platform-esp32 | ||
| - Drivers/mpu6886-module | ||
| - Drivers/bm8563-module | ||
| dts: m5stack,core2.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| dependencies: | ||
| - Platforms/platform-esp32 | ||
| - Platforms/platform-esp32 | ||
| - Drivers/bmi270-module | ||
| - Drivers/bm8563-module | ||
| dts: m5stack,cores3.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| dependencies: | ||
| - Platforms/platform-esp32 | ||
| - Platforms/platform-esp32 | ||
| - Drivers/bmi270-module | ||
| - Drivers/bm8563-module | ||
| dts: m5stack,papers3.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| dependencies: | ||
| - Platforms/platform-esp32 | ||
| - Platforms/platform-esp32 | ||
| - Drivers/mpu6886-module | ||
| - Drivers/bm8563-module | ||
| dts: m5stack,stickc-plus.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| dependencies: | ||
| - Platforms/platform-esp32 | ||
| - Platforms/platform-esp32 | ||
| - Drivers/mpu6886-module | ||
| - Drivers/bm8563-module | ||
| dts: m5stack,stickc-plus2.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| file(GLOB_RECURSE SOURCE_FILES Source/*.c*) | ||
|
|
||
| idf_component_register( | ||
| SRCS ${SOURCE_FILES} | ||
| INCLUDE_DIRS "Source" | ||
| REQUIRES Tactility esp_lvgl_port esp_lcd ST7789 PwmBacklight ButtonControl | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #include "devices/Display.h" | ||
| #include "devices/Power.h" | ||
| #include <driver/gpio.h> | ||
|
|
||
| #include <Tactility/hal/Configuration.h> | ||
| #include <ButtonControl.h> | ||
| #include <PwmBacklight.h> | ||
|
|
||
| using namespace tt::hal; | ||
|
|
||
| bool initBoot() { | ||
| return driver::pwmbacklight::init(GPIO_NUM_38, 512); | ||
| } | ||
|
|
||
| static DeviceVector createDevices() { | ||
| return { | ||
| createPower(), | ||
| ButtonControl::createTwoButtonControl(11, 12), // top button, side button | ||
| createDisplay() | ||
| }; | ||
| } | ||
|
|
||
| extern const Configuration hardwareConfiguration = { | ||
| .initBoot = initBoot, | ||
| .createDevices = createDevices | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #include "Display.h" | ||
|
|
||
| #include <PwmBacklight.h> | ||
| #include <St7789Display.h> | ||
|
|
||
| std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() { | ||
| St7789Display::Configuration panel_configuration = { | ||
| .horizontalResolution = LCD_HORIZONTAL_RESOLUTION, | ||
| .verticalResolution = LCD_VERTICAL_RESOLUTION, | ||
| .gapX = 52, | ||
| .gapY = 40, | ||
| .swapXY = false, | ||
| .mirrorX = false, | ||
| .mirrorY = false, | ||
| .invertColor = true, | ||
| .bufferSize = LCD_BUFFER_SIZE, | ||
| .touch = nullptr, | ||
| .backlightDutyFunction = driver::pwmbacklight::setBacklightDuty, | ||
| .resetPin = LCD_PIN_RESET, | ||
| .lvglSwapBytes = false | ||
| }; | ||
|
|
||
| auto spi_configuration = std::make_shared<St7789Display::SpiConfiguration>(St7789Display::SpiConfiguration { | ||
| .spiHostDevice = LCD_SPI_HOST, | ||
| .csPin = LCD_PIN_CS, | ||
| .dcPin = LCD_PIN_DC, | ||
| .pixelClockFrequency = 40'000'000, | ||
| .transactionQueueDepth = 10 | ||
| }); | ||
|
|
||
| return std::make_shared<St7789Display>(panel_configuration, spi_configuration); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #pragma once | ||
|
|
||
| #include "Tactility/hal/display/DisplayDevice.h" | ||
| #include <memory> | ||
| #include <driver/gpio.h> | ||
| #include <driver/spi_common.h> | ||
|
|
||
| constexpr auto LCD_SPI_HOST = SPI2_HOST; | ||
| constexpr auto LCD_PIN_CS = GPIO_NUM_41; | ||
| constexpr auto LCD_PIN_DC = GPIO_NUM_45; | ||
| constexpr auto LCD_PIN_RESET = GPIO_NUM_21; | ||
| constexpr auto LCD_HORIZONTAL_RESOLUTION = 135; | ||
| constexpr auto LCD_VERTICAL_RESOLUTION = 240; | ||
| constexpr auto LCD_BUFFER_HEIGHT = LCD_VERTICAL_RESOLUTION / 3; | ||
| constexpr auto LCD_BUFFER_SIZE = LCD_HORIZONTAL_RESOLUTION * LCD_BUFFER_HEIGHT; | ||
| constexpr auto LCD_SPI_TRANSFER_SIZE_LIMIT = LCD_BUFFER_SIZE * LV_COLOR_DEPTH / 8; | ||
|
|
||
| std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay(); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.