EasyManuals Logo

Texas Instruments MSP430 User Manual

Texas Instruments MSP430
413 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #246 background imageLoading...
Page #246 background image
246
OLED_write(Set_Common_HW_Config_CMD, CMD);
OLED_write(0x12, CMD);
OLED_write(Set_Contrast_Control_CMD, CMD);
OLED_write(0xCF, CMD);
OLED_write(Set_Pre_charge_Period_CMD, CMD);
OLED_write(0xF1, CMD);
OLED_write(Set_VCOMH_Level_CMD, CMD);
OLED_write(0x40, CMD);
OLED_write((Set_Entire_Display_ON_CMD | Normal_Display), CMD);
OLED_write((Set_Normal_or_Inverse_Display_CMD | Non_Inverted_Display), CMD);
OLED_write((Set_Display_ON_or_OFF_CMD + Display_ON) , CMD);
OLED_gotoxy(0, 0);
OLED_clear_screen();
}
void OLED_reset_sequence(void)
{
delay_ms(40);
OLED_RST_LOW();
delay_ms(40);
OLED_RST_HIGH();
}
void OLED_write(unsigned char value, unsigned char type)
{
switch(type)
{
case DAT:
{
OLED_DC_HIGH();
break;
}
case CMD:
{
OLED_DC_LOW();
break;
}
}
OLED_CS_LOW();
SPI_transfer(value);
OLED_CS_HIGH();
}
void OLED_gotoxy(unsigned char x_pos, unsigned char y_pos)
{
OLED_write((Set_Page_Start_Address_CMD + y_pos), CMD);

Table of Contents

Other manuals for Texas Instruments MSP430

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments MSP430 and is the answer not in the manual?

Texas Instruments MSP430 Specifications

General IconGeneral
BrandTexas Instruments
ModelMSP430
CategoryMicrocontrollers
LanguageEnglish

Related product manuals