int main() { InitTimer(); InitComm(); PrintLn("hello, world!"); InitOLED(); TestOLED(); return 0; }
//==================================================================================== void main() { // Init SysTick SysTick_Config(SystemCoreClock / 1000); // Generate interrupt every 1 ms // Init the OLED display and required hardware InitOLED(); // Init on-board LED as output LPC_GPIO1->FIODIR |= 1 << 18; for(;;) { SplashScreen(); TextDemo(); ImageDemo(); AnimationDemo(); } }
//==================================================================================== int main(int argc, char **argv) { int i; printf("Black Ram Electronics Mono OLED Demo\n"); // Configure interface hardware and setup the display InitOLED(); // Loop through the demo three times for(i = 0; i < 3; i++) { SplashScreen(); TextDemo(); ImageDemo(); AnimationDemo(); } // Release the hardware DeinitOLED(); return(0); }