display connection

This commit is contained in:
e2002
2022-02-07 16:47:38 +03:00
parent 7d3de5eb2a
commit 02fb18fcfd
3 changed files with 17 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ Three tact buttons or Encoder or all together
| ------ | ------ | | ------ | ------ |
| GND | GND | | GND | GND |
| VIN | +5v | | VIN | +5v |
| DOUT(DIN) | 22* | | DOUT(DIN) | 27* |
| BCLK | 26* | | BCLK | 26* |
| LRC(WSEL) | 25* | | LRC(WSEL) | 25* |

View File

@@ -7,19 +7,13 @@
#include "options.h" #include "options.h"
#include "network.h" #include "network.h"
//#define DSP_DUMMY #if DSP_MODEL==0
#define DSP_ST7735
//#define DSP_SSD1306
#ifdef DSP_DUMMY
#include "src/displays/displayDummy.h" #include "src/displays/displayDummy.h"
DisplayDummy dsp; DisplayDummy dsp;
#endif #elif DSP_MODEL==1
#ifdef DSP_ST7735
#include "src/displays/displayST7735.h" #include "src/displays/displayST7735.h"
DisplayST7735 dsp; DisplayST7735 dsp;
#endif #elif DSP_MODEL==2
#ifdef DSP_SSD1306
#include "src/displays/displaySSD1306.h" #include "src/displays/displaySSD1306.h"
DisplaySSD1306 dsp; DisplaySSD1306 dsp;
#endif #endif

View File

@@ -1,7 +1,14 @@
#ifndef options_h #ifndef options_h
#define options_h #define options_h
#define VERSION "0.4.181" #define VERSION "0.4.182"
/* DISPLAY MODEL
* 0 - DUMMY
* 1 - ST7735
* 2 - SSD1306
*/
#define DSP_MODEL 1
/* /*
* TFT DISPLAY * TFT DISPLAY
@@ -26,7 +33,7 @@
/* /*
* I2S DAC * I2S DAC
*/ */
#define I2S_DOUT 22 // DIN connection #define I2S_DOUT 27 // DIN connection
#define I2S_BCLK 26 // BCLK Bit clock #define I2S_BCLK 26 // BCLK Bit clock
#define I2S_LRC 25 // WSEL Left Right Clock #define I2S_LRC 25 // WSEL Left Right Clock
/* /*
@@ -46,4 +53,8 @@
*/ */
#define LED_BUILTIN 2 #define LED_BUILTIN 2
#if __has_include("myoptions.h")
#include "myoptions.h"
#endif
#endif #endif