-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from FrameworkComputer/is31fl3743a
Port to IS31FL3743A
- Loading branch information
Showing
7 changed files
with
112 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
[![Crates.io](https://img.shields.io/crates/v/is31fl3741)](https://crates.io/crates/is31fl3741) | ||
[![docs.rs](https://img.shields.io/docsrs/is31fl3741)](https://docs.rs/is31fl3741/latest/is31fl3741/) | ||
[![Crates.io](https://img.shields.io/crates/v/is31fl3743a)](https://crates.io/crates/is31fl3743a) | ||
[![docs.rs](https://img.shields.io/docsrs/is31fl3743a)](https://docs.rs/is31fl3743a/latest/is31fl3743a/) | ||
|
||
[![lint](https://github.com/FrameworkComputer/is31fl3741-rs/actions/workflows/lint.yml/badge.svg)](https://github.com/FrameworkComputer/is31fl3741-rs/actions/workflows/lint.yml) | ||
[![build](https://github.com/FrameworkComputer/is31fl3741-rs/actions/workflows/build.yml/badge.svg)](https://github.com/FrameworkComputer/is31fl3741-rs/actions/workflows/build.yml) | ||
[![lint](https://github.com/FrameworkComputer/is31fl3743a-rs/actions/workflows/lint.yml/badge.svg)](https://github.com/FrameworkComputer/is31fl3743a-rs/actions/workflows/lint.yml) | ||
[![build](https://github.com/FrameworkComputer/is31fl3743a-rs/actions/workflows/build.yml/badge.svg)](https://github.com/FrameworkComputer/is31fl3743a-rs/actions/workflows/build.yml) | ||
|
||
|
||
# is31fl3741 driver | ||
# is31fl3743a driver | ||
|
||
Driver for [Lumissil Microsystem's IS31FL3741 integrated circuit](https://www.lumissil.com/assets/pdf/core/IS31FL3741_DS.pdf). Some of the major features of this library are: | ||
Driver for [Lumissil Microsystem's IS31FL3743A integrated circuit](https://www.lumissil.com/assets/pdf/core/IS31FL3743A_DS.pdf). Some of the major features of this library are: | ||
|
||
1. Use of embedded HAL traits (works with any embedded device that supports the required traits). This means that this driver is platform agnostic. | ||
2. Library features (only turn on what devices you need to save compiled binary space). | ||
3. [Examples](./examples) on how to use this driver. | ||
Right now there is only an example on how to use this crate with a stm32 nucleo. | ||
3. [Examples](./examples) on how to use this driver. (TODO) | ||
|
||
## Install | ||
|
||
To install this driver in your project add the following line to your `Cargo.toml`'s `dependencies` table: | ||
|
||
```toml | ||
is31fl3741 = "0.2.2" | ||
``` | ||
|
||
By default this version will only contain the core driver. | ||
To use a preconfigured device (currently just [Adafruit IS31FL3741 13x9 PWM RGB LED Matrix](https://www.adafruit.com/product/5201)), | ||
you would need to change this line to include that device: | ||
|
||
```toml | ||
is31fl3741 = { version = "0.2.2", features = ["adafruit13x9"] } | ||
is31fl3743a = "0.1.0" | ||
``` | ||
|
||
## Graphics | ||
|
||
This driver contains optional support for the [embedded-graphics](https://docs.rs/embedded-graphics/latest/embedded_graphics/) library. | ||
Enable the `embedded_graphics` feature to use it. | ||
|
||
The `gaypride` example shows off a use of this. | ||
## References | ||
|
||
## Inspiration | ||
Contains code derived from: | ||
|
||
This driver is ~~ripped off~~ modified from [gleich](https://github.com/gleich/)'s [is31fl3731 crate](https://github.com/gleich/is31fl3731). | ||
I was originally planning on just making a PR, but the driver ended up too differet. | ||
- https://github.com/FrameworkComputer/is31fl3741-rs | ||
- https://github.com/stillinbeta/is31fl3741 | ||
- https://github.com/gleich/is31fl3731 | ||
|
||
That driver is a port of [adafruit's driver for the is31fl3731](https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731) in the Rust programming language. | ||
The 43A chip is the I2C variant, the 43B chip is the SPI variant of the same chip. | ||
For the SPI variant of the device, consider using the `is31fl3741b` crate instead. |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.