I had the very pleasant experience of going through Michael Li's excellent guide I2C Tutorial for Renesas S5D9 board: Show Temperature Reading on an OLED Display.
Standalone use with rechargeable battery.
The I2C Grove connector closest to the USB port
Michael's tutorial grabs the temperature data from the AMS EN210 sensor that is built into the board. Both the temperature and the display are handled with I2C.
Like many of these projects, the main barrier is that you need to order the OLED module. This is a good-quality 0.96" yellow and blue OLED module with 128x64 pixels. It cost $16.99 on Amazon.com for 2 modules. http://a.co/5vPbzdU
After sitting on my behind for far too long, I finally decided to order the modules. It took only a few days to arrive.
The modules came in seals anti-static packaging. Both sealed packages came in a single cardboard box and the box was in a bubble wrap envelope. The 4 pin leads of the module came in foam and the display had a plastic wrap. Both modules arrived undamaged. The modules came with zero cables.
To build this project, you'll need a grove cable. I think most people have a breadboard and some spare wires, so that should be no problem. You can connect the wires directly to the LCD module and don't need a breadboard, but I think the breadboard makes the project easier to work on.
The only challenge I ran into is that I didn't look at the schematic correctly and reversed the SDA data and SCL serial clock pins.
Michael helped me out with the correct wiring.
Grove Pin 4 (black) = GroundGrove Pin 3 (red) = VCCGrove Pin 2 (white) = SDA, Data (correct position)Grove Pin 1 (yellow) = SCL, Serial Clock (correct position)
Michael actually had the schematic in his tutorial, but I blazed right past it and didn't see that SDA1 goes to J4 pin 2.
The full code for Michael's tutorial is available in his GitHub repo.
I made some minor modifications to Mike's code, including a mockup of a potential future SECT tutorial.
To convert the monochrome bitmap into an array, I used the free LCD Assistant tool. Though, I think it's possible to use e2 Studio for this with the GUIX tool. The LCD Assistant tool was free and simple to use, so I converted the monochrome bitmap into the c array with it.
If you have the LCD module and want to try it out quickly without using e2 Studio and Synergy, I put up a tutorial on hackster.io to use a pre-compiled .srec file to get the LCD module up in a few minutes with the debugger and J-Flash Lite
In reply to codetricity: