Digole UART/I2C/SPI Display Library

Sorry to revive this topic :wink:

I’ve just got a digole 160x128 displays, did this library make it into the libraries collection in the web IDE ? In which case what is it called ??
If not then do we just need to add the .h and .cpp files “manually” in the web IDE ?

@mala, the library is on on the web IDE so yes, you will need to copy the .cpp and .h files manually. I have an updated library with with extras that I will be posting on my github soon. In the meantime, you can use the one @timb and I worked on here.

Will you be using the display in SPI mode?

@peekay123 thank you… I have been trying to compile in the web IDE with the files from @timb github library.
But it’s throwing a load of errors, most likely because I don’t know what I am doing, this being the first time I’ve tried to manually add anything into the web IDE and using this library.

What i’ve done so far is create a new project, add .h and .cpp files using the little + symbol, then copied the DigoleSerialDisp.h and DigoleSerialDisp.cpp into the relevant files in the IDE.
Then copied DigoleSerialDisp_demo.cpp into my project, I’ve tried compiling with either SPI, Ic2 or uart. by un-commenting the relevant parts in the demo… but I get build errors every time.

I get the feeling I’m doing something really stupid here ! :smile:
I do intend to use SPI eventually… when I can get it to compile.

@mala, I’ll take a look a get back to you a bit later today :smile:

@mala, I posted the latest and greatest DigoleGeo library HERE. You can copy the files to tabs in the web IDE and it should compile without issues. By default, the demo and library are setup for a 160x128 Color display. :stuck_out_tongue:

3 Likes

@peekay123 you are a star! I will put your name in (OLED) lights :stuck_out_tongue_winking_eye:

Compiled. loaded and ran with the random shapes displayed first time
Right, time to put some coffee on and start playing

1 Like

@mala Could you post a link from where you got the display? Or PM me? Thanks!

@bartjenniskens, the displays are from Digole :stuck_out_tongue:

1 Like

as @peekay123 posted they are from Digole, and I can highly recommend them, the colour OLED arrived absurdly fast… only 4 days from Canada to UK !

1 Like

I get errors if I copy-pase to WEB-IDE demo code

@ryotsuke, which code are you copy-pasting to the web IDE? Which Digole display are you using?

Recent github one. I located both errors.
Demo code uses digole.begin() but UART .h declaration is void begin(displayDims size), there is no displayDims mentions anywhere but in this line, so changing .h file to void begin(void) makes it compile
Demo code uses DigoleSerialDisp digole(115200); and it should be DigoleSerialDisp digole(&Serial1, 115200); to work

@ryotsuke, when you “recent github one”, was that off my repo? Mine needs a slight fix in the demo for the include path. Timothy’s is somewhat dated and he is not longer maintaining it. Nonetheless, glad you got it working!

By recent I mean one in top messag by @timb. Perhaps it(post) needs updating.

@ryotsuke, @timb is no longer involved and is not maintaining the library. Timothy and I worked on the original. I’ll create an IDE version of my updated library and post it. Thanks for the heads up! BTW, Digole just introduced a new touch screen version of their color LCD displays. Check it out!

Sorry to revive this thread again.

From the help here, I did eventually create a fully working system with menu using the Digole 16x2 LCD display

in UART mode/connection, this works really nicely but I thought I would try and pimp the system up and use my Digole full colour OLED Display which is also connected in UART mode… I get the most horrendous flickering with my code on this OLED.
Even with code stripped right down to test with just a couple of print lines and delays between I still get flicker
Have tried changing Baud rate right down as far as 9600…but still no luck.
Also tried it on an Arduino micro and have exactly the same problem

Has anyone got any ideas or seen anything similar ?

Cheers,
mala

@mala, there could be a few reasons for the flicker, especially if you are using clearScreen() a lot instead of selective area fills. I have one of those displays. If you can share your code, I would be glad to take a look :smiley:

2 Likes

Hi @peekay123 peeKay

I learnt the lesson with clearScreen() so not using it except in setup after the display starts up, so I can get rid of the digole start screen.
Instead I’m using a little “blanking” string of spaces to clear areas where there are variables that are frequently updated as user selects a value.

It will take a while for me to get code sample together as I had moved this project over to a arduino micro as I needed more i/o and had no real need for wi-fi. So I also am using just the arduino library "DigoleSerial"
supplied by digole not your DigoleGeo library.

more soon…

@mala, I have used selective area fills to erase areas. I will have to benchmark which is faster (fill vs blanks). There is a new library from Digole due to the new larger color LCD displays which also include touch (!) I will be porting the geometry extensions to this new library since the display coordinates now require two bytes instead of one. Other members have voiced interest in a menu system so sharing yours would be great! :smiley:

@peekay123 I am using the menubackend library at the moment and in reality only about 6 of the functions in it… so nothing special.
Having just got the spark out of a draw to sort this code , the damn thing won’t connect to my wifi now!

I may be some time…