Nicolas Electronics

Electronic projects and programming

Sample code for the Winstar OLED display library

I have here a sample code that uses the Winstar OLED display library, aka WS0010 driver.
It’s so easy to use, I’m just going to copy paste the code here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <xc.h>
#include <stdio.h>
#include "WS0010 driver.h"
 
#pragma config FOSC = HS, WDTE = OFF, BOREN = OFF, LVP = OFF, CPD = OFF, WRT = OFF, DEBUG = OFF, CP = OFF
 
void main(void)
{
    WS0010_Param param;
    WS0010_InitParam(&param);
    param.cursor = OFF;
    param.cursor_blink = OFF;
 
    WS0010_InitLCD(&param);
    WS0010_WriteToLCD(&param, "nicolas", 7);
    WS0010_WriteToLCD(&param, "electronics", 11);
    while(1);
}

– pyroesp

Leave a Reply

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box