code cleanup
This commit is contained in:
1 parent
c0b7ec194b
commit
216cdc56a7
5 files changed
+144
-33
No files matched your search
+37
@@ -1,6 +1,43 @@
|
||||
/*
|
||||
* AES256 Seed Phrase Encryptor
|
||||
*
|
||||
* Copyright (C) 2026 SCHAUAUS GmbH
|
||||
*
|
||||
*/
|
||||
|
||||
// genereal definitions
|
||||
#define DEBUG_DISPLAY 1
|
||||
|
||||
// pin definition
|
||||
#define TFT_CS 14
|
||||
#define TFT_DC 15
|
||||
#define TFT_IPS true
|
||||
#define TFT_MISO -1
|
||||
#define TFT_MOSI 6
|
||||
#define TFT_RST 21
|
||||
#define TFT_SCK 7
|
||||
#define TFT_BKL 22
|
||||
#define RGB_LED 8
|
||||
|
||||
// display dimensions ESP32-C6-LCD1.47 is portrait by default
|
||||
#define TFT_HEIGHT 320
|
||||
#define TFT_WIDTH 172
|
||||
#define TFT_COL_OFFSET 34 // offset needed due to organization of ST7789 VRAM
|
||||
#define TFT_ROW_OFFSET 0 // offset needed due to organization of ST7789 VRAM
|
||||
|
||||
// set display rotation (needs to be 0 for offsets to be applied properly!)
|
||||
#define TFT_ROTATION 0
|
||||
|
||||
// backlight settings
|
||||
#define TFT_BKL_DUTY 50
|
||||
|
||||
#include <sys/_stdint.h>
|
||||
#include <sys/_types.h>
|
||||
#include "pins_arduino.h"
|
||||
|
||||
//#include <U8g2lib.h>
|
||||
#include <Arduino_GFX_Library.h>
|
||||
|
||||
#include "display.h"
|
||||
|
||||
Arduino_DataBus *bus = new Arduino_HWSPI( TFT_DC, TFT_CS);
|
||||
|
||||
Reference in new issue
Block a user