This commit is contained in:
e2002
2022-03-16 14:27:01 +03:00
parent 0d759b1b4f
commit e3689b8753
27 changed files with 2279 additions and 202 deletions

View File

@@ -1,26 +1,36 @@
#ifndef options_h
#define options_h
#define VERSION "0.4.323"
#define VERSION "0.5.010"
/*******************************************************
DO NOT EDIT THIS FILE.
ALL YOUR SETTINGS WILL BE OVERWRITTEN DURING THE UPDATE.
STORE YOUR SETTINGS IN A myoptions.h FILE.
********************************************************/
#if __has_include("myoptions.h")
#include "myoptions.h" // <- write your variable values here
#include "myoptions.h" /* <- write your variable values here */
#endif
/* DISPLAY MODEL
* 0 - DUMMY
* 1 - ST7735
* 2 - SSD1306
* 3 - NOKIA5110
*/
/*******************************************************
The connection tables are located here https://github.com/e2002/yoradio#connection-tables
********************************************************/
#define DSP_DUMMY 0 // without display
#define DSP_ST7735 1 // https://aliexpress.com/item/1005002822797745.html
#define DSP_SSD1306 2 // https://aliexpress.com/item/1005001621806398.html
#define DSP_NOKIA5110 3 // https://aliexpress.com/item/1005001621837569.html
#define DSP_ST7789 4 // use it with the [#define TFT_INVERT false] option https://aliexpress.com/item/32960241206.html
#define DSP_SH1106 5 // https://aliexpress.com/item/32683094040.html
#define DSP_1602I2C 6 // https://aliexpress.com/item/32305776560.html
#ifndef DSP_MODEL
#define DSP_MODEL 1
#define DSP_MODEL DSP_DUMMY
#endif
/*
* The connection tables are located here https://github.com/e2002/yoradio#connection-tables
*/
/* TFT DISPLAY */
#ifndef TFT_CS
#define TFT_CS 5
@@ -98,6 +108,15 @@
#ifndef BTN_INTERNALPULLUP
#define BTN_INTERNALPULLUP true
#endif
#ifndef BTN_LONGPRESS_LOOP_DELAY
#define BTN_LONGPRESS_LOOP_DELAY 200 // delay between calling DuringLongPress event
#endif
#ifndef BTN_CLICK_TICKS
#define BTN_CLICK_TICKS 300
#endif
#ifndef BTN_PRESS_TICKS
#define BTN_PRESS_TICKS 500
#endif
/* ESP DEVBOARD */
#ifndef LED_BUILTIN
@@ -111,10 +130,12 @@
#ifndef TFT_CONTRAST
#define TFT_CONTRAST 55 // Nokia 5110 contrast
#endif
#ifndef TFT_INVERT
#define TFT_INVERT true // invert the display colors (usually true)
#endif
#ifndef VOL_STEP
#define VOL_STEP 1 // Encoder vol step
#endif
#ifndef MUTE_PIN
#define MUTE_PIN 255 // MUTE Pin
#endif
@@ -199,5 +220,4 @@ INITR_REDTAB
#define IR_CODE_AST 0xFF42BD
#endif
#endif