Skip to content

Commit

Permalink
sync click boards to week 17 of 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFilipovic15 committed Apr 28, 2023
1 parent a9bbe90 commit 115ce12
Show file tree
Hide file tree
Showing 76 changed files with 18,764 additions and 1,469 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

**Updates by date of commit:**

+ **[20230428](#20230428)**
+ **[20230421](#20230421)**
+ **[20230413](#20230413)**
+ **[20230407](#20230407)**
Expand Down Expand Up @@ -45,6 +46,23 @@
---
---

## `20230428`

*Following click boards have been added:*

+ `HW Monitor`
+ `USB-C Power`
+ `LDO`
+ `DC Motor 25`

*Following click boards have been updated:*

+ `10x10 RGB`

**[BACK TO TOP](#changelog)**

---

## `20230421`

*Following click boards have been added:*
Expand Down
734 changes: 368 additions & 366 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clicks/10x10rgb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Changelog

### Version 2.0.1.21
### Version 2.1.1.22
- Initial release
27 changes: 27 additions & 0 deletions clicks/10x10rgb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.21)
if (${TOOLCHAIN_LANGUAGE} MATCHES "MikroC")
project(example_c10x10rgb LANGUAGES MikroC)
else()
project(example_c10x10rgb LANGUAGES C ASM)
endif()

if (NOT PROJECT_TYPE)
set(PROJECT_TYPE "mikrosdk" CACHE STRING "" FORCE)
endif()

add_executable(example_c10x10rgb
example/main.c

)


############################ example_c10x10rgb GENERATED CODE START ###########################
find_package(MikroC.Core REQUIRED)
target_link_libraries(example_c10x10rgb PUBLIC MikroC.Core)
find_package(MikroSDK.Board REQUIRED)
target_link_libraries(example_c10x10rgb PUBLIC MikroSDK.Board)
find_package(MikroSDK.Log REQUIRED)
target_link_libraries(example_c10x10rgb PUBLIC MikroSDK.Log)
add_subdirectory(lib_c10x10rgb)
target_link_libraries(example_c10x10rgb PUBLIC Click.10x10RGB)
############################ example_c10x10rgb GENERATED CODE END ###########################
70 changes: 31 additions & 39 deletions clicks/10x10rgb/DETAILS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,67 +34,60 @@ Package can be downloaded/installed directly form compilers IDE(recommended way)
#### Standard key functions :

- Config Object Initialization function.
> void c10x10rgb_cfg_setup ( c10x10rgb_cfg_t *cfg );
- Initialization function.
> c10X10RGB_RETVAL c10x10rgb_init ( c10x10rgb_t *ctx, c10x10rgb_cfg_t *cfg );
- `c10x10rgb_cfg_setup` Config Object Initialization function.
```c
void c10x10rgb_cfg_setup ( c10x10rgb_cfg_t *cfg );
```
- Click Default Configuration function.
> void c10x10rgb_default_cfg ( c10x10rgb_t *ctx );
- `c10x10rgb_init` Initialization function.
```c
C10X10RGB_RETVAL c10x10rgb_init ( c10x10rgb_t *ctx, c10x10rgb_cfg_t *cfg );
```

- `c10x10rgb_default_cfg` Click Default Configuration function.
```c
void c10x10rgb_default_cfg ( c10x10rgb_t *ctx );
```
#### Example key functions :
- This function displays an image from the specified demo_image address.
> void c10x10rgb_display_image ( c10x10rgb_t *ctx, uint32_t *demo_image );
- `c10x10rgb_display_image` This function displays an image from the specified demo_image address.
```c
void c10x10rgb_display_image ( c10x10rgb_t *ctx, const uint32_t *demo_image );
```

- This function displays the specified byte.
> void c10x10rgb_display_byte ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj );
- `c10x10rgb_display_byte` This function displays the specified byte.
```c
void c10x10rgb_display_byte ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj );
```
- This function displays the specified string.
> void c10x10rgb_display_string ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj,
uint8_t len, uint16_t speed_ms );

- This function displays a "rainbow" on the display.
> void c10x10rgb_demo_rainbow ( c10x10rgb_t *ctx, uint8_t brightness, uint16_t speed_ms );
- `c10x10rgb_display_string` This function displays the specified string.
```c
void c10x10rgb_display_string ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj, uint8_t len, uint16_t speed_ms );
```

## Examples Description

> This example showcases how to initialize, configure and use the 10x10 RGB click moduel. The
click has a 10 by 10 RGB LED matrix which can be programmed to show different colors or even
images. LED elements that form the matrix communicate by a single line with the host MCU.
click has a 10 by 10 RGB LED matrix which can be programmed to show different colors or even
images. LED elements that form the matrix communicate by a single line with the host MCU.

**The demo application is composed of two sections :**

### Application Init

> This function initializes and configures the logger and click modules.
> This function initializes and configures the click board.
```c

void application_init ( void )
{
log_cfg_t log_cfg;
c10x10rgb_cfg_t cfg;

/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info(&logger, "---- Application Init ----");

// Click initialization.

c10x10rgb_cfg_setup( &cfg, &logic_zero, &logic_one );
c10X10RGB_MAP_MIKROBUS( cfg, MIKROBUS_1 );
C10X10RGB_MAP_MIKROBUS( cfg, MIKROBUS_1 );
c10x10rgb_init( &c10x10rgb, &cfg );

c10x10rgb_fill_screen( &c10x10rgb, C10X10RGB_COLOR_OFF );
Expand All @@ -105,8 +98,7 @@ void application_init ( void )
### Application Task
> This function first displays 3 bytes { R, G, B }, the string "Mikroe", the company logo and
a rainbow in the end.
> This function first displays 3 chars { R, G, B }, the string "MIKROE", the company logo and a rainbow in the end.
```c
Expand All @@ -118,7 +110,7 @@ void application_task ( void )
Delay_ms( 1000 );
c10x10rgb_display_byte ( &c10x10rgb, &rgb_data_byte[ 2 ] );
Delay_ms( 2000 );
c10x10rgb_display_string( &c10x10rgb, &scroll_data_obj, scroll_data_len, scroll_speed_ms );
Delay_ms( 1000 );
c10x10rgb_display_image( &c10x10rgb, &MIKROE_IMAGE[ 0 ] );
Expand Down
70 changes: 31 additions & 39 deletions clicks/10x10rgb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,67 +35,60 @@ Package can be downloaded/installed directly form compilers IDE(recommended way)
#### Standard key functions :

- Config Object Initialization function.
> void c10x10rgb_cfg_setup ( c10x10rgb_cfg_t *cfg );
- Initialization function.
> c10X10RGB_RETVAL c10x10rgb_init ( c10x10rgb_t *ctx, c10x10rgb_cfg_t *cfg );
- `c10x10rgb_cfg_setup` Config Object Initialization function.
```c
void c10x10rgb_cfg_setup ( c10x10rgb_cfg_t *cfg );
```
- Click Default Configuration function.
> void c10x10rgb_default_cfg ( c10x10rgb_t *ctx );
- `c10x10rgb_init` Initialization function.
```c
C10X10RGB_RETVAL c10x10rgb_init ( c10x10rgb_t *ctx, c10x10rgb_cfg_t *cfg );
```

- `c10x10rgb_default_cfg` Click Default Configuration function.
```c
void c10x10rgb_default_cfg ( c10x10rgb_t *ctx );
```
#### Example key functions :
- This function displays an image from the specified demo_image address.
> void c10x10rgb_display_image ( c10x10rgb_t *ctx, uint32_t *demo_image );
- `c10x10rgb_display_image` This function displays an image from the specified demo_image address.
```c
void c10x10rgb_display_image ( c10x10rgb_t *ctx, const uint32_t *demo_image );
```

- This function displays the specified byte.
> void c10x10rgb_display_byte ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj );
- `c10x10rgb_display_byte` This function displays the specified byte.
```c
void c10x10rgb_display_byte ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj );
```
- This function displays the specified string.
> void c10x10rgb_display_string ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj,
uint8_t len, uint16_t speed_ms );

