Beispiel #1
0
uint8_t CU8GLcd::GetPageCount()
{
    uint8_t count;
    for (count = 0; GetDrawFunction(&_pagedef[count].draw) != NULL; count++)
    {
    }
    return count;
}
Beispiel #2
0
unsigned long CU8GLcd::Draw(EDrawType draw)
{
    if (draw==DrawFirst)
    {
        SetDefaultPage();
    }

    DrawFunction fnc = GetDrawFunction(&_pagedef[GetPage()].draw);

    return DrawLoop(fnc);
}
Beispiel #3
0
void display()
/*****************************************************************************/
{
   static bool firstTime = true;
   if(firstTime)
   {
      ClearScreen();
      firstTime = false;
   }

   GetDrawFunction()();
   glutSwapBuffers();
}