7x10g 2.2.0
Loading...
Searching...
No Matches
7x10g


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

Application Init

Configuring the Click board.

void application_init ( void )
{
c7x10g_cfg_t c7x10g_cfg;
// Click initialization.
c7x10g_cfg_setup( &c7x10g_cfg );
C7X10G_MAP_MIKROBUS( c7x10g_cfg, MIKROBUS_1 );
c7x10g_init( &c7x10g, &c7x10g_cfg );
}
#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.

void application_task ( void )
{
uint8_t cnt;
uint8_t cnt_x;
uint8_t cnt_y;
// CHAR PROCEDURE
for ( cnt = 'A'; cnt < 'Z'; cnt+=2 ) {
Delay_ms ( 1000 );
}
// COUNTER PROCEDURE
for ( cnt = 0; cnt < 15; cnt++ ) {
Delay_ms ( 500 );
}
// PIXELS PROCEDURE
for ( cnt_x = 0; cnt_x <= 7; cnt_x++ ) {
for ( cnt_y = 0; cnt_y <= 10; cnt_y++ ) {
pixel.cord_x = cnt_x;
pixel.cord_y = cnt_y;
pixel.cord_x = cnt_x;
pixel.cord_y = cnt_y + 1;
}
}
}
#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.