…
for( i=0; i<5; i++) // 5*8=40 pixel rows (actually 39)
    {
        OLED_SetRow( i); // Row number is set
        OLED_SetColumn( 0);// Column number is set and starts from 0 in every row
        for( j=0; j<96; j++)  // 96 pixel columns are present in each row
        {
            OLED_Data( *pic++); // Writing a particular pattern for the pixel
        }
    }
…