Skip to content

Commit

Permalink
sync click boards to week 25 of 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFilipovic15 committed Jun 22, 2023
1 parent 9dcc3e7 commit b1184de
Show file tree
Hide file tree
Showing 380 changed files with 15,564 additions and 19,088 deletions.
27 changes: 27 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:**

+ **[20230622](#20230622)**
+ **[20230616](#20230616)**
+ **[20230609](#20230609)**
+ **[20230602](#20230602)**
Expand Down Expand Up @@ -53,6 +54,32 @@
---
---

## `20230622`

*Following click boards have been added:*

+ `Relay 5`
+ `Solar Energy 2`

*Following click boards have been updated:*

+ `SQI FLASH`
+ `Stepper 17`
+ `SWI EEPROM`
+ `LR 2`
+ `TempHum 3`
+ `TempHum 9`
+ `TempHum 19`
+ `Temp Probe`
+ `Thermostat 4`
+ `TILT-n-SHAKE`
+ `UV`
+ `Voltmeter`

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

---

## `20230616`

*Following click boards have been added:*
Expand Down
93 changes: 47 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,51 +514,52 @@ A full list of all clicks in this repository is defined below:
| Rec N Play click | [Click Here](./clicks/recnplay) | REED click | [Click Here](./clicks/reed) |
| Relay click | [Click Here](./clicks/relay) | Relay 2 click | [Click Here](./clicks/relay2) |
| Relay 3 click | [Click Here](./clicks/relay3) | Relay 4 click | [Click Here](./clicks/relay4) |
| Remote Temp click | [Click Here](./clicks/remotetemp) | ReRAM click | [Click Here](./clicks/reram) |
| ReRAM 2 click | [Click Here](./clicks/reram2) | RFID click | [Click Here](./clicks/rfid) |
| RFID 2 click | [Click Here](./clicks/rfid2) | RF Meter click | [Click Here](./clicks/rfmeter) |
| RF Meter 3 click | [Click Here](./clicks/rfmeter3) | RF Switch click | [Click Here](./clicks/rfswitch) |
| RGB Driver click | [Click Here](./clicks/rgbdriver) | R Meter click | [Click Here](./clicks/rmeter) |
| RMS to DC click | [Click Here](./clicks/rmstodc) | RN4678 click | [Click Here](./clicks/rn4678) |
| RN4870 click | [Click Here](./clicks/rn4870) | RN4871 click | [Click Here](./clicks/rn4871) |
| RNG click | [Click Here](./clicks/rng) | ROTARY B click | [Click Here](./clicks/rotaryb) |
| ROTARY G click | [Click Here](./clicks/rotaryg) | ROTARY O click | [Click Here](./clicks/rotaryo) |
| ROTARY R click | [Click Here](./clicks/rotaryr) | ROTARY Y click | [Click Here](./clicks/rotaryy) |
| RS232 click | [Click Here](./clicks/rs232) | RS232 2 click | [Click Here](./clicks/rs2322) |
| RS232 3 click | [Click Here](./clicks/rs2323) | RS232 Isolator click | [Click Here](./clicks/rs232isolator) |
| RS232 Isolator 2 click | [Click Here](./clicks/rs232isolator2) | RS232 SPI click | [Click Here](./clicks/rs232spi) |
| RS232 to I2C click | [Click Here](./clicks/rs232toi2c) | RS485 2 click | [Click Here](./clicks/rs4852) |
| RS485 3 click | [Click Here](./clicks/rs4853) | RS485 3V3 click | [Click Here](./clicks/rs4853v3) |
| RS485 4 click | [Click Here](./clicks/rs4854) | RS485 5 click | [Click Here](./clicks/rs4855) |
| RS485 5V click | [Click Here](./clicks/rs4855v) | RS485 6 click | [Click Here](./clicks/rs4856) |
| RS485 7 click | [Click Here](./clicks/rs4857) | RS485 Isolator click | [Click Here](./clicks/rs485isolator) |
| RS485 Isolator 2 click | [Click Here](./clicks/rs485isolator2) | RS485 Isolator 3 click | [Click Here](./clicks/rs485isolator3) |
| RTC 10 click | [Click Here](./clicks/rtc10) | RTC 11 click | [Click Here](./clicks/rtc11) |
| RTC 12 click | [Click Here](./clicks/rtc12) | RTC 13 click | [Click Here](./clicks/rtc13) |
| RTC 14 click | [Click Here](./clicks/rtc14) | RTC 16 click | [Click Here](./clicks/rtc16) |
| RTC 17 click | [Click Here](./clicks/rtc17) | RTC 18 click | [Click Here](./clicks/rtc18) |
| RTC 19 click | [Click Here](./clicks/rtc19) | RTC 2 click | [Click Here](./clicks/rtc2) |
| RTC 20 click | [Click Here](./clicks/rtc20) | RTC 21 click | [Click Here](./clicks/rtc21) |
| RTC 3 click | [Click Here](./clicks/rtc3) | RTC 4 click | [Click Here](./clicks/rtc4) |
| RTC 5 click | [Click Here](./clicks/rtc5) | RTC 6 click | [Click Here](./clicks/rtc6) |
| RTC 7 click | [Click Here](./clicks/rtc7) | RTC 8 click | [Click Here](./clicks/rtc8) |
| RTC 9 click | [Click Here](./clicks/rtc9) | RTD click | [Click Here](./clicks/rtd) |
| RTD 2 click | [Click Here](./clicks/rtd2) | RTK Base click | [Click Here](./clicks/rtkbase) |
| RTK Rover click | [Click Here](./clicks/rtkrover) | SAML Touch click | [Click Here](./clicks/samltouch) |
| Scanner click | [Click Here](./clicks/scanner) | SE051 Plug n Trust click | [Click Here](./clicks/se051plugntrust) |
| Semper Flash click | [Click Here](./clicks/semperflash) | Semper Flash 2 click | [Click Here](./clicks/semperflash2) |
| Serializer click | [Click Here](./clicks/serializer) | Servo click | [Click Here](./clicks/servo) |
| Shake2Wake click | [Click Here](./clicks/shake2wake) | SHT click | [Click Here](./clicks/sht) |
| SHT1x click | [Click Here](./clicks/sht1x) | SHT AN click | [Click Here](./clicks/shtan) |
| Shutter click | [Click Here](./clicks/shutter) | Shuttle click | [Click Here](./clicks/shuttle) |
| Signal Relay click | [Click Here](./clicks/signalrelay) | Single Cell click | [Click Here](./clicks/singlecell) |
| Single Wire CAN click | [Click Here](./clicks/singlewirecan) | Slider click | [Click Here](./clicks/slider) |
| Slider 2 click | [Click Here](./clicks/slider2) | Smart Buck click | [Click Here](./clicks/smartbuck) |
| Smart Buck 3 click | [Click Here](./clicks/smartbuck3) | Smart Card 2 click | [Click Here](./clicks/smartcard2) |
| Smart DOF click | [Click Here](./clicks/smartdof) | Smart DOF 2 click | [Click Here](./clicks/smartdof2) |
| Smart Mic click | [Click Here](./clicks/smartmic) | Smart Sens click | [Click Here](./clicks/smartsens) |
| Smart Sens 2 click | [Click Here](./clicks/smartsens2) | Smoke click | [Click Here](./clicks/smoke) |
| SOLAR ENERGY click | [Click Here](./clicks/solarenergy) | SolidSwitch click | [Click Here](./clicks/solidswitch) |
| Relay 5 click | [Click Here](./clicks/relay5) | Remote Temp click | [Click Here](./clicks/remotetemp) |
| ReRAM click | [Click Here](./clicks/reram) | ReRAM 2 click | [Click Here](./clicks/reram2) |
| RFID click | [Click Here](./clicks/rfid) | RFID 2 click | [Click Here](./clicks/rfid2) |
| RF Meter click | [Click Here](./clicks/rfmeter) | RF Meter 3 click | [Click Here](./clicks/rfmeter3) |
| RF Switch click | [Click Here](./clicks/rfswitch) | RGB Driver click | [Click Here](./clicks/rgbdriver) |
| R Meter click | [Click Here](./clicks/rmeter) | RMS to DC click | [Click Here](./clicks/rmstodc) |
| RN4678 click | [Click Here](./clicks/rn4678) | RN4870 click | [Click Here](./clicks/rn4870) |
| RN4871 click | [Click Here](./clicks/rn4871) | RNG click | [Click Here](./clicks/rng) |
| ROTARY B click | [Click Here](./clicks/rotaryb) | ROTARY G click | [Click Here](./clicks/rotaryg) |
| ROTARY O click | [Click Here](./clicks/rotaryo) | ROTARY R click | [Click Here](./clicks/rotaryr) |
| ROTARY Y click | [Click Here](./clicks/rotaryy) | RS232 click | [Click Here](./clicks/rs232) |
| RS232 2 click | [Click Here](./clicks/rs2322) | RS232 3 click | [Click Here](./clicks/rs2323) |
| RS232 Isolator click | [Click Here](./clicks/rs232isolator) | RS232 Isolator 2 click | [Click Here](./clicks/rs232isolator2) |
| RS232 SPI click | [Click Here](./clicks/rs232spi) | RS232 to I2C click | [Click Here](./clicks/rs232toi2c) |
| RS485 2 click | [Click Here](./clicks/rs4852) | RS485 3 click | [Click Here](./clicks/rs4853) |
| RS485 3V3 click | [Click Here](./clicks/rs4853v3) | RS485 4 click | [Click Here](./clicks/rs4854) |
| RS485 5 click | [Click Here](./clicks/rs4855) | RS485 5V click | [Click Here](./clicks/rs4855v) |
| RS485 6 click | [Click Here](./clicks/rs4856) | RS485 7 click | [Click Here](./clicks/rs4857) |
| RS485 Isolator click | [Click Here](./clicks/rs485isolator) | RS485 Isolator 2 click | [Click Here](./clicks/rs485isolator2) |
| RS485 Isolator 3 click | [Click Here](./clicks/rs485isolator3) | RTC 10 click | [Click Here](./clicks/rtc10) |
| RTC 11 click | [Click Here](./clicks/rtc11) | RTC 12 click | [Click Here](./clicks/rtc12) |
| RTC 13 click | [Click Here](./clicks/rtc13) | RTC 14 click | [Click Here](./clicks/rtc14) |
| RTC 16 click | [Click Here](./clicks/rtc16) | RTC 17 click | [Click Here](./clicks/rtc17) |
| RTC 18 click | [Click Here](./clicks/rtc18) | RTC 19 click | [Click Here](./clicks/rtc19) |
| RTC 2 click | [Click Here](./clicks/rtc2) | RTC 20 click | [Click Here](./clicks/rtc20) |
| RTC 21 click | [Click Here](./clicks/rtc21) | RTC 3 click | [Click Here](./clicks/rtc3) |
| RTC 4 click | [Click Here](./clicks/rtc4) | RTC 5 click | [Click Here](./clicks/rtc5) |
| RTC 6 click | [Click Here](./clicks/rtc6) | RTC 7 click | [Click Here](./clicks/rtc7) |
| RTC 8 click | [Click Here](./clicks/rtc8) | RTC 9 click | [Click Here](./clicks/rtc9) |
| RTD click | [Click Here](./clicks/rtd) | RTD 2 click | [Click Here](./clicks/rtd2) |
| RTK Base click | [Click Here](./clicks/rtkbase) | RTK Rover click | [Click Here](./clicks/rtkrover) |
| SAML Touch click | [Click Here](./clicks/samltouch) | Scanner click | [Click Here](./clicks/scanner) |
| SE051 Plug n Trust click | [Click Here](./clicks/se051plugntrust) | Semper Flash click | [Click Here](./clicks/semperflash) |
| Semper Flash 2 click | [Click Here](./clicks/semperflash2) | Serializer click | [Click Here](./clicks/serializer) |
| Servo click | [Click Here](./clicks/servo) | Shake2Wake click | [Click Here](./clicks/shake2wake) |
| SHT click | [Click Here](./clicks/sht) | SHT1x click | [Click Here](./clicks/sht1x) |
| SHT AN click | [Click Here](./clicks/shtan) | Shutter click | [Click Here](./clicks/shutter) |
| Shuttle click | [Click Here](./clicks/shuttle) | Signal Relay click | [Click Here](./clicks/signalrelay) |
| Single Cell click | [Click Here](./clicks/singlecell) | Single Wire CAN click | [Click Here](./clicks/singlewirecan) |
| Slider click | [Click Here](./clicks/slider) | Slider 2 click | [Click Here](./clicks/slider2) |
| Smart Buck click | [Click Here](./clicks/smartbuck) | Smart Buck 3 click | [Click Here](./clicks/smartbuck3) |
| Smart Card 2 click | [Click Here](./clicks/smartcard2) | Smart DOF click | [Click Here](./clicks/smartdof) |
| Smart DOF 2 click | [Click Here](./clicks/smartdof2) | Smart Mic click | [Click Here](./clicks/smartmic) |
| Smart Sens click | [Click Here](./clicks/smartsens) | Smart Sens 2 click | [Click Here](./clicks/smartsens2) |
| Smoke click | [Click Here](./clicks/smoke) | SOLAR ENERGY click | [Click Here](./clicks/solarenergy) |
| Solar Energy 2 click | [Click Here](./clicks/solarenergy2) | SolidSwitch click | [Click Here](./clicks/solidswitch) |
| SolidSwitch 2 click | [Click Here](./clicks/solidswitch2) | SolidSwitch 3 click | [Click Here](./clicks/solidswitch3) |
| Speaker click | [Click Here](./clicks/speaker) | SpeakUp 3 click | [Click Here](./clicks/speakup3) |
| Spectral click | [Click Here](./clicks/spectral) | Spectral 2 click | [Click Here](./clicks/spectral2) |
Expand All @@ -579,7 +580,7 @@ A full list of all clicks in this repository is defined below:
| Step Up click | [Click Here](./clicks/stepup) | StereoAmp click | [Click Here](./clicks/stereoamp) |
| Stretch click | [Click Here](./clicks/stretch) | STSPIN233 click | [Click Here](./clicks/stspin233) |
| STSPIN250 click | [Click Here](./clicks/stspin250) | Surface Temp click | [Click Here](./clicks/surfacetemp) |
| Surface Temp 2 click | [Click Here](./clicks/surfacetemp2) | SWI EEPROM click | [Click Here](./clicks/mikrosdk_click_v2) |
| Surface Temp 2 click | [Click Here](./clicks/surfacetemp2) | SWI EEPROM click | [Click Here](./clicks/swieeprom) |
| SwipeSwitch click | [Click Here](./clicks/swipeswitch) | Tamper click | [Click Here](./clicks/tamper) |
| Tamper 2 click | [Click Here](./clicks/tamper2) | TDC click | [Click Here](./clicks/tdc) |
| TDC 2 click | [Click Here](./clicks/tdc2) | TempHum click | [Click Here](./clicks/temphum) |
Expand Down
30 changes: 30 additions & 0 deletions clicks/lr2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 3.21)
if (${TOOLCHAIN_LANGUAGE} MATCHES "MikroC")
project(example_lr2 LANGUAGES MikroC)
else()
project(example_lr2 LANGUAGES C ASM)
endif()

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

add_executable(example_lr2
example/main.c

)

############################ example_lr2 GENERATED CODE START ###########################
find_package(MikroSDK.Log REQUIRED)
target_link_libraries(example_lr2 PUBLIC MikroSDK.Log)
find_package(MikroSDK.Conversions REQUIRED)
target_link_libraries(example_lr2 PUBLIC MikroSDK.Conversions)
find_package(MikroSDK.Board REQUIRED)
target_link_libraries(example_lr2 PUBLIC MikroSDK.Board)
find_package(MikroC.Core REQUIRED)
target_link_libraries(example_lr2 PUBLIC MikroC.Core)
add_subdirectory(lib_lr2)
target_link_libraries(example_lr2 PUBLIC Click.LR2)
############################ example_lr2 GENERATED CODE END ###########################


109 changes: 61 additions & 48 deletions clicks/lr2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
# LR 2 click

LR 2 Click is a compact add-on board that contains a low-power, long-range transceiver. This board features the RN2903, RF technology-based SRD transceiver, which operates at a frequency of 915MHz from Microchip Technology. This Click board™ features an embedded LoRaWAN Class A compliant stack, providing a long-range spread spectrum communication with high interference immunity. The RN2903 module is fully compliant with the United States (FCC) and Canada (IC) regulations combined with the advanced and straightforward command interface allowing easy integration into the final application.
> LR 2 Click is a compact add-on board that contains a low-power, long-range transceiver. This board features the RN2903, RF technology-based SRD transceiver, which operates at a frequency of 915MHz from Microchip Technology. This Click board™ features an embedded LoRaWAN Class A compliant stack, providing a long-range spread spectrum communication with high interference immunity. The RN2903 module is fully compliant with the United States (FCC) and Canada (IC) regulations combined with the advanced and straightforward command interface allowing easy integration into the final application.
<p align="center">
<img src="https://download.mikroe.com/images/click_for_ide/lr_2_click.png" height=300px>
Expand Down Expand Up @@ -70,19 +70,20 @@ void lr2_tick_conf ( lr2_t *ctx, uint32_t timer_limit );

## Example Description

> This example reads and processes data from LR 2 clicks.
> This example shows the usage of the LR 2 Click board by transmitting and receiving data.
**The demo application is composed of two sections :**

### Application Init

> Initializes driver init and LR 2 init.
> Initializes the driver and performs default configuration and reads System version.
```c

void application_init ( void ) {
log_cfg_t log_cfg;
lr2_cfg_t cfg;
void application_init ( void )
{
log_cfg_t log_cfg; /**< Logger config object. */
lr2_cfg_t lr2_cfg; /**< Click config object. */

/**
* Logger initialization.
Expand All @@ -95,64 +96,76 @@ void application_init ( void ) {
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );

// Click initialization.

lr2_cfg_setup( &cfg );
LR2_MAP_MIKROBUS( cfg, MIKROBUS_1 );
lr2_init( &lr2, &cfg );

lr2_default_cfg( &lr2, 0, &lr2_cbk );

lr2_cmd( &lr2, LR2_CMD_SYS_GET_VER, &tmp_txt[ 0 ] );

lr2_cmd( &lr2, LR2_CMD_MAC_PAUSE, &tmp_txt[ 0 ] );
log_printf( &logger, "mac pause\r\n" );
for ( cnt = 0; cnt < 10; cnt++ ) {
log_printf( &logger, "%c", tmp_txt[ cnt ] );
log_info( &logger, " Application Init " );

// Click initialization.
lr2_cfg_setup( &lr2_cfg );
LR2_MAP_MIKROBUS( lr2_cfg, MIKROBUS_1 );
if ( UART_ERROR == lr2_init( &lr2, &lr2_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}

lr2_default_cfg( &lr2, 0, 0 );
lr2_process( );

log_printf( &logger, "\r\n" );

lr2_cmd( &lr2, LR2_CMD_RADIO_SET_WDT, &tmp_txt[ 0 ] );
lr2_cmd( &lr2, LR2_CMD_SYS_GET_VER, resp_buf );
log_printf( &logger, " System VER: %s \r\n", resp_buf );

lr2_cmd( &lr2, LR2_CMD_MAC_PAUSE, resp_buf );
log_printf( &logger, " MAC PAUSE: %s \r\n", resp_buf );

log_printf( &logger, "radio set wdt 0\r\n" );
log_printf( &logger, "%s\r\n", &tmp_txt[ 0 ] );
lr2_cmd( &lr2, LR2_CMD_RADIO_SET_WDT, resp_buf );
log_printf( &logger, " RADIO SET WDT 0: %s \r\n", resp_buf );

#ifdef DEMO_APP_TRANSMITTER
log_printf( &logger, " Application Mode: Transmitter\r\n" );
#else
log_printf( &logger, " Application Mode: Receiver\r\n" );
#endif
log_info( &logger, " Application Task " );
}

```
### Application Task
> Transmitter mode - sends one by one byte sequence of the desired message each second and checks if it is sent successfully. Receiver mode - displays all the received characters on USB UART.
> Transmitter mode - sends a desired message each second and checks if it is sent successfully.
Receiver mode - displays all the received characters on USB UART.
```c
void application_task ( void ) {
char *ptr;
void application_task ( void )
{
lr2_process( );
#ifdef DEMO_APP_RECEIVER
rx_state = lr2_rx( &lr2, LR2_ARG_0, &tmp_txt[ 0 ] );
if ( rx_state == 0 ) {
tmp_txt[ 12 ] = 0;
ptr = ( char* )&int_data;
hex_to_int( &tmp_txt[ 10 ], ptr );
log_printf( &logger, "%c", int_data );
}
#endif
#ifdef DEMO_APP_TRANSMITTER
for ( cnt = 0; cnt < 9; cnt++ ) {
send_data = send_message[ cnt ] ;
int8_to_hex( send_data, send_hex );
tx_state = lr2_tx( &lr2, &send_hex[ 0 ] );
if ( tx_state == 0 ) {
log_printf( &logger, " Response : %s\r\n", &tmp_txt[ 0 ] );
uint8_t hex_buf[ 50 ] = { 0 };
uint8_t cnt = 0;
for ( cnt = 0; cnt < strlen( send_message ); cnt++ )
{
uint8_to_hex( send_message[ cnt ], &hex_buf[ cnt * 2 ] );
}
if ( LR2_OK == lr2_tx( &lr2, hex_buf ) )
{
log_printf( &logger, " Sent message: %s", send_message );
log_printf( &logger, " Response : %s\r\n", resp_buf );
}
Delay_ms( 1000 );
#else
if ( LR2_OK == lr2_rx( &lr2, LR2_ARG_0, resp_buf ) )
{
uint8_t text_buf[ 20 ] = { 0 };
uint8_t hex_buf[ 3 ] = { 0 };
uint8_t cnt = 0;
for ( cnt = 0; cnt < ( strlen( resp_buf ) - 10 ); cnt += 2 )
{
hex_buf[ 0 ] = resp_buf[ 10 + cnt ];
hex_buf[ 1 ] = resp_buf[ 11 + cnt ];
text_buf[ cnt / 2 ] = hex_to_uint8( hex_buf );
}
Delay_ms( 1000 );
log_printf( &logger, "Received message: %s\r\n", text_buf );
}
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion clicks/lr2/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Changelog

### Version 2.0.0.4
### Version 2.1.0.4
- Initial release
Loading

0 comments on commit b1184de

Please sign in to comment.