Sorry, I know this is a bit of a dumb question too, but since Im so new to all this, how would I go about using this in a project? Id imagine something along the lines of including the library, but would i have to include any lines of code like what i uncommented, in order to define the pins? Was aiming to use this in a small 8 bit game system project.
I guess the best route to do this would be turning it into an arduboy or gamebuino variation. Before moving my question to a different forum, would anyone happen to know how to modify either library in order to use this screen? Most ive picked up on so far was a display utility in the gamebuino library. Looked to be SPI based also, but not too sure what id need to do with it.
CatDadJynx:
I guess the best route to do this would be turning it into an arduboy or gamebuino variation. Before moving my question to a different forum, would anyone happen to know how to modify either library in order to use this screen? Most ive picked up on so far was a display utility in the gamebuino library. Looked to be SPI based also, but not too sure what id need to do with it.
Sorry in kind of talking to myself, but a friend pointed me to this: $12 Arduboy compatible system - Homemade - Arduboy
Seems the arduboy library uses the same ssd1306 library for the oled, so looks like that's where the compatability lies and where I should start. Will give that another look and see if I can't make more sense of it.
Oh, and an update... been messing with trying to get the adafruit ssd1306 example sketch to work, and all it took was different hookups than what the ug82 examples took. Sorry that much was probably obvious, again just completely new to this, but got it working both ways thanks to David. Gonna try to use the ssd1306 hookup for this project though (because of compatability)
Also gonna go ahead and move this thread onto the arduboy forums, but will link here later for general reference
Choose one wiring scheme. Read about the constructors for each library.
e.g. copy the exact wiring used by Adafruit examples. Use the same scheme for u8g2
Then you can compare the examples that come with each library.
You can use your proven u8g2 constructor by copy-pasting it to each u8g2 example.
Now that you have some experience, you can wire up to the hardware SPI pins. And use the appropriate hardware constructors.
This will give you better performance. But with small displays, it is not very critical.
You may find it more convenient to use random GPIO pins and bit-bash them i.e. use the software constructors.
David.
I'm still not sure I know what you mean yet, but will revisit once I've gotten a bit more experienced. I'd imagine since the ssd1306 library is used in the arduboy (which is the direction im taking this) I should be okay using the wiring as is for now, at least. Thanks!
Link to current thread: