OLED Scrolling Display

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: OLED Scrolling Display

#51 Post by costo » 23 Aug 2016, 13:02

@ jsilver

Try to remove some plugins you do not use, so you have more free memory and your device will not crash.

namirda
Normal user
Posts: 53
Joined: 22 Jan 2016, 17:09

Re: OLED Scrolling Display

#52 Post by namirda » 24 Aug 2016, 10:46

Sorry Jon - no idea.

I've never seen a compiler warning like that - does it come from the normal Arduino IDE or are you using VS?

I have just downloaded R124 to give it a try and it seems to work OK for me.

Does the same config run properly on an earlier version of ESPEasy but not on R124?

Costo seems to think it is a shortage of memory and he may well be right - both MQTT Import and Framed OLED are memory hogs! Do you have a lot of other active plugins in your sketch?

Sorry I can't be more help - I will play with it a bit more and get back to you if I find anything.

N

timsson
Normal user
Posts: 77
Joined: 25 Mar 2016, 22:00

Re: OLED Scrolling Display

#53 Post by timsson » 11 Sep 2016, 15:42

... a litte bug:
If you use the same topic twice or 3 time - the oled show nothing :(
(i use openhab mqtt - R131, frameOled v0.4)
-----
Line 1: [sys#wifi]
Line 2: [sys#uptime]
Line 3: [sys#freeram]

uhrheber
Normal user
Posts: 22
Joined: 26 Sep 2016, 14:03

Re: OLED Scrolling Display

#54 Post by uhrheber » 10 Oct 2016, 15:29

namirda,

I can confirm that it works. Wemos D1 Mini, Wemos D1 Oled shield, BME280. Display cycles through temperature, humidity, air pressure and time.

The only issue is, that the Wemos Oled display is smaller than the normal ones, it has only 64 x 48 pixels.
The standard Oled plugin has now an option for those small displays, do you think you could add that also in your plugin?

Many thanks
Uhrheber

NightBird
Normal user
Posts: 24
Joined: 02 Dec 2016, 17:54

Re: OLED Scrolling Display

#55 Post by NightBird » 02 Dec 2016, 18:15

Hi,

I try to compile the FrameOLED plugin for using it with a SH1106 based display.
No success at this point :cry:

I'm able to compile the *regular* source (I tried with R147 and it seems to work : no errors when compiled)
I'm a perfect newbie in the Arduino world, and I don't know how to modify the source for that purpose.

Is there anybody to help for adding SH1106 support to that plugin ?
ESPEasy running on ESP-12F self-made modules (with various sensors) and talking to Domoticz (hosted on RPi2)

bart_l
Normal user
Posts: 1
Joined: 08 Dec 2016, 13:21

Re: OLED Scrolling Display

#56 Post by bart_l » 08 Dec 2016, 13:23

Hello,

Maybe someone could post a link to compilled firmware with this plugin?

Thanks
Bart

smolz
Normal user
Posts: 2
Joined: 12 Dec 2016, 19:24

Re: OLED Scrolling Display

#57 Post by smolz » 12 Dec 2016, 19:25

bart_l wrote:Hello,

Maybe someone could post a link to compilled firmware with this plugin?

Thanks
Bart

Ohh man that would be great! Please!

namirda
Normal user
Posts: 53
Joined: 22 Jan 2016, 17:09

Re: OLED Scrolling Display

#58 Post by namirda » 14 Dec 2016, 05:40

Hi,

Give this a try....

https://dl.dropboxusercontent.com/u/357 ... edOLED.bin

This is ESP Easy R147 including MQTTImport and FramedOLED compiled for 4Mb Flash with 1Mb SPIFFS.

I don't understand where the problem is to compile this yourself??

Good luck.

n

NightBird
Normal user
Posts: 24
Joined: 02 Dec 2016, 17:54

Re: OLED Scrolling Display

#59 Post by NightBird » 14 Dec 2016, 19:22

Hi all,

@ namirda

I love your plugin. I use it as replacement for the 'standard' OLED plugin.

I would like to use it with a SH1106 based 1.3" OLED, but it doesn't work. Garbage on screen, only few lines on top & bottom are readable.
I'm able to compile the source code, butI don't know how to modify your code to make it work with that kind of display.

Do you have time to help me ?
ESPEasy running on ESP-12F self-made modules (with various sensors) and talking to Domoticz (hosted on RPi2)

namirda
Normal user
Posts: 53
Joined: 22 Jan 2016, 17:09

Re: OLED Scrolling Display

#60 Post by namirda » 14 Dec 2016, 20:07

Hi NightBird,

It's not so much that I don't have time - it's more that I don't have a SH1106 device to play with!

A quick Google search tells me that they are very similar to the SSD1306 and there is at least one library out there which would probably work for you. For example, take a look at

https://github.com/wonho-maker/Adafruit_SH1106

There is also a discussion on the differences between the two here

https://forum.arduino.cc/index.php?topic=256374.0

I'm sure you can make it work - it would make a nice little learning exercise. If not then just buy a 1306 - they are so very cheap!!

Good luck

n

NightBird
Normal user
Posts: 24
Joined: 02 Dec 2016, 17:54

Re: OLED Scrolling Display

#61 Post by NightBird » 14 Dec 2016, 23:34

Thanks, I will try to play with that stuff.

I'm not a developer (especially on Arduino platform), but if I can get success, I will share the code here, if someone is interested ;)
I already have some SSD1306 displays, but these are 0.96", which is a little small. Unfortunately, the 1.3" models seem to use only the SH1106 controller (and are cheap, too !)

So I will do my best...
ESPEasy running on ESP-12F self-made modules (with various sensors) and talking to Domoticz (hosted on RPi2)

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: OLED Scrolling Display

#62 Post by costo » 22 Dec 2016, 01:42

NightBird, I modify the original OLED display for use with SH1106 OLED.

SH1106 has 4 more rows, it is a 132*64 OLED.
Screen has to be properly cleared, all 132 rows, which must be done like this in the OLED plugin:

change line 415 : for (i = 0; i < 128; i++) //clear all COL
into this line 415: for (i = 0; i < 132; i++) //clear 132 COL

The first 2 rows are normally not visible, causing misformed characters therefor the text has to shift 2 pixels to the right by:

change line 473 : Plugin_023_sendcommand(0x00 + (8 * col & 0x0f)); //set low col address
into this line 473: Plugin_023_sendcommand(0x02 + (8 * col & 0x0f)); //set low col address + 0x02 pixels offset

I guess this should work and maybe this can be done in the scrolling OLED plugin too.

NightBird
Normal user
Posts: 24
Joined: 02 Dec 2016, 17:54

Re: OLED Scrolling Display

#63 Post by NightBird » 26 Dec 2016, 17:22

Hi Costo,

thank you very much for that tip. I will try by myself.
ESPEasy running on ESP-12F self-made modules (with various sensors) and talking to Domoticz (hosted on RPi2)

jongerenchaos
Normal user
Posts: 11
Joined: 21 Jan 2016, 22:28

Re: OLED Scrolling Display

#64 Post by jongerenchaos » 05 Jan 2017, 20:53

Thanks for this scrolling option it works OK with one display! When you add another second OLED display (3C & 3D) it doesn't work and one display displayed only the WIFI logo. Can you fix this so that everyone can use two of this displays?

Fasthook
Normal user
Posts: 2
Joined: 15 Jan 2017, 16:59

Re: OLED Scrolling Display

#65 Post by Fasthook » 21 Jan 2017, 14:29

Namirda,

Thank you for this plugin, I used it for my CO2 / Temperature / Humidity meter to create a local display. Now it is no longer required to pick up the phone and look at the values in Domoticz :D

rlust
Normal user
Posts: 7
Joined: 13 Jan 2017, 20:30

Re: OLED Scrolling Display

#66 Post by rlust » 23 Jan 2017, 15:24

Drum wrote:Okay, I am trying this on the "adafruit Oled feather" and it works better than the standard plug in. It is 128 x 32 so with the Header and footer you can only get 1 line in and be able to read it. It has 3 buttons on the board, I tested "C" which goes to GPIO2 and it works perfect. On this display the header is wasted, you can't read it at all. If i could figure out a way to remove the header and footer I would check to see if 2 lines would fit, and maybe insert the header info as a scrolling divider between the frames but drop the footer altogether.

One other interesting difference, everything is upside down... On the adafruit site they show the buttons on the left, but with this plugin, they are on the right. Not a problem just different.

Now to see if I can get the 8 channel PWM controller for it to work as well.
Have you been able to get the Feather OLED working with 2 lines of display and scrolling header?

joedi
Normal user
Posts: 2
Joined: 02 Feb 2017, 09:50

Re: OLED Scrolling Display

#67 Post by joedi » 02 Feb 2017, 11:37

A feature request: it would be great if it was possible to send pixel data to the OLED display.
Plain text is already great, but having the option to draw icons/images through web commands would be a wonderful extension.

martie
Normal user
Posts: 2
Joined: 12 Feb 2017, 13:37

Re: OLED Scrolling Display

#68 Post by martie » 12 Feb 2017, 13:45

Got the scrolling display working fine, i like te big fonts !
However i want to be able to change / add a message to the display via a linux machine in this network.
I am able to turn the display on/off via the curl command, sending a text via "curl IP_esp_easy/control?cmd=oled,1,1,text" does show the text in small font. How can i send this text to be displayed in the big font?
Hope someone can help me ...

martie
Normal user
Posts: 2
Joined: 12 Feb 2017, 13:37

Re: OLED Scrolling Display

#69 Post by martie » 14 Feb 2017, 21:13

i just figured it out, maybe it helps others so i post it here:

Note the name you give the OLED display on the Devices page, in my case i named it "Display".

To change a text on line 4 via http:
http://IP_number_ESP_device/control?cmd=Display,4,text_without_spaces

To switch off :
http://IP_number_ESP_device/control?cmd=Display,off

To switch on:
http://IP_number_ESP_device/control?cmd=Display,on

Be aware that every update of text is done via a write procedure on the Flash memory of the module, as you know flash memory has a limit on the times you can write to it.
Have FUN with this nice product!

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: OLED Scrolling Display

#70 Post by Drum » 20 Feb 2017, 09:40

rlust wrote:
Drum wrote:Okay, I am trying this on the "adafruit Oled feather" and it works better than the standard plug in. It is 128 x 32 so with the Header and footer you can only get 1 line in and be able to read it. It has 3 buttons on the board, I tested "C" which goes to GPIO2 and it works perfect. On this display the header is wasted, you can't read it at all. If i could figure out a way to remove the header and footer I would check to see if 2 lines would fit, and maybe insert the header info as a scrolling divider between the frames but drop the footer altogether.

One other interesting difference, everything is upside down... On the adafruit site they show the buttons on the left, but with this plugin, they are on the right. Not a problem just different.

Now to see if I can get the 8 channel PWM controller for it to work as well.
Have you been able to get the Feather OLED working with 2 lines of display and scrolling header?

No, not yet. I have not had time to get back in to this for a couple of months. The header needs to go, and for the standard plugin the font is too big. Hopefully I can get back into this next month.

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#71 Post by starfish » 21 Feb 2017, 01:43

wow, finally I got it, this plugin is even better than I thought. glad, that the MQTT-import plugin is no longer needed, as I have no success in compiling that one, no matter, what combination of arduino and esp.package I am using.

writing the strings works fine, but I can not switch on / off the OLED using MQTT, as shown in option b) below: taskname,on or off.
is this by design?
namirda wrote:
OK - I have just uploaded yet another new version of the scrolling display to the playground which includes a write option.

The command syntax is either:

a) tskname,Line,String - where tskname is the name you have given to the scrolling oled task,
Line is the line number which must be an integer between 1 and 12,
String is the string to be displayed.

b) taskname,on or taskname,off To switch the display on or off

You can send the command using either http or mqtt or even via the webserver. To use mqtt, you should publish to the normal subscription topic of your esp followed by /cmd - e.g. /ESP01/cmd.

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#72 Post by starfish » 24 Feb 2017, 17:44

Success - using newest espeasy R148 from github and Arduino IDE 1.8.1 with esp8266 board package v. 2.3.0
P210_MQTTImport.ino is already provided and works out of the box. P205_Frame_OLED.ino together with Extra_Utilities.ino compiles without error. :lol: :lol:
removed all arduino remainings on PC and did clean portable install. moved libraries from old R120 and esp8266-oled-ssd1306 lib from playground to portable/sketchbook/libraries and R148 as well as 205_Frame_OLED.ino and Extra_Utilities.ino to portable/sketchbook/ESPEasy

velja
Normal user
Posts: 29
Joined: 08 Feb 2017, 08:07

Re: OLED Scrolling Display

#73 Post by velja » 14 Mar 2017, 20:18

@starfish;
Can you make OTA version R148 (or R147) with P205_Frame_OLED.ino for 1M and 4M flash version for us wich not familiar with Arduino IDE?

Thanks

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#74 Post by starfish » 16 Mar 2017, 17:34

velja wrote: 14 Mar 2017, 20:18 @starfish;
Can you make OTA version R148 (or R147) with P205_Frame_OLED.ino for 1M and 4M flash version for us wich not familiar with Arduino IDE?

Thanks
tried to upload - but apparently the zip file is too large ... (300kb)

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#75 Post by starfish » 16 Mar 2017, 17:55

now with split 7z files .... remove the .7z at the end so that .001 / .002 / .003 is left and try to join them whit 7zip - hope it works
ESPEasy.ino.generic.7z.001.7z
(100 KiB) Downloaded 184 times
ESPEasy.ino.generic.7z.002.7z
(100 KiB) Downloaded 262 times
ESPEasy.ino.generic.7z.003.7z
(71.04 KiB) Downloaded 261 times
this one is for 1M

try this https://github.com/letscontrolit/ESPEas ... 0-dev7.zip inside the zip look out for
ESPEasy_v2.0.0-dev7_normal_1024.bin and ESPEasy_v2.0.0-dev7_normal_4096.bin this should do the job too - scrolling oled is included but I didnt test it myself. sorry, bad idea http and mqtt string upload to the 12 lines in framed oled has been removed by the dev's for reaons. use v. 148 or below.
Last edited by starfish on 06 Jul 2017, 05:36, edited 2 times in total.

velja
Normal user
Posts: 29
Joined: 08 Feb 2017, 08:07

Re: OLED Scrolling Display

#76 Post by velja » 16 Mar 2017, 18:05

Thanks, Is it for 1M or for 4M flash?

velja
Normal user
Posts: 29
Joined: 08 Feb 2017, 08:07

Re: OLED Scrolling Display

#77 Post by velja » 16 Mar 2017, 20:06

Yes, it works! I use v2.0.0.0.dev7 for 4M flash, it show in drop menu framed OLED, I configure everything and it works. Problem is difficult global sync. I think much more harder to syncing two units than earlier.

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#78 Post by starfish » 16 Mar 2017, 20:52

the 7zip files are R148 1M only the newest dev. Version (link) has both 1M and 4M . But please note, that I didnt test OTA - I was flashing them all using the USB converter and Arduino IDE and the Platformio toolchains. dont forget that 2.0.0 is in early stage.

velja
Normal user
Posts: 29
Joined: 08 Feb 2017, 08:07

Re: OLED Scrolling Display

#79 Post by velja » 16 Mar 2017, 21:17

I try second unit with file you send me and it's work through OTA. Problem is with V 2.0.0.0 dev7 and Global sync. I use as I use it before but only BME280 sinc. Earlier, I left blank task on ESP with display and it been populated after few minutes. Now it doesn't work.

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#80 Post by starfish » 17 Mar 2017, 11:04

@velja sorry dont know your setup (displaying sensor data from another 8266-unit?) I am displaying data sent frame by frame from the linux home control system by mqtt.
Image
do you need 4 M-binaries of the 148 version? (what spiffs size?) Concerning the espeasy code you have to contact the authors.
sorry, in V. 2 (mega) http and mqtt string upload to the 12 lines in framed oled has been removed by the dev's for reaons. use v. 148 or below.
Last edited by starfish on 06 Jul 2017, 05:41, edited 1 time in total.

velja
Normal user
Posts: 29
Joined: 08 Feb 2017, 08:07

Re: OLED Scrolling Display

#81 Post by velja » 17 Mar 2017, 11:46

Finally, I syncing devices after countless restarts. I hope that developers read this posts and inprove that feature in future. Thank you for helping me.

orbitcoms
Normal user
Posts: 28
Joined: 01 Apr 2017, 06:12

Re: OLED Scrolling Display

#82 Post by orbitcoms » 05 Apr 2017, 08:41

Would someone mind please explaining the steps to compile version 148 and use the latest playground plugin? I want to use the thermocouple plugin but cannot get the Arduino compiled version to run or figure out what I need to do to build it to include the thermocouple plugin.

I downloaded Arduino 1.8.1 as zip file and extracted it.
Then I changed the folder name and navigated to the folder
Then I created a folder called "Portable" But I am not sure what is supposed to happen with portable folder, there is no more mention of it in the steps on wiki?

I opened Arduino and installed v 2.3.0 of the esp8266 by esp8266 community
then I selected the libary files from scr folder in version 147 build and copied them into the Arduino libraries folder (I downloaded version 148 but only have binaries)
I next opened Arduino and navigated to the source ESPEASY folder and opened EASEasy.ino

I could not find the commented lines any #define_PLUGIN_BUILD_xxx lines in the code at all.

I have ESP8266-07 so I chose generic esp8266, set Memory to 1M with 128k SPIFFS

When I compile I get error
No such file or directory #include <RCSwitch.h>
and
Multiple libraries were found for "servo.h"

Thanks in advance

Dave

orbitcoms
Normal user
Posts: 28
Joined: 01 Apr 2017, 06:12

Re: OLED Scrolling Display

#83 Post by orbitcoms » 05 Apr 2017, 08:52

Further to my last post. This is the error report after attempting to compile in Arduino 1.8.2 (ESPEasy v 147).

D:\General Resources\GenTemp 3rd Gen Development\ESP\ESP Easy\EspEasy R147\Source\ESPEasy\_P111_RF.ino:16:22: fatal error: RCSwitch.h: No such file or directory
#include <RCSwitch.h>
^
compilation terminated.

Multiple libraries were found for "Servo.h"
Used: D:\Scratchpad\arduino-1.8.2-ESP\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
Not used: D:\Scratchpad\arduino-1.8.2-ESP\libraries\Servo
exit status 1
Error compiling for board Generic ESP8266 Module.

I thought the "Portable" folder was doing nothing but Arduino IDE seemed to automatically include it but now reports duplicate.

megamarco83
Normal user
Posts: 168
Joined: 13 Apr 2017, 23:09

Re: OLED Scrolling Display

#84 Post by megamarco83 » 13 Apr 2017, 23:20

hi, i have two questions related to rotation display
i'm using espmega2.0 dev7
i tested the rotation display and works fine.
but now i would like to show on rotating display value that are taken from external script, for example a script like that:

Code: Select all

#!/bin/sh
### lcd
curl -s http://192.168.0.193/control?cmd=oledcmd,clear

# import consumption row n°2
x2=`sudo poolerconsumi 1 power | egrep "^1\(" | grep "*W)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
curl -s "http://192.168.0.193/control?cmd=oled,2,1,Consumi+$x2+W"

# import live production row n°3
x1=`sudo curl http://localhost/metern/comapps/pool123.php?cmd=1 | egrep "^2\(" | grep "*W)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
curl -s "http://192.168.0.193/control?cmd=oled,3,1,Produz.+$x1+W"

# import live row n°4
x3=`sudo eflowlive whin | egrep "^3\(" | grep "*W)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
curl -s "http://192.168.0.193/control?cmd=oled,4,1,Prelievi+$x3+W"

# import live row n°5
#x4=`sudo eflowlive whout grep "^4\(.*W\)" | egrep -o '[0-9]*(\.)?[0-9]*\*' | egrep -o '[0-9]*(\.)?[0-9]*'`
#curl -s "http://192.168.0.193/control?cmd=oled,5,1,Immisio+$x4+W"
if i lunch this script, it works, i'm able to see the result but not displayed with frame rotation, but all the value on one page.
how i can see for example n°2 row on every page and using "big characters as possibile" ??


second question:
i heve 2 display oled one 0.96" and one 1.3"
to use the 1.3" i have modify the surce code as sugested in a previous pos
changing the line:
change line 415 : for (i = 0; i < 128; i++) //clear all COL
into this line 415: for (i = 0; i < 132; i++) //clear 132 COL
it works perfect but only with "standard oled plugin" with framed plugin i'm able to see nothing, all rows are displayed with wrong characters ( i mean also compiling the rows on espmega not using my external script)
i see the code of framed plugin but there are't the value like before that i could modify. how i can solve?
with 0.96" oled there are no issue
thanks so mutch!

artic1980
Normal user
Posts: 4
Joined: 09 Apr 2017, 17:57

Re: OLED Scrolling Display

#85 Post by artic1980 » 14 Apr 2017, 07:32

Good morning I'm trying to figure out how to compile the plugin but I have these errors


Arduino:1.8.2 (Windows 10), Scheda:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (512K SPIFFS), ck, Disabled, None"

C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P012_LCD.ino: In function 'boolean Plugin_012(byte, EventStruct*, String&)':

_P012_LCD:162: error: 'class LiquidCrystal_I2C' has no member named 'init'

lcd->init(); // initialize the lcd

^

C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P036_FrameOLED.ino: In function 'boolean Plugin_036(byte, EventStruct*, String&)':

_P036_FrameOLED:239: error: no matching function for call to 'SSD1306Wire::init(int&)'

display->init(OLED_address); // call to local override of init function

^

C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P036_FrameOLED.ino:239:35: note: candidate is:

In file included from C:\Users\Pepe-Win\Documents\Arduino\libraries\ESP8266_Oled_Driver_for_SSD1306_display/SSD1306Wire.h:31:0,

from C:\Users\Pepe-Win\Documents\Arduino\libraries\ESP8266_Oled_Driver_for_SSD1306_display/SSD1306.h:30,

from C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P036_FrameOLED.ino:21:

C:\Users\Pepe-Win\Documents\Arduino\libraries\ESP8266_Oled_Driver_for_SSD1306_display/OLEDDisplay.h:114:10: note: bool OLEDDisplay::init()

bool init();

^

C:\Users\Pepe-Win\Documents\Arduino\libraries\ESP8266_Oled_Driver_for_SSD1306_display/OLEDDisplay.h:114:10: note: candidate expects 0 arguments, 1 provided

C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P036_FrameOLED.ino: In function 'void display_logo()':

_P036_FrameOLED:428: error: 'WiFi_Logo_width' was not declared in this scope

display->drawXbm(34, 14, WiFi_Logo_width, WiFi_Logo_height, WiFi_Logo_bits);

^

_P036_FrameOLED:428: error: 'WiFi_Logo_height' was not declared in this scope

display->drawXbm(34, 14, WiFi_Logo_width, WiFi_Logo_height, WiFi_Logo_bits);

^

_P036_FrameOLED:428: error: 'WiFi_Logo_bits' was not declared in this scope

display->drawXbm(34, 14, WiFi_Logo_width, WiFi_Logo_height, WiFi_Logo_bits);

^

C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P036_FrameOLED.ino: In function 'void display_indicator(int, int)':

_P036_FrameOLED:446: error: 'activeSymbole' was not declared in this scope

image = activeSymbole;

^

_P036_FrameOLED:448: error: 'inactiveSymbole' was not declared in this scope

image = inactiveSymbole;

^

C:\Users\Pepe-Win\Downloads\ESPEasy_v2.0.0-dev7 (1)\Source\ESPEasy\_P036_FrameOLED.ino: In function 'void display_scroll(String*, String*, int, int)':

_P036_FrameOLED:491: error: 'Dialog_Plain_12' was not declared in this scope

display->setFont(Dialog_Plain_12);

^

exit status 1
'class LiquidCrystal_I2C' has no member named 'init'

Questo report potrebbe essere più ricco di informazioni abilitando l'opzione
"Mostra un output dettagliato durante la compilazione"
in "File -> Impostazioni"

User avatar
Grumpf
Normal user
Posts: 68
Joined: 05 May 2017, 23:45
Location: Namur
Contact:

Re: OLED Scrolling Display

#86 Post by Grumpf » 05 May 2017, 23:50

Nice job! I'm using it with a .96 Oled right now; the Wemos 96x48 disp and with a bit of cheating I managed to make it fit to my needs so thanks a lot. Any intention to adapt it to other Oled like the Wemos shield and the new 32x128 one ? If not I'll try to monkey with the code to the best of my knowledge (hear, learn from the beginning) but if you do intend to make it I'll burn a candle to your altar and geek to other things.

Again: Thanks a lot for your work.

Cheers !

EDiT: 128x32 can be used with some tampering too, I guess updating the plugin to support those two screens should not be a problem.

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: OLED Scrolling Display

#87 Post by toffel969 » 07 May 2017, 12:01

Grumpf wrote: 05 May 2017, 23:50 Nice job! I'm using it with a .96 Oled right now; the Wemos 96x48 disp and with a bit of cheating I managed to make it fit to my needs so thanks a lot. Any intention to adapt it to other Oled like the Wemos shield and the new 32x128 one ? If not I'll try to monkey with the code to the best of my knowledge (hear, learn from the beginning) but if you do intend to make it I'll burn a candle to your altar and geek to other things.

Again: Thanks a lot for your work.

Cheers !

EDiT: 128x32 can be used with some tampering too, I guess updating the plugin to support those two screens should not be a problem.
:D :D :D :mrgreen: :ugeek:
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#88 Post by starfish » 11 May 2017, 23:57

problem solved - see subsequent post.
starfish wrote: 24 Feb 2017, 17:44 Success - using newest espeasy R148 from github and Arduino IDE 1.8.1 with esp8266 board package v. 2.3.0
P210_MQTTImport.ino is already provided and works out of the box. P205_Frame_OLED.ino together with Extra_Utilities.ino compiles without error. :lol: :lol:
removed all arduino remainings on PC and did clean portable install. moved libraries from old R120 and esp8266-oled-ssd1306 lib from playground to portable/sketchbook/libraries and R148 as well as 205_Frame_OLED.ino and Extra_Utilities.ino to portable/sketchbook/ESPEasy
Big disappointment now - tried to make 3 additional setups but couldn´t get them to work. When sending text to frames using mqtt oder html the text ("frame 1") is appended to the first line in small characters. When writing manually to the device config directly, it looks as before. This happens with the 2.0.0.0-dev7 as well.
oled2.jpg
oled2.jpg (24.49 KiB) Viewed 15208 times
different hardware? can´t see difference optically. compiling the sketch doesn´t throw errors. What happened?
quite embarrassing - I created a howto thread elsewhere and now people complaining.
This shows my old units:
oledsmall.jpg
oledsmall.jpg (9.39 KiB) Viewed 15208 times
Last edited by starfish on 12 May 2017, 13:37, edited 1 time in total.

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#89 Post by starfish » 12 May 2017, 13:35

oh boy, looks like the oled-device itself should not be named oled at least with my setup, when using another name normal function is back -> and do not use V. 2 dev versions, as devs removed string upload feature to the 12 lines for some reasons. Up to v. 148 framed oled works.
Last edited by starfish on 06 Jul 2017, 05:08, edited 1 time in total.

HeinzPeter
Normal user
Posts: 1
Joined: 17 May 2017, 12:23

Re: OLED Scrolling Display

#90 Post by HeinzPeter » 17 May 2017, 12:33

Got a weird and bad effect yesterday using the OLED framed plugin.

I played around with values and it looked quite nice. Then the wifi was interrupted and I had to resend my last page. The last four or so fields that where previously empty where filled like this "yyyyyyyyyyyyyyyyyyyyy..." and the last line had some other garbage at the end. I tried to empty them but then all fields contained the "yyy..." crap. After that I couldn't change anything anymore. Trying to save values always brought me back to the list of devices. Trying to set the device empty didn't work either. I had no chance but to hard reset (RX<->TX) the device and reconfigure it from scratch. :cry:

I was using the v2.0.0-dev8 release available from git.

HP

iainmacthai
Normal user
Posts: 1
Joined: 21 May 2017, 16:59

Re: OLED Scrolling Display

#91 Post by iainmacthai » 21 May 2017, 17:05

I had the same problem with the v2.0.0-dev8 normal 4096 version, what i did find was that if you clear the garbage from the 12 text lines, then select the device as system info and save it takes it into that state and at least allows you to delete/unselect the device.

However whenever you try to reconfigure as an oled it populates again with the same garbage, oddly lcd 2004 behaves this way too now. Suspect i will need a complete hard reset.

jirm
Normal user
Posts: 3
Joined: 26 Oct 2016, 21:15

Re: OLED Scrolling Display

#92 Post by jirm » 22 Jun 2017, 07:58

Only for general info,
I suffered the same problem with v2.0.0-dev10 (wemos D1 and 4K normal binary).
Is Issued too at least with v2.0.0.-dev9, and v2.0.0-dev8.
Seems a error raised because some problem (memory lack?) make corrupted memory with ESPEasy firmw (mega v2.0.0) and OLED Framed device management.
Of course in this situations the only safely way I know to assure the problem is gone is with a hard reset the esp8266 (or at least a Restore command on ESPEasy) to sure clean all flash memory.

Regards

starfish
Normal user
Posts: 37
Joined: 16 Feb 2017, 23:46

Re: OLED Scrolling Display

#93 Post by starfish » 06 Jul 2017, 05:56

jirm wrote: 22 Jun 2017, 07:58 Only for general info,
I suffered the same problem with v2.0.0-dev10 (wemos D1 and 4K normal binary).
Is Issued too at least with v2.0.0.-dev9, and v2.0.0-dev8.
Seems a error raised because some problem (memory lack?) make corrupted memory with ESPEasy firmw (mega v2.0.0) and OLED Framed device management.
issue maybe related to this:
in v2 the oled framed module has been crippled in order to avoid flash write operations and memory wear out. try version 148 and framed oled module from playground. (send PM for temporary download link for compiled binary of v.148 including framed oled module for D1 and generic).
Use it at own risk - I am personally using this since half a year now, updating the frames every 30 minutes and no wear out signs until now.

foad62
Normal user
Posts: 6
Joined: 19 Apr 2017, 13:11

Re: OLED Scrolling Display

#94 Post by foad62 » 08 Jul 2017, 15:33

Hello all,
How can I add Farsi/Persian characters to be shown on the display?

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: OLED Scrolling Display

#95 Post by vader » 23 Aug 2017, 11:56

Have a compile error. What's wrong? Any idea?

_P205_FrameOLED:225: error: incompatible types in assignment of 'int' to 'unsigned int [12]'
Settings.TaskDeviceID[event->TaskIndex] = 1; // needs a dummy value
______________________________________^
exit status 1
incompatible types in assignment of 'int' to 'unsigned int [12]'

Regards

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: OLED Scrolling Display

#96 Post by Shardan » 23 Aug 2017, 13:56

vader wrote: 23 Aug 2017, 11:56 Have a compile error. What's wrong? Any idea?

_P205_FrameOLED:225: error: incompatible types in assignment of 'int' to 'unsigned int [12]'
Settings.TaskDeviceID[event->TaskIndex] = 1; // needs a dummy value
______________________________________^
exit status 1
incompatible types in assignment of 'int' to 'unsigned int [12]'

Regards
Which Version of ESPEasy source?
Arduino IDE? Which version?
Platformio?

Are we techs or prophets? ;)

Regards
Shardan
Regards
Shardan

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: OLED Scrolling Display

#97 Post by vader » 23 Aug 2017, 14:47

I was digging a bit in the source code and made this change:

for (byte controllerNr = 0; controllerNr < CONTROLLER_MAX; controllerNr++)
{
Settings.TaskDeviceID[controllerNr][event->TaskIndex] = 1; // needs a dummy value
}

One argument was missing. I don't know if this is correct, but the error message is gone. And that counts... ;)

PS: I use ESPeasy 2.0.0-dev11 and Arduino 1.8.4

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: OLED Scrolling Display

#98 Post by vader » 24 Aug 2017, 19:30

Wow, there is a fat bug in this version (P205 Version 0.4 05-Aug-2016). Or is it a feature? :D The event->TaskIndex is ever 0. Regardless of the position. So you can not store the information (text updates). If I give it a fixed TaskIndex it works. What's wrong? BTW: The orig. plug-in OLED P036 works and the TaskIndex is correct.

Regards

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: OLED Scrolling Display

#99 Post by papperone » 06 Sep 2017, 00:28

I'm not sure I understood why we have 2 plugins (036 in the official repository and 205 in the playgournd) which are supposed to be just one!
the 036 sems to be a simpler versione with no commands to update text, while 205 is outdated (since 1 year) but a quick look at the code seems to have more functionality including ability to send CMD to update text lines via rules (for example!)...

can someone clarify this?
why the 205 is not the official plugin as it contains more features?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

hellgun
Normal user
Posts: 3
Joined: 16 Jul 2017, 12:07

Re: OLED Scrolling Display

#100 Post by hellgun » 12 Sep 2017, 11:12

Hi!

I just bought a Wemos D1 mini and an oled display. Everything works fine with the standard plugins but I'm not completely satisfied. I would very much like to try out this plugin but don't have the possibility right now to build my own binary. Is there anyone here that have a working binary to share with me? It would be of great value for me.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests