Tonight, sorry about the delay guys… My buddy just got around to returning my OLED last night (he was going to do it last week but had some car problems). I’ve got to finish up a couple of things this afternoon, but afterwards I’ll get the Digole stuff all patched up! 
When you use gcc -S, the compiler stops (that’s what -S means) after generating assembler files (*.s) so you can look at them. You should get one .s file for each .c file.
If you want to continue on and compile, you need to run it twice, once with -S and once without.
To get the assembly mixed with the code you need to pass the option to the compiler to generate the listing. You can do that by adding the following line to the makefile at about line # 63
CFLAGS += -Wa,-adhlns=$(addprefix $(BUILD_PATH)/, $(notdir $(addsuffix .lst, $(basename $<))))
This will give you the listing .lst files for each c/c++ file that gets built in the build/obj dir which is I think what your looking for. You may want to change the optimizations to -O0 to make sense of the assembler.
Digole Serial Display Library - Version 005 (02/21/14) - Copyright 2014 Timothy Brown / Digole
- Split into two separate files (.h and .cpp) to work with the new
multiple file feature in the Web IDE. - Added UART (Serial1) Support.
- Added I2C (Wire) Support.
- Added “Demo Code” with instructions on using the library.
New bitmap and sprite handling features coming in the next release!
timb, did you want to add the geometrics stuff to your lib? Also, I added a setScreenOn() and setScreenOff() function as per digole’s documents.
Oh, what about sprites!!?? 
@mattande PERFECT! It even has the C code in the file before the assembly code. This is exactly what I need, thank you!!!
I was combing through the GCC manual for maybe 4 hours looking for different ways to do this before asking for help. I did not run across your way at all, so you must be a makefile guru!
In my best Strongbad voice, “S, is not for Stop… S, is for Dragon!” http://www.homestarrunner.com/sbemail58.html
“I said Consummate V’s! CONSUMMATE!!! {shakes his head} Geez. {walks away muttering} Guy wouldn’t know majesty if it came up and bit him in the face…” - Strongbad
Thanks Bob!
I have this Digole LCD screen hooked up to my Spark Core to the I2C lines. I have the circuit board setup for I2C communication. http://www.digole.com/index.php?productID=844
Can you just give me a quick overview of what I’ll need to modify in the library you posted to get the screen working with my Spark Core? Any help would be greatly appreciated! Thanks for all your work on this.
RWB, did you solder a wire jumper on the control board to select I2C mode? It is a VERY small jumper pad to select SPI/I2C or UART (no jumper). After you do, the digole will boot syaing I2C address 0x27 to show the mode is activated.
In you code, you will need to have these two lines at the top where the other includes are, in this order:
#define _Digole_Serial_I2C_
#include "DigoleSerialDisp.h"
Then you will need to instantiate the class object like this (for example):
//arguments are address to default Wire object and address is 0x27
DigoleSerialDisp digole((&Wire,'\x27'););
Finally, in your setup(), you will need to add:
digole.begin();
You can then use the library methods to send stuff to the display like:
digole.clearScreen(); // clear the screen
digole.setPrintPos(x,y); // set position for text print. Position is dependent on selected font
digole.print(STUFF); // print stuff on the screen like Serial.print()
You can download Digole’s arduino library. In the example folder there is GraphicLCDAdapaterDemo. Grab that example and paste it in your main program below the setup you did above. You can get rid of the top of the digole code up to the prog uchar stuff. The rest can stay the same I believe. There may be enough delay in this code to kill your cloud connection but at least you can test your display. 
@Peekay123 THANK YOU VERY MUCH 
That’s exactly the type of easy to follow setup I was looking for. I’ll report back.
I tried to compile the library TimB just posted up and I get the following Error Messages. Not sure what that means. Take a look and let me know what you guys think.
In file included from DigoleSerialDisp.cpp:9:0:
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const String&)':
DigoleSerialDisp.h:146:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const char*)':
DigoleSerialDisp.h:152:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(char)':
DigoleSerialDisp.h:158:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned char, int)':
DigoleSerialDisp.h:164:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(int, int)':
DigoleSerialDisp.h:170:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned int, int)':
DigoleSerialDisp.h:176:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long int, int)':
DigoleSerialDisp.h:182:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long unsigned int, int)':
DigoleSerialDisp.h:188:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(double, int)':
DigoleSerialDisp.h:194:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const Printable&)':
DigoleSerialDisp.h:200:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println()':
DigoleSerialDisp.h:204:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const String&)':
DigoleSerialDisp.h:210:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const char*)':
DigoleSerialDisp.h:215:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(char)':
DigoleSerialDisp.h:220:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned char, int)':
DigoleSerialDisp.h:225:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(int, int)':
DigoleSerialDisp.h:230:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned int, int)':
DigoleSerialDisp.h:235:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long int, int)':
DigoleSerialDisp.h:240:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long unsigned int, int)':
DigoleSerialDisp.h:245:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(double, int)':
DigoleSerialDisp.h:250:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const Printable&)':
DigoleSerialDisp.h:255:5: warning: no return statement in function returning non-void [-Wreturn-type]
In file included from the_user_app.cpp:22:0:
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const String&)':
DigoleSerialDisp.h:146:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const char*)':
DigoleSerialDisp.h:152:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(char)':
DigoleSerialDisp.h:158:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned char, int)':
DigoleSerialDisp.h:164:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(int, int)':
DigoleSerialDisp.h:170:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned int, int)':
DigoleSerialDisp.h:176:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long int, int)':
DigoleSerialDisp.h:182:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long unsigned int, int)':
DigoleSerialDisp.h:188:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(double, int)':
DigoleSerialDisp.h:194:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const Printable&)':
DigoleSerialDisp.h:200:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println()':
DigoleSerialDisp.h:204:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const String&)':
DigoleSerialDisp.h:210:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const char*)':
DigoleSerialDisp.h:215:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(char)':
DigoleSerialDisp.h:220:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned char, int)':
DigoleSerialDisp.h:225:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(int, int)':
DigoleSerialDisp.h:230:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned int, int)':
DigoleSerialDisp.h:235:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long int, int)':
DigoleSerialDisp.h:240:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long unsigned int, int)':
DigoleSerialDisp.h:245:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(double, int)':
DigoleSerialDisp.h:250:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const Printable&)':
DigoleSerialDisp.h:255:5: warning: no return statement in function returning non-void [-Wreturn-type]
the_user_app.cpp: At global scope:
the_user_app.cpp:25:32: warning: left operand of comma operator has no effect [-Wunused-value]
the_user_app.cpp:25:39: error: expected ')' before ';' token
the_user_app.cpp:25:40: error: expected unqualified-id before ')' token
make: *** [the_user_app.o] Error 1
The stuff at the top is normal. The stuff at the bottom means you forgot a semi-colon somewhere.
Can you post your entire sketch? (Not the libraries.)
@timb I was just trying to get it to compile with this plus your H and .CPP files you provided.
/* *********************************************************************************** */
/* Digole Serial Display Library - Version 005 - Copyright 2014 Timothy Brown / Digole */
/* *********************************************************************************** */
/* Setup the class for your display *before* void setup(): */
/* */
/* DigoleSerialDisp digole(arguments); */
/* */
/* Arguments: */
/* */
/* [SPI] Chip Select Pin (SS for the default pin, 255 if CS is hardwired low.) */
/* [SoftSPI] Data Pin, Clock Pin, Chip Select Pin (255 if CS is hardwired low.) */
/* [I2C] Data Pin, Clock Pin */
/* [UART] TX Pin */
/* */
/* To use, call digole.begin(); *inside* void setup(); (or loop) to start the display. */
/* You may also call digole.end(); to release the pins and clear the I2C/SPI/UART bus. */
/* */
/* Change XXXX in the #define below to the desired interface: SPI, SoftSPI, I2C, UART. */
/* *********************************************************************************** */
#define _Digole_Serial_I2C_
#include "DigoleSerialDisp.h"
//arguments are address to default Wire object and address is 0x27
DigoleSerialDisp digole((&Wire,'\x27'););
void setup() {
digole.begin();
}
void loop() {
}
Oh, I see the problem, where did you get the (&Wire,'\x27'); stuff from? Edit: Nevermind, @peekay123 mentioned it. That’s from the Arduino lib. We only have one I2C bus, so all that’s needed is the I2C address of the display!
What you want is simple: DigoleSerialDisp digole(0x27);
I need the change the instructions at the top of the demo file to show the arguments for I2C to just be the address.
Fixed the demo file to show the correct instructions for I2C:
Do the instructions int he header make sense to you @RWB
@timb that was recommended by @peekay123
I changed it and it will compile now. Cool.
Now the next question I have is how do I add mutiple .h and .cpp files via the online IDE? I have .h files for the Digole display + the SHT-15 temp sensor. How do I go about adding both of them to the Web IDE?
I guess the only thing confusing me is that for each library there are .h and .cpp files and then there is the main application file where the main loop is and its also called a .cpp file. How does it work if there are 3 .cpp files in the web IDE interface?
Just click the + button to add a new set of files, the same way you did with the Digole library.
The main application file is a .cpp file, but you have #include statements at the top that reference any .h files you want to compile in as well. The compiler knows to look for any .cpp files with the same name as the .h file you included.
Does that make sense?
@timb Yes it does make sense. Thank you sir!
@timb below is my main loop. Shouldn't I have the data and CLK pins defined in some way? Or is that already done?
#define _Digole_Serial_I2C_
#include "DigoleSerialDisp.h"
DigoleSerialDisp digole(0x27);
void setup() {
digole.begin();
}
void loop() {
}
Also what is the correct format for printing text to the display?
Every time I try to put something like this in the main loop it causes compile errors.
The error that I get when I try to put the digole.print(STUFF); looks like this:
In file included from DigoleSerialDisp.cpp:9:0:
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const String&)':
DigoleSerialDisp.h:146:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const char*)':
DigoleSerialDisp.h:152:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(char)':
DigoleSerialDisp.h:158:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned char, int)':
DigoleSerialDisp.h:164:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(int, int)':
DigoleSerialDisp.h:170:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned int, int)':
DigoleSerialDisp.h:176:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long int, int)':
DigoleSerialDisp.h:182:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long unsigned int, int)':
DigoleSerialDisp.h:188:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(double, int)':
DigoleSerialDisp.h:194:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const Printable&)':
DigoleSerialDisp.h:200:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println()':
DigoleSerialDisp.h:204:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const String&)':
DigoleSerialDisp.h:210:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const char*)':
DigoleSerialDisp.h:215:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(char)':
DigoleSerialDisp.h:220:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned char, int)':
DigoleSerialDisp.h:225:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(int, int)':
DigoleSerialDisp.h:230:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned int, int)':
DigoleSerialDisp.h:235:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long int, int)':
DigoleSerialDisp.h:240:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long unsigned int, int)':
DigoleSerialDisp.h:245:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(double, int)':
DigoleSerialDisp.h:250:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const Printable&)':
DigoleSerialDisp.h:255:5: warning: no return statement in function returning non-void [-Wreturn-type]
In file included from the_user_app.cpp:23:0:
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const String&)':
DigoleSerialDisp.h:146:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const char*)':
DigoleSerialDisp.h:152:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(char)':
DigoleSerialDisp.h:158:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned char, int)':
DigoleSerialDisp.h:164:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(int, int)':
DigoleSerialDisp.h:170:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(unsigned int, int)':
DigoleSerialDisp.h:176:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long int, int)':
DigoleSerialDisp.h:182:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(long unsigned int, int)':
DigoleSerialDisp.h:188:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(double, int)':
DigoleSerialDisp.h:194:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println(const Printable&)':
DigoleSerialDisp.h:200:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::println()':
DigoleSerialDisp.h:204:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const String&)':
DigoleSerialDisp.h:210:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const char*)':
DigoleSerialDisp.h:215:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(char)':
DigoleSerialDisp.h:220:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned char, int)':
DigoleSerialDisp.h:225:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(int, int)':
DigoleSerialDisp.h:230:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(unsigned int, int)':
DigoleSerialDisp.h:235:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long int, int)':
DigoleSerialDisp.h:240:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(long unsigned int, int)':
DigoleSerialDisp.h:245:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(double, int)':
DigoleSerialDisp.h:250:5: warning: no return statement in function returning non-void [-Wreturn-type]
DigoleSerialDisp.h: In member function 'size_t DigoleSerialDisp::print(const Printable&)':
DigoleSerialDisp.h:255:5: warning: no return statement in function returning non-void [-Wreturn-type]
the_user_app.cpp: In function 'void loop()':
the_user_app.cpp:36:18: error: 'STUFF' was not declared in this scope
make: *** [the_user_app.o] Error 1
Here is my main .cpp code:
/* *********************************************************************************** */
/* Digole Serial Display Library - Version 005 - Copyright 2014 Timothy Brown / Digole */
/* *********************************************************************************** */
/* Setup the class for your display *before* void setup(): */
/* */
/* DigoleSerialDisp digole(arguments); */
/* */
/* Arguments: */
/* */
/* [SPI] Chip Select Pin (SS for the default pin, 255 if CS is hardwired low.) */
/* [SoftSPI] Data Pin, Clock Pin, Chip Select Pin (255 if CS is hardwired low.) */
/* [I2C] Data Pin, Clock Pin */
/* [UART] TX Pin */
/* */
/* To use, call digole.begin(); *inside* void setup(); (or loop) to start the display. */
/* You may also call digole.end(); to release the pins and clear the I2C/SPI/UART bus. */
/* */
/* Change XXXX in the #define below to the desired interface: SPI, SoftSPI, I2C, UART. */
/* *********************************************************************************** */
#define _Digole_Serial_I2C_
#include "DigoleSerialDisp.h"
DigoleSerialDisp digole(0x27);
void setup() {
digole.begin();
}
void loop() {
digole.print(STUFF); // print stuff on the screen like Serial.print()
}
@RWB Nope! There’s only one I2C bus, so you don’t need to define any pins. It’s the same as if you’d call Wire.begin();, you’re not defining any pins there, right?
SPI and UART are the same way. (You only need to define the Chip Select pin for SPI and desired baud rate for UART.)
The comments in the DigoleSerialDisp_Demo.cpp explain all the arguments you need when calling the class:
[SPI] Chip Select Pin (SS for the default pin, 255 if CS is hardwired low.)
[SoftSPI] Data Pin, Clock Pin, Chip Select Pin (255 if CS is hardwired low.)
[I2C] Address of the Display (Default: 0x27)
[UART] Baud Rate [9600 to 115200]