Skip to content

Commit 9fdd493

Browse files
Third Party Hardware Drivers Extension v1.2.0
1 parent adfb416 commit 9fdd493

File tree

251 files changed

+33916
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+33916
-162
lines changed

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Comment:
2+
A great PR typically begins with the lines below.
3+
Please note that:
4+
- The contents of this comment block are not shown in the pull request body.
5+
- Once a new pull request is opened in the project
6+
or new commit to an existing pull request will start a new build
7+
to automatically update the status of every commit on every branch.
8+
Read https://confluence.silabs.com/display/SCLP/GitHub+Pull+Request+Jenkins for more.
9+
- To disable the PR bot, keyword [NOCHECKS] should be added to the PR description.
10+
-->
11+
12+
**[Description]**
13+
Hi There,
14+
This is a short description of a pull request.
15+
It can be multiline with empty lines as well.
16+
17+
**[Files]**
18+
- inc/driver.h
19+
- src/driver.c
20+
- test/app.c
21+
- etc.
22+
23+
**[Video]**
24+
- https://www.dropbox.com/s/xly3vc68dvkj2rt/pull_request_template.mp4?dl=0

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Third Party Hardware Drivers #
22

3-
[![Version Badge](https://img.shields.io/badge/-v1.1.0-green)](https://github.com/SiliconLabs/third_party_hw_drivers_extension/releases)
4-
[![GSDK Badge](https://img.shields.io/badge/GSDK-v4.2.0-green)](https://github.com/SiliconLabs/gecko_sdk/releases)
3+
[![Version Badge](https://img.shields.io/badge/-v1.2.0-green)](https://github.com/SiliconLabs/third_party_hw_drivers_extension/releases)
4+
[![GSDK Badge](https://img.shields.io/badge/GSDK-v4.2.1-green)](https://github.com/SiliconLabs/gecko_sdk/releases)
55
![License badge](https://img.shields.io/badge/License-Zlib-green)
66

77
This repo contains example drivers developed by Silicon Labs engineers and are provided as [an SDK extension](https://docs.silabs.com/simplicity-studio-5-users-guide/latest/ss-5-users-guide-getting-started/install-sdk-extensions). These drivers interface with different types of external hardware and are tested against a specific device listed in the driver name. These drivers are intended to be fully compatible with Silicon Labs' wireless stacks. All drivers provide a minimal Simplicity Studio project for testing and to show an example usage of the driver. The driver source is provided for modification and extension as needed. All drivers in this repository are considered to be EVALUATION QUALITY which implies that the code provided in the repos is subjected to limited testing and is provided provided as-is. It is not suitable for production environments.
@@ -13,7 +13,7 @@ A full list of all drivers in this repository is defined below:
1313
| captouch2_cap1166 | [Click Here](./driver/public/mikroe/captouch2_cap1166) | [Click Here](./app/example/mikroe_captouch2_cap1166) | [Click Here](./app/documentation/example/mikroe_captouch2_cap1166) |
1414
| heartrate2_maxm86161 | [Click Here](./driver/public/mikroe/heartrate2_maxm86161) | [Click Here](./app/example/mikroe_heartrate2_maxm86161) | [Click Here](./app/documentation/example/mikroe_heartrate2_maxm86161) |
1515
| temphum9_shtc3 | [Click Here](./driver/public/mikroe/temphum9_shtc3) | [Click Here](./app/example/mikroe_temphum9_shtc3) | [Click Here](./app/documentation/example/mikroe_temphum9_shtc3) |
16-
| oledw_ssd1306 | [Click Here](./driver/public/mikroe/oledw_ssd1306) | [Click Here](./app/example/oledw_ssd1306) | [Click Here](./app/documentation/example/oledw_ssd1306) |
16+
| oledw_ssd1306 | [Click Here](./driver/public/mikroe/oledw_ssd1306) | [Click Here](./app/example/mikroe_oledw_ssd1306) | [Click Here](./app/documentation/example/mikroe_oledw_ssd1306) |
1717
| buzz2_cmt_8540s_smt | [Click Here](./driver/public/mikroe/buzz2_cmt_8540s_smt) | [Click Here](./app/example/mikroe_buzz2_cmt_8540s_smt) | [Click Here](./app/documentation/example/mikroe_buzz2_cmt_8540s_smt) |
1818
| brushless16_lb11685av | [Click Here](./driver/public/mikroe/brushless16_lb11685av) | [Click Here](./app/example/mikroe_brushless16_lb11685av) | [Click Here](./app/documentation/example/mikroe_brushless16_lb11685av) |
1919
| accel5_bma400 | [Click Here](./driver/public/mikroe/accel5_bma400) | [Click Here](./app/example/mikroe_accel5_bma400) | [Click Here](./app/documentation/example/mikroe_accel5_bma400) |
@@ -34,17 +34,26 @@ A full list of all drivers in this repository is defined below:
3434
| eth_wiz_w5500 | [Click Here](./driver/public/mikroe/eth_wiz_w5500) | [Click Here](./app/example/mikroe_eth_wiz_w5500) | [Click Here](./app/documentation/example/mikroe_eth_wiz_w5500) |
3535
| fuel_gauge_max17048 | [Click Here](./driver/public/silabs/fuel_gauge_max17048) | [Click Here](./app/example/maxim_fuel_gauge_max17048) | [Click Here](./app/documentation/example/maxim_fuel_gauge_max17048) |
3636
| barcode2_em3080w | [Click Here](./driver/public/mikroe/barcode2_em3080w) | [Click Here](./app/example/mikroe_barcode2_em3080w) | [Click Here](./app/documentation/example/mikroe_barcode2_em3080w) |
37+
| water_detect | [Click Here](./driver/public/mikroe/water_detect) | [Click Here](./app/example/mikroe_water_detect) | [Click Here](./app/documentation/example/mikroe_water_detect) |
38+
| radar_mm5d91_00 | [Click Here](./driver/public/mikroe/radar_mm5d91_00) | [Click Here](./app/example/mikroe_radar_mm5d91_00) | [Click Here](./app/documentation/example/mikroe_radar_mm5d91_00) |
39+
| rgb_led_is31fl3741 | [Click Here](./driver/public/silabs/rgb_led_is31fl3741) | [Click Here](./app/example/adafruit_rgb_led_is31fl3741) | [Click Here](./app/documentation/example/adafruit_rgb_led_is31fl3741) |
40+
| fingerprint2_a172mrq | [Click Here](./driver/public/mikroe/fingerprint2_a172mrq) | [Click Here](./app/example/mikroe_fingerprint2_a172mrq) | [Click Here](./app/documentation/example/mikroe_fingerprint2_a172mrq) |
41+
| air_quality_sgp40 | [Click Here](./driver/public/silabs/air_quality_sgp40) | [Click Here](./app/example/sparkfun_air_quality_sgp40) | [Click Here](./app/documentation/example/sparkfun_air_quality_sgp40) |
42+
| environment2_sht40_sgp40 | [Click Here](./driver/public/mikroe/environment2_sht40_sgp40) | [Click Here](./app/example/mikroe_environment2_sht40_sgp40) | [Click Here](./app/documentation/example/mikroe_environment2_sht40_sgp40) |
43+
| heartrate4_max30101 | [Click Here](./driver/public/mikroe/heartrate4_max30101) | [Click Here](./app/example/mikroe_heartrate4_max30101) | [Click Here](./app/documentation/example/mikroe_heartrate4_max30101) |
44+
| hr_po_max30101_max32664 | [Click Here](./driver/public/silabs/hr_po_max30101_max32664) | [Click Here](./app/example/sparkfun_hr_po_max30101_max32664) | [Click Here](./app/documentation/example/sparkfun_hr_po_max30101_max32664) |
45+
3746

3847
## Requirements ##
3948

4049
- Desired Silicon Labs Starter Kit
4150
- Driver specific test hardware
4251
- Simplicity Studio v5.6.0.0 or newer
43-
- Gecko SDK Suite 4.2.0, available via Simplicity Studio
52+
- Gecko SDK Suite 4.2.1, available via Simplicity Studio
4453

4554
## How to add to Simplicity Studio IDE ##
4655

47-
> **Detailed documentation available [here](doc/readme.md)**.
56+
> **Detailed documentation available on [https://docs.silabs.com](https://docs.silabs.com/application-examples/1.0.0/ae-getting-started/how-do-you-use-it#adding-sdk-extensions-for-hardware-drivers) or [here](doc/readme.md)**.
4857
4958

5059
- Clone the repository somewhere on your PC
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# IS31FL3741 Adafruit 13x9 PWM RGB LED Matrix Driver #
2+
3+
## Summary ##
4+
5+
This project aims to implement a hardware driver interacting with the [IS31FL3741 Adafruit 13x9 PWM RGB LED Matrix](https://learn.adafruit.com/adafruit-is31fl3741) via APIs of GSDK.
6+
7+
Adafruit RGB LED Matrix is a 13x9 RGB LED matrix breakout. It features 117 RGB LEDs, each one 2x2mm in size, in a 13x9 grid with 3mm pitch spacing. The IS31FL3741 communicates over I2C and can set each LED element to have 16-bit color by using an 8-bit PWM signal. There's an adjustable current driver, so you can brighten or dim the whole display without losing color resolution. The module can be tiled side-to-side with others if desired up to 4 boards on the I2C bus.
8+
9+
## Required Hardware ##
10+
11+
- [BGM220 Explorer Kit board](https://www.silabs.com/development-tools/wireless/bluetooth/bgm220-explorer-kit)
12+
- [Adafruit IS31FL3741 - 13x9 PWM RGB LED Matrix](https://learn.adafruit.com/adafruit-is31fl3741)
13+
14+
## Hardware Connection ##
15+
16+
Adafruit RGB LED Matrix can connect with the BGM220 Explorer Kit easily via two STEMMA QT connectors which are compatible with Qwiic. Qwiic is a special connector that includes two I2C wires (SDA and SCL), 3v3, and GND. All of these wires are combined into 1 connection port so that it makes the connection between 2 devices become easier and more convenient.
17+
18+
![connection](connection.png)
19+
20+
## Setup ##
21+
22+
You can either create a project based on a example project or start with an empty example project.
23+
24+
### Create a project based on a example project ###
25+
26+
1. From the Launcher Home, add the BRD4314A to MyProducts, click on it, and click on the **EXAMPLE PROJECTS & DEMOS** tab. Find the example project with filter "rgb led".
27+
28+
2. Click **Create** button on the **Third Party Hardware Drivers - IS31FL3741 - 13x9 PWM RGB LED Matrix (Adafruit)** example. Example project creation dialog pops up -> click Create and Finish and Project should be generated.
29+
![Create_example](create_example.png)
30+
31+
3. Build and flash this example to the board.
32+
33+
### Start with an empty example project ###
34+
35+
1. Create an "Empty C Project" for the "BGM220 Explorer Kit Board" using Simplicity Studio v5. Use the default project settings.
36+
37+
2. Copy the file [app.c](https://github.com/SiliconLabs/third_party_hw_drivers_extension/tree/master/app/example/adafruit_rgb_led_is31fl3741/app.c) (overwriting existing file), into the project root folder.
38+
39+
3. Install the software components:
40+
41+
- Open the .slcp file in the project.
42+
43+
- Select the SOFTWARE COMPONENTS tab.
44+
45+
- Install the following components:
46+
47+
- [Services][Sleep Timer]
48+
- [Services][IO Stream][IO Stream: USART] → default instance name: vcom
49+
- [Application][Utility][Log]
50+
- [Application][Utility][Assert]
51+
- [Third Party Hardware Drivers][Display & LED][IS31FL3741 - 13x9 PWM RGB LED Matrix (Adafruit) - I2C]
52+
- [Third Party Hardware Drivers][Services][GLIB - OLED Graphics Library]
53+
54+
4. Build and flash the project to your device.
55+
56+
**Note:**
57+
58+
- Make sure the SDK extension already be installed. If not please follow [this documentation](https://github.com/SiliconLabs/third_party_hw_drivers_extension/blob/master/README.md).
59+
60+
- SDK Extension must be enabled for the project to install **IS31FL3741 - 13x9 PWM RGB LED Matrix (Adafruit) - I2C** component. Selecting this component will also include the "I2CSPM" component with default configurated instance: qwiic.
61+
62+
- The example project are built on the BRD4314A board. For another boards, selecting the **IS31FL3741 - 13x9 PWM RGB LED Matrix (Adafruit) - I2C** component will include the "I2CSPM" component with unconfigured instance: inst0. This instance should be configurated by users.
63+
64+
### Display Configuration ###
65+
66+
Adafruit IS31FL3741 module supports up to 4 devices on a single I2C bus. Therefore, We provided 4 following display layout configurations: **1x1**, **1x2**, **1x3**, **1x4**, **2x2**. Users can choose their desired layout and the position of each display in the layout by setting its I2C address. But the order of the display has to follow the below diagram:
67+
68+
- **Horizontal**
69+
70+
```c
71+
-----------------------------------------------
72+
| Display 1 | Display 2 | Display 3 | Display 4 |
73+
-----------------------------------------------
74+
```
75+
76+
- **2x1** and **2x2**
77+
78+
```c
79+
----------- -----------------------
80+
| Display 1 | | Display 1 | Display 2 |
81+
|-----------| |-----------------------|
82+
| Display 2 | | Display 3 | Display 4 |
83+
----------- -----------------------
84+
```
85+
86+
All of this can be done in the configuration part of **IS31FL3741 - 13x9 PWM RGB LED Matrix (Adafruit) - I2C** component.
87+
88+
- **Note**: The address of the display which is not used should be set to "None". For example, if the layout configuration is set to **1x2** and users want to use Display 1 and Display 2, They should set the address of two others display to None.
89+
90+
![config](config.png)
91+
92+
## How It Works ##
93+
94+
### API Overview ###
95+
96+
```c
97+
---------------------------------------------
98+
| application |
99+
|---------------------------------------------|
100+
| glib.c |
101+
|---------------------------------------------|
102+
| adafruit_is31fl3741.c |
103+
|---------------------------------------------|
104+
| adafruit_is31fl3741_i2c.c |
105+
|---------------------------------------------|
106+
| emlib |
107+
---------------------------------------------
108+
```
109+
110+
The Adafruit IS31FL3741 driver is implemented to be compatible with the GLIB service. Hence, the application can use the APIs of the GLIB service driver instead of calling the APIs from Adafruit IS31FL3741 driver.
111+
112+
- [adafruit_is31fl3741.c](https://github.com/SiliconLabs/third_party_hw_drivers_extension/tree/master/driver/public/silabs/rgb_led_is31fl3741/src/adafruit_is31fl3741.c): Use to handle display features of the Adafruit IS31FL3741 module.
113+
- [adafruit_is31fl3741_i2c.c](https://github.com/SiliconLabs/third_party_hw_drivers_extension/tree/master/driver/public/silabs/rgb_led_is31fl3741/src/adafruit_is31fl3741_i2c.c): Use to communicate with the Microcontroller via emlib of GSDK.
114+
115+
### Testing ###
116+
117+
- The testing program will try to display the following text "Silicon Labs - Third Party Hardware Drivers Extension".
118+
119+
![result](test.GIF)
120+
121+
## Report Bugs & Get Support ##
122+
123+
To report bugs in the Application Examples projects, please create a new "Issue" in the "Issues" section of [third_party_hw_drivers_extension](https://github.com/SiliconLabs/third_party_hw_drivers_extension) repo. Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Since these examples are provided as-is, there is no guarantee that these examples will be updated to fix these issues.
124+
125+
Questions and comments related to these examples should be made by creating a new "Issue" in the "Issues" section of [third_party_hw_drivers_extension](https://github.com/SiliconLabs/third_party_hw_drivers_extension) repo.
31.3 KB
Loading
172 KB
Loading
45.3 KB
Loading
43.8 MB
Loading

app/documentation/example/mikroe_accel5_bma400/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
This project shows the implementation of a accelerometer sensor that is integrated on the Accel 5 Click board.
66

7+
With its ultra-low power consumption, onboard data processing, output data lowpass filtering, and ability to detect many different events, the Accel 5 click is a perfect solution for IoT applications. It can also be used to develop applications for wearables, where the BMA400 sensor shows its true potential, offering an ultra-low power always-on operation with no functionality compromises. In general, Accel 5 click can be used wherever a reliable detection of the acceleration-related events is needed: smart home applications, IoT applications, drop detection for warranty logging, power management based on motion, and similar.
8+
79
## Required Hardware ##
810

911
- [A BGM220P Explorer Kit board.](https://www.silabs.com/development-tools/wireless/bluetooth/bgm220-explorer-kit)
@@ -46,7 +48,9 @@ You can either create a project based on a example project or start with an empt
4648
- [Services][Sleep Timer]
4749
- [Services][IO Stream][IO Stream: USART] → default instance name: vcom
4850
- [Application][Utility][Log]
49-
- [Third Party Hardware Drivers][Sensors][BMA400 - Accel 5 Click (Mikroe)]
51+
- [Application][Utility][Assert]
52+
- [Application][Service][Simple timer service]
53+
- [Third Party Hardware Drivers][Sensors][BMA400 - Accel 5 Click (Mikroe)] → use default configuration
5054

5155
4. Build and flash this example to the board.
5256

5.17 KB
Loading

app/documentation/example/mikroe_barcode2_em3080w/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## Summary ##
44

5-
This project shows the implementation of a Barcode reader using Barcode 2 Click board. Which is an adapter add-on board that contains a computerized image recognition system that is compliant with a wide range of different 1D and 2D barcode protocols.
5+
This project shows the implementation of a Barcode reader using Barcode 2 Click board.
6+
7+
Barcode 2 Click is an adapter add-on board that contains a computerized image recognition system that is compliant with a wide range of different 1D and 2D barcode protocols. Barcode 2 Click can be used for a for both emerging mobile phone-based barcode applications, like coupons, e-tickets and boarding passes, and traditional applications.
68

79
## Required Hardware ##
810

0 commit comments

Comments
 (0)