コード例 #1
0
ファイル: labo4_GPIO.c プロジェクト: celrenheit/Wepia
//====================================================================================
void ImageDemo(void)
{
memset(DisplayBuffer, 0, sizeof(DisplayBuffer));
DrawTextToBuffer(3, " IMAGE DEMO ", DisplayBuffer);
WriteBufferToDisplay(DisplayBuffer);
MsDelay(1000);

DisplayImage(BR_LOGO_LCD);
MsDelay(2000);
}
コード例 #2
0
//====================================================================================
void ImageDemo(void)
{
	memset(DisplayBuffer, 0, sizeof(DisplayBuffer));
	DrawTextToBuffer(3, (uint8_t*)"     IMAGE DEMO      ", DisplayBuffer);
	WriteBufferToDisplay(DisplayBuffer);
	sleep(1);

	DisplayImage(BR_LOGO_LCD);
	sleep(2);
}
コード例 #3
0
ファイル: labo4_GPIO.c プロジェクト: celrenheit/Wepia
//====================================================================================
void TextDemo(void)
{
uint32_t row = 0, col = 0, i;

memset(DisplayBuffer, 0, sizeof(DisplayBuffer));
DrawTextToBuffer(3, " TEXT DEMO ", DisplayBuffer);
WriteBufferToDisplay(DisplayBuffer);
MsDelay(1000);

memset(DisplayBuffer, 0, sizeof(DisplayBuffer));
for(i = 0; i <= 96; i++)
{
DrawChar(33 + i, row, col++, DisplayBuffer);
if(col >= TEXT_CHARACTERS_PER_ROW)
{
row++;
col = 0;
}
}

WriteBufferToDisplay(DisplayBuffer);
MsDelay(2000);
}
コード例 #4
0
ファイル: labo4_GPIO.c プロジェクト: celrenheit/Wepia
//====================================================================================
void SplashScreen(void)
{
memset(DisplayBuffer, 0, sizeof(DisplayBuffer));

DrawTextToBuffer(0, " 0.96\" OLED Display ", DisplayBuffer);
DrawTextToBuffer(2, " BLACK RAM ", DisplayBuffer);
DrawTextToBuffer(3, " ELECTRONICS ", DisplayBuffer);
DrawTextToBuffer(5, "Dev Boards & Displays ", DisplayBuffer);
DrawTextToBuffer(6, " With ", DisplayBuffer);
DrawTextToBuffer(7, "Examples & Tutorials ", DisplayBuffer);

WriteBufferToDisplay(DisplayBuffer);
MsDelay(3000);
}
コード例 #5
0
//====================================================================================
void SplashScreen(void)
{
	memset(DisplayBuffer, 0, sizeof(DisplayBuffer));

	DrawTextToBuffer(0, (uint8_t*)" 0.96\" OLED Display  ", DisplayBuffer);
	DrawTextToBuffer(2, (uint8_t*)"      BLACK RAM       ", DisplayBuffer);
	DrawTextToBuffer(3, (uint8_t*)"     ELECTRONICS      ", DisplayBuffer);
	DrawTextToBuffer(5, (uint8_t*)"Dev Boards & Displays ", DisplayBuffer);
	DrawTextToBuffer(6, (uint8_t*)"        With          ", DisplayBuffer);
	DrawTextToBuffer(7, (uint8_t*)" Examples & Tutorials ", DisplayBuffer);
	
	WriteBufferToDisplay(DisplayBuffer);
	sleep(3);
}
コード例 #6
0
//====================================================================================
void AnimationDemo(void)
{
	uint32_t frame_index;
	
	memset(DisplayBuffer, 0, sizeof(DisplayBuffer));
	DrawTextToBuffer(3, (uint8_t*)"   ANIMATION DEMO    ", DisplayBuffer);
	WriteBufferToDisplay(DisplayBuffer);
	sleep(1);
	
	for(frame_index = 0; frame_index < FRAME_COUNT; frame_index++)
	{
		usleep(FRAME_DEALY * 1000);
		DisplayImage((unsigned char*)BR_LOGO_ANIM[frame_index]);
	}
	sleep(2);
}
コード例 #7
0
ファイル: labo4_GPIO.c プロジェクト: celrenheit/Wepia
//====================================================================================
void AnimationDemo(void)
{
uint32_t frame_index;

// Splash screen
memset(DisplayBuffer, 0, sizeof(DisplayBuffer));
DrawTextToBuffer(3, " ANIMATION DEMO ", DisplayBuffer);
WriteBufferToDisplay(DisplayBuffer);
MsDelay(1000);

for(frame_index = 0; frame_index < FRAME_COUNT; frame_index++)
{
MsDelay(FRAME_DEALY);
DisplayImage((unsigned char*)BR_LOGO_ANIM[frame_index]);
}
MsDelay(2000);
}