//! //! @brief This function displays a box on the LCD. //! static void display_box( uint32_t x, uint32_t y, uint32_t size_x, uint32_t size_y, uint16_t color, uint16_t edge_color ) { et024006_DrawFilledRect(x, y, size_x, size_y, color); et024006_DrawHorizLine(x, y, size_x, edge_color); et024006_DrawVertLine(x+size_x-1, y, size_y, edge_color); et024006_DrawHorizLine(x, y+size_y-1, size_x, edge_color); et024006_DrawVertLine(x, y, size_y, edge_color); }
static void ui_display_draw_textbox(void) { /* Clear the display i.e. make it black */ et024006_DrawFilledRect(0, 0, ET024006_WIDTH, ET024006_HEIGHT, BLACK ); /* Draw blue Rectangle */ et024006_DrawHorizLine(DISPLAY_FIRST_LINE_X - 2, DISPLAY_FIRST_LINE_Y - 2, ET024006_WIDTH - 20, BLUE); et024006_DrawVertLine(DISPLAY_FIRST_LINE_X - 2, DISPLAY_FIRST_LINE_Y - 2, ET024006_HEIGHT - 30, BLUE); et024006_DrawHorizLine(DISPLAY_FIRST_LINE_X - 2, ET024006_HEIGHT - 10, ET024006_WIDTH - 20, BLUE); et024006_DrawVertLine(ET024006_WIDTH - 10, DISPLAY_FIRST_LINE_Y - 2, ET024006_HEIGHT - 30, BLUE); /* Draw Welcome String */ et024006_PrintString((char *)"Atmel Android Accessory Demo", (const uint8_t *)&FONT8x16, 12, 2, BLUE, WHITE); }