karawin / Ka-Radio32

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

##CLI.STOPPED# from addon stop #57

Closed luchino777 closed 6 years ago

luchino777 commented 6 years ago

Hi, compiled with gpio.h changed to get lcd working, on weemos lolin esp32. It works. Now gives me this error: ##CLI.STOPPED# from addon stop everytime it connects, it suddenly stops...

Which addon should I control that's giving this behaviour? Thanks

karawin commented 6 years ago

CLI.STOPPED# from addon stop

is reached when a click is detected on the encoder (a simple push). Check your wires may be?

luchino777 commented 6 years ago

https://www.hackster.io/johnnyfrx/esp32-with-integrated-oled-wemos-lolin-getting-started-07ac5d no cables.... it's a board with oled, esp32 Thanks

karawin commented 6 years ago

By default the encoder uses // Encoder knob //-------------

define PIN_ENC_A GPIO_NUM_16 // CLK

define PIN_ENC_B GPIO_NUM_17 // DT

define PIN_ENC_BTN GPIO_NUM_5 // SW

Try to wire the PIN 5 to vcc. Check for conflicting GPIO.

luchino777 commented 6 years ago

this is my actual gpio.h....

Maybe in the GPIO_NUM_5 the problem?


// Encoder knob //-------------

define PIN_ENC_A GPIO_NUM_16 // CLK

define PIN_ENC_B GPIO_NUM_17 // DT

define PIN_ENC_BTN GPIO_NUM_5 // SW

// I2C lcd (and rda5807 if lcd is i2c or LCD_NONE) //------------------------------------------------

define PIN_I2C_SCL GPIO_NUM_4

define PIN_I2C_SDA GPIO_NUM_5

define PIN_I2C_RST GPIO_NUM_2 // or not used


karawin commented 6 years ago

Sure. Every SDA state change is an encoder Stop.

luchino777 commented 6 years ago

Hi, solved like this: put #define PIN_ENCBTN_GPIO_NUM_15 //SW and it's working..... Only I do not know if 15 GPIO_NUM can be correct... I'm Newbie....


// Encoder knob //-------------

define PIN_ENC_A GPIO_NUM_16 // CLK

define PIN_ENC_B GPIO_NUM_17 // DT

define PIN_ENC_BTN GPIO_NUM_15 // SW

// I2C lcd (and rda5807 if lcd is i2c or LCD_NONE) //------------------------------------------------

define PIN_I2C_SCL GPIO_NUM_4

define PIN_I2C_SDA GPIO_NUM_5

define PIN_I2C_RST GPIO_NUM_2 // or not used

// I2C rda5807 (if lcd is spi) // (removed) //---------------------------- //#define PIN_SI2C_SCL GPIO_NUM_15 //#define PIN_SI2C_SDA GPIO_NUM_27


Luca

karawin commented 6 years ago

Correct, 15 or 27 or ... are free I close this issue. Enjoy