B4R Question SH1106 LCD Display and ESP2688 Issues

Cableguy

Expert
Licensed User
Longtime User
Hi Guys

This is my Code:
B4X:
Sub Process_Globals
    Public Serial1 As Serial
    Private LCD As AdafruitSH1106  
    Private ESP As ESP8266
    Public RegistrationStatus As Bool
End Sub

Private Sub AppStart
    Serial1.Initialize(115200) 'This is the Hardware Serial used by the IDE for Logging
    LCD.InitializeI2C(4, 0x3c)
End Sub

And Here is what it logs:
B4X:
B4R Version: 2.20
Parsing code.    (0.00s)
Compiling code.    (0.01s)
Building project    (0.11s)
Compiling & deploying Ino project (WeMos D1 R2 & mini - COM4)    Error
Loading configuration...
Initialising packages...
Preparing boards...
Verifying...
E:\B4X\LaserControler\Objects\bin\sketch\Adafruit_SH1106.cpp:29:26: fatal error: avr/pgmspace.h: No such file or directory
 #include <avr/pgmspace.h>
                          ^
compilation terminated.
exit status 1

This seems to be a Lib problem (as opposed to code).
The SSD1306 lib does not produce any errors!
So.... HELP???
 
Last edited:

candide

Active Member
Licensed User
i tried to build a wrapper for library from https://github.com/rene-mt/esp8266-oled-sh1106/
i am not sure it is working well because we have to manage wrapper with 2 libraries and at last we have 2 types of callback not easy to manage.

Original project from Arduino to test this library was adapted to B4X to test wrapper for B4R.

Compilation of this B4R project is OK, but now we need tests with SH1106 and i don't have one.

if someone want to try and give feedback he will be welcome
 

Attachments

  • rSH1106.zip
    184.1 KB · Views: 178
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
i tried to build a wrapper for library from https://github.com/rene-mt/esp8266-oled-sh1106/
i am not sure it is working well because we have to manage wrapper with 2 libraries and at last we have 2 types of callback not easy to manage.

Original project from Arduino to test this library was adapted to B4X to test wrapper for B4R.

Compilation of this B4R project is OK, but now we need tests with SH1106 and i don't have one.

if someone want to try and give feedback he will be welcome
I will try to test it this evening or tomorrow night.
Thanks
 
Upvote 0

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
ESP32

1641510908162.png
 
Upvote 0
Top