コード例 #1
0
ファイル: labo4_GPIO.c プロジェクト: celrenheit/Wepia
//====================================================================================
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();
}
}
コード例 #2
0
//====================================================================================
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);
}