karawin / Ka-Radio32

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

Change gpio pins for ssd1306 #55

Closed luchino777 closed 5 years ago

luchino777 commented 6 years ago

Hi, I discovered that I2c pins on my esp32 wemos lolin, are different from the standard configuration of pins... is there a way to change them without compiling? Is it correct to changhe pins on the file gpio.h? Thanks! Luca

karawin commented 6 years ago

For now you need to change the gpio.h In a future release this will be configurable in a separate partition to enjoy the standard OTA.

luchino777 commented 6 years ago

That's ok! changed in gpio.h, compiled and working... Only problem now is the lcd shows 1 pixel right, as reported here: https://github.com/karawin/Ka-Radio32/issues/15 but that solution not working...

Luca

karawin commented 6 years ago

The only difference between both lcd is this shift of one pixel, so the only solution is the command sys.lcd("1") and reset one time.

Or try `// Black&White //I2C

define LCD_I2C_SH1106 0 //128X64

define LCD_I2C_SSD1306 1 //128X64

define LCD_I2C_SSD1309 2 //128X64

define LCD_I2C_SSD1325 3 //128X64

define LCD_I2C_SSD1306NN 4 //128X64

define LCD_I2C_SSD1309NN 5 //128X64

define LCD_I2C_SSD1306UN 6 //128x32

`

sys.lcd("4")

karawin commented 5 years ago

No news? I will close it. reopen if needed.

luchino777 commented 5 years ago

Excuse Me!!!!

Everithing correct with the changes I made....

Thanks a lot for support...

Luca Bruno

Il giorno lun 26 nov 2018 alle ore 13:51 KaraWin notifications@github.com ha scritto:

No news? I will close it. reopen if needed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/karawin/Ka-Radio32/issues/55#issuecomment-441628015, or mute the thread https://github.com/notifications/unsubscribe-auth/AICPAnHnIG-Jvgkl9gRjOjafaZApL6HDks5uy-PRgaJpZM4X-m1z .