TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137081 times)
  2. FAT32 Library (70222 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46409 times)
  5. Network WiFi Library (42029 times)
  6. FT800 Library (41375 times)
  7. GSM click (29109 times)
  8. mikroSDK (26555 times)
  9. PID Library (26487 times)
  10. microSD click (25483 times)
Libstock prefers package manager

Package Manager

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]

< Back
Example

OLED C click in MicroChip Curiosity Board (PIC16F1619)

Rating:

0

Author: Barna Szternák

Last Updated: 2016-02-25

Package Version: 1.1.0.1

Example: 1.0.0.0

Category: Graphics & LCD

Downloaded: 714 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.

No Abuse Reported

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)".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
Other PIC Compilers
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

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.

ALSO FROM THIS AUTHOR

Initializing the RN4020 on the Curiosity board

0

This example is a small project to initialize the RN4020 on the Curiosity board. I used the OLED C click from my previous example as a receiver terminal to printout the response from the RN4020. There is a button defined to share battery level info through the battery level service (0x2A19). The code has been written in MPLAB X.

[Learn More]