We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: Barna Szternák
Last Updated: 2016-02-25
Package Version: 1.1.0.1
Example: 1.0.0.0
Category: Graphics & LCD
Downloaded: 739 times
Followed by: 1 user
License: MIT license
This is a simple Hello World! example using the OLED C click in a Curiosity experience board.
The code has been written in MPLAB X IDE for PIC16F1619.
Do you want to subscribe in order to receive notifications regarding "OLED C click in MicroChip Curiosity Board (PIC16F1619)" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "OLED C click in MicroChip Curiosity Board (PIC16F1619)" changes.
Do you want to report abuse regarding "OLED C click in MicroChip Curiosity Board (PIC16F1619)".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1439967106_oled_c_click_in__other_pic.zip [924.96KB] | Other PIC Compilers |
|
I decided to share my first code using the OLED C in the Curiosity board as an example as I had a couple of hours debugging why it was not working out of the box, and of course the only existing examples are for MikroElektronika boards, I could not find anything for the MPLAB X with an 8 bit PIC. I also added a print function to put text to the screen, so the OLED C can serve future projects as a debugging/logging interface, Curiosity itself has limited capabilities for onboard debugging sometimes.
So my biggest problem was to find the correct SPI clock settings. SEPS114A requires idle:high, active:low clock pulses and MPLAB X generates the opposite setup by default. Of course deeper knowledge of the SPI and/or the SEPS114A would help, now I have both :-)
LED D4 is for debugging purposes, has no function for the SPI or for the SEPS114A.
What is still missing:
- the text is rotated 90° to the right, some rotation feature shall be added for positioning
- better string handling functions with line breaks, etc.
- more fonts
- delay_ms is not really 1ms delay, never measured how long is it exactly but serves well :-D
1.1.0.0 is here with colors, screen orientation setting, smaller font 5x5 (own design), new file structure for easier implementation to new projects.