7x10 G Click
7x10 G Click demo application is developed using the NECTO Studio, ensuring compatibility with mikroSDK's open-source libraries and tools. Designed for plug-and-play implementation and testing, the demo is fully compatible with all development, starter, and mikromedia boards featuring a mikroBUS™ socket.
Click Library
- Author : Jelena Milosavljevic
- Date : Jun 2021.
- Type : SPI type
Software Support
Example Description
This demo example shows a drawing of pixels, characters and a number on the screen.
Example Libraries
- MikroSDK.Board
- MikroSDK.Log
- Click.7x10G
Example Key Functions
- c7x10g_cfg_setup Config Object Initialization function.
void c7x10g_cfg_setup(c7x10g_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition c7x10g.h:134
- c7x10g_init Initialization function.
c7x10g_return_value_t c7x10g_init(c7x10g_t *ctx, c7x10g_cfg_t *cfg)
Initialization function.
c7x10g_return_value_t
Definition c7x10g.h:167
Click ctx object definition.
Definition c7x10g.h:114
- c7x10g_draw_pixel Drawing the pixel on the display.
void c7x10g_draw_pixel(c7x10g_t *ctx, c7x10g_pixel_t *pixel, uint8_t mode, uint8_t px_delay)
Draw pixel (function).
pixel structure definition.
Definition c7x10g.h:160
- c7x10g_draw_char Drawing the character on the display.
void c7x10g_draw_char(c7x10g_t *ctx, char ch, uint8_t pos, uint8_t ch_delay)
Draw char (function).
- c7x10g_draw_number Drawing the number on the display.
void c7x10g_draw_number(c7x10g_t *ctx, uint8_t num, uint16_t num_delay)
Draw number (function).
Application Init
Configuring the Click board.
{
}
#define C7X10G_MAP_MIKROBUS(cfg, mikrobus)
Definition c7x10g.h:61
void application_init(void)
Definition main.c:29
Application Task
Draws characters, numbers, and pixels to the display.
{
uint8_t cnt;
uint8_t cnt_x;
uint8_t cnt_y;
for ( cnt = 'A'; cnt < 'Z'; cnt+=2 ) {
Delay_ms ( 1000 );
}
for ( cnt = 0; cnt < 15; cnt++ ) {
Delay_ms ( 500 );
}
for ( cnt_x = 0; cnt_x <= 7; cnt_x++ ) {
for ( cnt_y = 0; cnt_y <= 10; cnt_y++ ) {
}
}
}
#define C7X10G_DISPLAY_DELAY_20MS
Definition c7x10g.h:77
#define C7X10G_DISPLAY_DELAY_50MS
Definition c7x10g.h:79
#define C7X10G_DISPLAY_LEFT
Definition c7x10g.h:88
#define C7X10G_DISPLAY_REFRESH
Definition c7x10g.h:90
#define C7X10G_DISPLAY_RIGHT
Definition c7x10g.h:89
#define C7X10G_DISPLAY_PIXEL_REFRESH
Definition c7x10g.h:97
#define C7X10G_DISPLAY_PIXEL_STORAGE
Definition c7x10g.h:98
void application_task(void)
Definition main.c:40
uint8_t cord_x
Definition c7x10g.h:161
uint8_t cord_y
Definition c7x10g.h:162
Application Output
This Click board can be interfaced and monitored in two ways:
- Application Output - Use the "Application Output" window in Debug mode for real-time data monitoring. Set it up properly by following this tutorial.
- UART Terminal - Monitor data via the UART Terminal using a USB to UART converter. For detailed instructions, check out this tutorial.
Additional Notes and Information
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.