-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
adding support for the ST7796 + creating a new variant of the T-beam #6575
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
Open
Nasimovy
wants to merge
117
commits into
meshtastic:master
Choose a base branch
from
Nasimovy:T-beam-display-no-touch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+170
−23
Open
Changes from 13 commits
Commits
Show all changes
117 commits
Select commit
Hold shift + click to select a range
d72e908
remove duplicate HAS_LP5562 introduced by #6422
Nasimovy 3743269
Merge branch 'master' of https://github.com/Nasimovy/meshtastic-firmware
Nasimovy f55e855
Merge branch 'master' of https://github.com/Nasimovy/meshtastic-firmware
Nasimovy eb48def
Merge branch 'meshtastic:master' into T-beam-display-different-driver
Nasimovy f7bc4d8
add ST7796
Nasimovy 251c006
changes to get display centered+lib update
Nasimovy cd438a8
seperated from tbeam
Nasimovy 9de6340
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy d454a44
forgot the simple scan case
Nasimovy 7920110
Merge branch 'T-beam-display-no-touch' of https://github.com/Nasimovy…
Nasimovy 7f5e988
lowered speeds to 1/4
Nasimovy 8c2e727
added SPI Speed to constructor+ cleaned up variant.h
Nasimovy e145e10
even slower speeds....
Nasimovy 9efdf8b
add ST7796
Nasimovy 0418568
changes to get display centered+lib update
Nasimovy f7f5466
seperated from tbeam
Nasimovy ee95455
forgot the simple scan case
Nasimovy f5e3acb
lowered speeds to 1/4
Nasimovy acc0cfe
added SPI Speed to constructor+ cleaned up variant.h
Nasimovy e0bb762
even slower speeds....
Nasimovy 020e44d
changed variant name to tbeam-displayshield
Nasimovy 60ee8ea
Merge branch 'T-beam-display-no-touch' of https://github.com/Nasimovy…
Nasimovy b10af5b
modified variant.h and merged ini file+testing on lower spi frequency…
Nasimovy 7867cf5
try higher speeds + HSPI
Nasimovy a69c489
cleanup of redundant code
Nasimovy d55e3bf
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 3d8d6ef
refelct changes?
Nasimovy 2f15fba
Merge branch 'T-beam-display-no-touch' of https://github.com/Nasimovy…
Nasimovy ab35668
Merge branch 'master' into T-beam-display-no-touch
caveman99 e0d6fce
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 43978af
trunk fmt
Nasimovy cb14fc3
testing touchscreen code
Nasimovy 0f1e528
further testing
Nasimovy f5c3e77
changed to sensorlib 0.3.1
Nasimovy f30f528
i broke it , dont know how to fix at the moment will investigate
Nasimovy e7e1a20
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 15c2094
add -1 functionality for touch IRQ
Nasimovy 6fc1320
Merge branch 'T-beam-display-no-touch' of https://github.com/Nasimovy…
Nasimovy 71bc009
revert to working example?
Nasimovy ffa5476
it works.... is pressed was not working properly
Nasimovy 3145061
working touchscreen but gestures not moving display
Nasimovy ffe9728
swap XY+ mirror X
Nasimovy 97a1a42
Merge branch 'master' into T-beam-display-no-touch
Nasimovy c11e180
cleanup + addition of defines for on screen keyboard and canned mess…
Nasimovy a5ef03b
removed debug lines, disabled bluetooth for now because of stack smas…
Nasimovy aad4cbd
Merge branch 'master' into T-beam-display-no-touch
Nasimovy a72e02b
reverted the revert #6640 + increased speed, bleutooth is stable now …
Nasimovy 77b972c
Merge branch 'T-beam-display-no-touch' of https://github.com/Nasimovy…
Nasimovy addd294
remove debug + add fixed baudrate for gps
Nasimovy 680ea1c
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 7da0356
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 00f623a
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 8346ab4
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 97c3673
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 95160c4
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 9005703
fmt
Nasimovy 22151cf
Merge branch 'T-beam-display-no-touch' of https://github.com/Nasimovy…
Nasimovy 9143540
Merge branch 'master' into T-beam-display-no-touch
caveman99 c1bd6c4
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 873788e
revert NIMble
Nasimovy 80a750d
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 658a507
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy f6dedcb
changed display library to meshtastic org
Nasimovy 7e8845f
removed baudrate of 115200 and some commented out code
Nasimovy c37fe24
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 20f3c6f
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 5ef961d
Correct spelling
caveman99 2d5f8a9
Typo
caveman99 ef0fb49
display speed x10
Nasimovy 08301c7
resolve conflicts
Nasimovy ca176bc
undo
Nasimovy 0dcc6ba
Merge remote-tracking branch 'origin/master' into T-beam-display-no-t…
Nasimovy 7ee0c21
revert speed increase CPU
Nasimovy 10cb204
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy ce8298c
add SCREEN_TRANSITION_FRAMERATE 5
Nasimovy 00a96f3
spi speed increase of the display
Nasimovy 46f8939
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 1e4bf27
Merge branch 'master' into T-beam-display-no-touch
thebentern aa7469b
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 8d449e5
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 235eb66
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 28a2993
Merge branch 'master' into T-beam-display-no-touch
caveman99 6d51e88
Merge branch 'master' into T-beam-display-no-touch
Nasimovy b761dcb
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy 273e480
using the original touchscreen implementation
Nasimovy 2bed52a
removal of H file line
Nasimovy 8b4a899
Merge remote-tracking branch 'origin/master' into T-beam-display-no-t…
Nasimovy 2abcdb7
add USE_ST7796 to missing places
Nasimovy 7b365b7
removed is pressed + interrupt
Nasimovy 01518a4
Merge branch 'master' into T-beam-display-no-touch
Nasimovy fc6857c
Merge branch 'master' into T-beam-display-no-touch
Nasimovy d83b62c
Merge branch 'master' into T-beam-display-no-touch
Nasimovy b6eba7f
revert changes of settings.json
Nasimovy 264bdf6
Merge branch 'master' into T-beam-display-no-touch
Nasimovy ca279c8
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 6a06c9f
Merge branch 'master' into T-beam-display-no-touch
Nasimovy bd30f35
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 2903ec6
Merge remote-tracking branch 'origin/master' into T-beam-display-no-t…
Nasimovy 71e8fa3
update to screen.cpp
Nasimovy 90f6458
Merge branch 'meshtastic:master' into T-beam-display-no-touch
Nasimovy ac31dc7
Merge branch 'master' into T-beam-display-no-touch
Nasimovy b247ec8
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 70522ae
Merge remote-tracking branch 'origin/master' into T-beam-display-no-t…
Nasimovy 1baf5d2
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 6c8790d
update branch to reflect changes
Nasimovy 755be93
test identification of CST226 and CST328
Nasimovy c06575e
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 5092949
Merge branch 'master' into T-beam-display-no-touch
Nasimovy ce96f47
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 21c3508
Update src/configuration.h
Nasimovy a78baa7
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 5286a5a
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 673cf48
made changes to detection because it was completely wrong, CST226SE h…
Nasimovy c22eed9
Merge branch 'master' into T-beam-display-no-touch
Nasimovy c1e6fa4
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 4035609
Merge branch 'master' into T-beam-display-no-touch
Nasimovy c544499
Merge branch 'master' into T-beam-display-no-touch
Nasimovy 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
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
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
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
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
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,14 @@ | ||
; The 1.0 release of the TBEAM board | ||
[env:tbeam_TFT] | ||
Nasimovy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
extends = esp32_base | ||
board = ttgo-t-beam | ||
board_check = true | ||
lib_deps = ${esp32_base.lib_deps} | ||
https://github.com/Nasimovy/st7796/archive/refs/tags/1.0.5.zip ; display addon | ||
caveman99 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
build_flags = ${esp32_base.build_flags} | ||
-DTBEAM_V10 | ||
-Ivariants/tbeam_TFT | ||
-DGPS_POWER_TOGGLE ; comment this line to disable double press function on the user button to turn off gps entirely. | ||
-DBOARD_HAS_PSRAM | ||
-mfix-esp32-psram-cache-issue | ||
upload_speed = 921600 |
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,60 @@ | ||
// #define BUTTON_NEED_PULLUP // if set we need to turn on the internal CPU pullup during sleep | ||
|
||
#define I2C_SDA 21 | ||
#define I2C_SCL 22 | ||
|
||
// Display addon | ||
#define USE_ST7796 | ||
#define ST7796_NSS 25 | ||
#define ST7796_RS 13 // DC | ||
#define ST7796_SDA 14 // MOSI | ||
#define ST7796_SCK 15 | ||
#define ST7796_RESET 2 | ||
#define ST7796_MISO -1 | ||
#define ST7796_BUSY -1 | ||
#define VTFT_LEDA 4 | ||
#define TFT_SPI_FREQUENCY 500000 | ||
#define TFT_HEIGHT 222 | ||
#define TFT_WIDTH 480 | ||
#define BRIGHTNESS_DEFAULT 100 // Medium Low Brightnes | ||
|
||
#define BUTTON_PIN 38 // The middle button GPIO on the T-Beam | ||
// #define BUTTON_PIN_ALT 13 // Alternate GPIO for an external button if needed. Does anyone use this? It is not documented | ||
// anywhere. | ||
// #define EXT_NOTIFY_OUT 13 // Default pin to use for Ext Notify Module. | ||
|
||
// #define LED_STATE_ON 0 // State when LED is lit | ||
// #define LED_PIN 4 // Newer tbeams (1.1) have an extra led on GPIO4 | ||
|
||
// TTGO uses a common pinout for their SX1262 vs RF95 modules - both can be enabled and we will probe at runtime for RF95 and if | ||
// not found then probe for SX1262 | ||
#define USE_RF95 // RFM95/SX127x | ||
#define USE_SX1262 | ||
#define USE_SX1268 | ||
|
||
#define LORA_DIO0 26 // a No connect on the SX1262 module | ||
#define LORA_RESET 23 | ||
#define LORA_DIO1 33 // SX1262 IRQ | ||
#define LORA_DIO2 32 // SX1262 BUSY | ||
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262, if DIO3 is high the TXCO is enabled | ||
|
||
#ifdef USE_SX1262 | ||
#define SX126X_CS LORA_CS // FIXME - we really should define LORA_CS instead | ||
#define SX126X_DIO1 LORA_DIO1 | ||
#define SX126X_BUSY LORA_DIO2 | ||
#define SX126X_RESET LORA_RESET | ||
// Not really an E22 but TTGO seems to be trying to clone that | ||
#define SX126X_DIO2_AS_RF_SWITCH | ||
#define SX126X_DIO3_TCXO_VOLTAGE 1.8 | ||
// Internally the TTGO module hooks the SX1262-DIO2 in to control the TX/RX switch (which is the default for the sx1262interface | ||
// code) | ||
#endif | ||
|
||
// Leave undefined to disable our PMU IRQ handler. DO NOT ENABLE THIS because the pmuirq can cause sperious interrupts | ||
// and waking from light sleep | ||
// #define PMU_IRQ 35 | ||
#define HAS_AXP192 | ||
#define GPS_UBLOX | ||
#define GPS_RX_PIN 34 | ||
#define GPS_TX_PIN 12 | ||
// #define GPS_DEBUG |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The magic number 0xAB should be defined as a named constant to improve code readability and maintainability.
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this increase readability or should i add a comment on how or what the hex code means?