karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
525 stars 155 forks source link

M5Stack ILI9341 rather not work #27

Closed Kabron287 closed 6 years ago

Kabron287 commented 6 years ago

I configured addon.h and gpio.h as following:

**#define LCD_COLOR 128 //0x80

define LCD_SPI 194 //0x40

define LCD_I2C 0

define LCD_NONE 255**

**#define PIN_LCD_CS GPIO_NUM_14 //CS

define PIN_LCD_A0 GPIO_NUM_27 //A0 or D/C

define PIN_LCD_RST GPIO_NUM_33 //Reset RES RST or not used`**

compiled OK, stations receive OK **sys.lcd

LCD is 194#**

but after start I see very very slowly LCD filling with light blue and nothing more.

UPD: With WROVER-KIT tested ILI9341 and SSD1351. In both cases the same bug, see attachment. display_bug

karawin commented 6 years ago

You need to reassign gpio in conflict with the vs1053 even if not used. Dont touch to the addon.h file. use sys.lcd("197") to set it one time.

Kabron287 commented 6 years ago

M5STACK I modified **//#define PIN_NUM_XDCS GPIO_NUM_33

define PIN_NUM_XDCS GPIO_NUM_3**

nothing changed. WROVER I see no conflicts with vs1053 and LCD(OLED) initialization and primary output flows normally, but station parameters results in one pixel line. Here is my gpio.h gpio.h.txt

karawin commented 6 years ago

/ SPI lcd //--------- // HSPI pins +

define PIN_LCD_CS GPIO_NUM_22 //CS

define PIN_LCD_A0 GPIO_NUM_21 //A0 or D/C

define PIN_LCD_RST GPIO_NUM_18 //Reset RES RST or not used

// IR Signal //-----------

define PIN_IR_SIGNAL GPIO_NUM_21 // Remote IR source

// I2S DAC or PDM output //-----------------------

define PIN_I2S_LRCK GPIO_NUM_25 // or Channel1

define PIN_I2S_BCLK GPIO_NUM_26 // or channel2

define PIN_I2S_DATA GPIO_NUM_22

Conflict on 21 and 22 and may be others. Sorry no time to detail all. Best to draw a scheme with all gpio to see the problem