Some simple functions for drawing text and basic primitives to the lcd.
ev3c_lcd | Some simple functions for drawing text and basic primitives to the lcd. |
Macros | |
EV3_X_LCD | x size of the EV3 screen (178) |
EV3_Y_LCD | y size of the EV3 screen (128) |
EV3_S_LCD | length of the scanline of the EV3 screen in bytes (712) |
EV3_SY_LCD | product of the scanline length and the screen height as whole size of the screenbuffer array. |
Functions | |
ev3_init_lcd | Initializes the lcd. |
ev3_text_lcd_large | Draws text in a large font (each letter 16x16) |
ev3_text_lcd_normal | Draws text in a normal font (each letter 8x9) |
ev3_text_lcd_small | Draws text in a small font (each letter 8x8) |
ev3_text_lcd_tiny | Draws text in a tiny font (each letter 5x7) |
ev3_clear_lcd | Blanks the screen |
ev3_rectangle_lcd | Draws a filled rectangle |
ev3_rectangle_lcd_out | Draws a rectangle frame |
ev3_circle_lcd | Draws a filled circle |
ev3_circle_lcd_out | Draws a circle frame |
ev3_ellipse_lcd | Draws a filled ellipse |
ev3_ellipse_lcd_out | Draws a ellipse frame |
ev3_line_lcd | Draws a line |
void ev3_rectangle_lcd( int32_t x, int32_t y, int32_t w, int32_t h, int32_t bit )
Draws a filled rectangle
x,y | (int32_t,int32_t) position of the left upper corner of the rectangle |
w | (int32_t) width of the rectangle |
h | (int32_t) height of the rectangle |
bit | color of the rectangle (1 black, 0 white) |
void ev3_rectangle_lcd_out( int32_t x, int32_t y, int32_t w, int32_t h, int32_t bit )
Draws a rectangle frame
x,y | (int32_t,int32_t) position of the left upper corner of the rectangle |
w | (int32_t) width of the rectangle |
h | (int32_t) height of the rectangle |
bit | color of the rectangle (1 black, 0 white) |
Initializes the lcd.
void ev3_init_lcd()
Draws text in a large font (each letter 16x16)
void ev3_text_lcd_large( int32_t x, int32_t y, const char * text )
Draws text in a normal font (each letter 8x9)
void ev3_text_lcd_normal( int32_t x, int32_t y, const char * text )
Draws text in a small font (each letter 8x8)
void ev3_text_lcd_small( int32_t x, int32_t y, const char * text )
Draws text in a tiny font (each letter 5x7)
void ev3_text_lcd_tiny( int32_t x, int32_t y, const char * text )
Blanks the screen
void ev3_clear_lcd()
Draws a filled rectangle
void ev3_rectangle_lcd( int32_t x, int32_t y, int32_t w, int32_t h, int32_t bit )
Draws a rectangle frame
void ev3_rectangle_lcd_out( int32_t x, int32_t y, int32_t w, int32_t h, int32_t bit )
Draws a filled circle
void ev3_circle_lcd( int32_t x, int32_t y, int32_t r, int32_t bit )
Draws a circle frame
void ev3_circle_lcd_out( int32_t x, int32_t y, int32_t r, int32_t bit )
Draws a filled ellipse
void ev3_ellipse_lcd( int32_t x, int32_t y, int32_t rx, int32_t ry, int32_t bit )
Draws a ellipse frame
void ev3_ellipse_lcd_out( int32_t x, int32_t y, int32_t rx, int32_t ry, int32_t bit )
Draws a line
void ev3_line_lcd( int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t bit )