- This function displays a "rainbow" on the display.
> void c10x10rgb_demo_rainbow ( c10x10rgb_t *ctx, uint8_t brightness, uint16_t speed_ms );
- `c10x10rgb_display_string` This function displays the specified string.
```c
void c10x10rgb_display_string ( c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj, uint8_t len, uint16_t speed_ms );
```

## Examples Description

> This example showcases how to initialize, configure and use the 10x10 RGB click moduel. The
click has a 10 by 10 RGB LED matrix which can be programmed to show different colors or even
images. LED elements that form the matrix communicate by a single line with the host MCU.
click has a 10 by 10 RGB LED matrix which can be programmed to show different colors or even
images. LED elements that form the matrix communicate by a single line with the host MCU.

**The demo application is composed of two sections :**

### Application Init

> This function initializes and configures the logger and click modules.
> This function initializes and configures the click board.
```c

void application_init ( void )
{
log_cfg_t log_cfg;
c10x10rgb_cfg_t cfg;

/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info(&logger, "---- Application Init ----");

// Click initialization.

c10x10rgb_cfg_setup( &cfg, &logic_zero, &logic_one );
c10X10RGB_MAP_MIKROBUS( cfg, MIKROBUS_1 );
C10X10RGB_MAP_MIKROBUS( cfg, MIKROBUS_1 );
c10x10rgb_init( &c10x10rgb, &cfg );

c10x10rgb_fill_screen( &c10x10rgb, C10X10RGB_COLOR_OFF );
Expand All @@ -106,8 +99,7 @@ void application_init ( void )
### Application Task
> This function first displays 3 bytes { R, G, B }, the string "Mikroe", the company logo and
a rainbow in the end.
> This function first displays 3 chars { R, G, B }, the string "MIKROE", the company logo and a rainbow in the end.
```c
Expand All @@ -119,7 +111,7 @@ void application_task ( void )
Delay_ms( 1000 );
c10x10rgb_display_byte ( &c10x10rgb, &rgb_data_byte[ 2 ] );
Delay_ms( 2000 );
c10x10rgb_display_string( &c10x10rgb, &scroll_data_obj, scroll_data_len, scroll_speed_ms );
Delay_ms( 1000 );
c10x10rgb_display_image( &c10x10rgb, &MIKROE_IMAGE[ 0 ] );
Expand Down
Loading

0 comments on commit 115ce12

Please sign in to comment.