FreeRTOS/Demo/CORTEX_LM3S6965_GCC_QEMU/LocalDemoFiles/osram128x64x4.c
//*****************************************************************************
//
//! Clears the OLED display.
//!
//! This function will clear the display RAM.  All pixels in the display will
//! be turned off.
//!
//! This function is contained in <tt>osram128x64x4.c</tt>, with
//! <tt>osram128x64x4.h</tt> containing the API definition for use by
//! applications.
//!
//! \return None.
//
//*****************************************************************************
Clears the OLED display.
This function will clear the display RAM.  All pixels in the display will
be turned off.

This function is contained in osram128x64x4.c, with
osram128x64x4.h containing the API definition for use by
applications.

\return None.
Clears the OLED display . This function will clear the display RAM . All pixels in the display will be turned off . This function is contained in osram128x64x4 . c with osram128x64x4 . h containing the API definition for use by applications . \ return None .
void
OSRAM128x64x4Clear(void)
{
    static const unsigned char pucCommand1[] = { 0x15, 0, 63 };
    static const unsigned char pucCommand2[] = { 0x75, 0, 79 };
    unsigned long ulRow, ulColumn;
    static unsigned char pucZeroBuffer[8] = { 0, 0, 0, 0, 0, 0, 0, 0};
     Set the window to fill the entire display.
    OSRAMWriteCommand(pucCommand1, sizeof(pucCommand1));
    OSRAMWriteCommand(pucCommand2, sizeof(pucCommand2));
    OSRAMWriteCommand(g_pucOSRAM128x64x4VerticalInc,
                      sizeof(g_pucOSRAM128x64x4VerticalInc));
     In vertical address increment mode, loop through each column, filling
     each row with 0.
    for(ulColumn = 0; ulColumn < (128/2); ulColumn++)
    {
         8 rows (bytes) per row of text.
        for(ulRow = 0; ulRow < 80; ulRow += 8)
        {
            OSRAMWriteData(pucZeroBuffer, sizeof(pucZeroBuffer));
        }
    }
}
void OSRAM128x64x4Clear ( void ) { static const unsigned char pucCommand1 [ ] = { 0x15 , 0 , 63 } ; static const unsigned char pucCommand2 [ ] = { 0x75 , 0 , 79 } ; unsigned long ulRow , ulColumn ; static unsigned char pucZeroBuffer [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; OSRAMWriteCommand ( pucCommand1 , sizeof ( pucCommand1 ) ) ; OSRAMWriteCommand ( pucCommand2 , sizeof ( pucCommand2 ) ) ; OSRAMWriteCommand ( g_pucOSRAM128x64x4VerticalInc , sizeof ( g_pucOSRAM128x64x4VerticalInc ) ) ; for ( ulColumn = 0 ; ulColumn < ( 128 / 2 ) ; ulColumn ++ ) { for ( ulRow = 0 ; ulRow < 80 ; ulRow += 8 ) { OSRAMWriteData ( pucZeroBuffer , sizeof ( pucZeroBuffer ) ) ; } } }
Clears the OLED display.
Clears the OLED display .
// // Set the window to fill the entire display. // // // In vertical address increment mode, loop through each column, filling // each row with 0. // // // 8 rows (bytes) per row of text. //