Esempio n. 1
0
int main (void)
{

PORTB = 0x00;
DDRB  = 0xFF;

LCD_Init();
LCD_Box(0,0,131,131,FILL,WHITE);
LCD_Box(3,3,128,128,NOFILL,BLUE);
LCD_Circle(65,100,10,GREEN);
LCD_Circle(65,110,10,RED);

LCD_String("===============", 22, 6, BLACK, WHITE);
LCD_String("  POZDRAWIAM  ", 42, 6, GREEN, WHITE);
LCD_String("forum.atnel.pl", 52, 6, BLUE, WHITE);
LCD_String("   SunRiver   ", 72, 6, PINK, WHITE);
LCD_String("===============", 82, 6, BLACK, WHITE);

}
Esempio n. 2
0
/*******************************************************************************
* Function Name  : DrawCross
* Description    : ÔÚÖ¸¶¨×ù±ê»­Ê®×Ö×¼ÐÇ
* Input          : - Xpos: Row Coordinate
*                  - Ypos: Line Coordinate
* Output         : None
* Return         : None
* Attention		 : None
*******************************************************************************/
void DrawCross(uint16_t Xpos,uint16_t Ypos)
{
   	LCD_DrawUniLine(Xpos-12,Ypos,Xpos+13,Ypos);
  	LCD_DrawUniLine(Xpos,Ypos-12,Xpos,Ypos+13);
  	Pixel(Xpos+2,Ypos+2,BLUE);
  	Pixel(Xpos-2,Ypos+2,BLUE);
  	Pixel(Xpos+2,Ypos-2,BLUE);
  	Pixel(Xpos-2,Ypos-2,BLUE);
  	LCD_Circle(Xpos, Ypos, 6, 1, BLUE);

}	
Esempio n. 3
0
void Nokia_lcd::circle(unsigned char x, unsigned char y, unsigned char radius) { 
  LCD_Circle(x, y, radius, _color);
} 
Esempio n. 4
0
void Nokia_lcd::cLCD_Circle(unsigned char x0, unsigned char y0, unsigned char radius, int color) { 
	LCD_Circle(x0,y0, radius,color);
}