You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[RGB LED Ring](https://github.com/Fattoresaimon/RGB_LED_Ring) Library description [here](https://github.com/Fattoresaimon/ArduinoDuPPaLib/blob/master/examples/RGB%20LED%20Ring/README.md)
15
-
15
+
-[RGB LED Ring Small](https://github.com/Fattoresaimon/RGB_LED_Ring_Small) Library description [here](https://github.com/Fattoresaimon/ArduinoDuPPaLib/blob/master/examples/RGB%20LED%20Ring%20Small/README.md)
Here you can find the library description of the [RGB LED Ring](https://github.com/Fattoresaimon/RGB_LED_Ring) for the Arduino IDE.
8
-
The RGB LED Ring is based on the driver ISSI [IS31FL3737 ](http://www.issi.com/WW/pdf/31FL3737.pdf), for more functionality please check the datasheet of the driver.
7
+
Here you can find the project description of the [RGB LED Ring Small](https://github.com/Fattoresaimon/RGB_LED_Ring_Small).
8
+
The RGB LED Ring is based on the driver ISSI [IS31FL3746A](https://www.lumissil.com/assets/pdf/core/IS31FL3746A_DS.pdf), for more functionality please check the datasheet of the driver.
9
9
At the moment the breathing effect are not implemented.
10
10
11
-
The RGB LED Ring is available on [Tindie!](https://www.tindie.com/products/20279/)
11
+
The RGB LED Ring is available on [DuPPa Store!](https://www.duppa.net/shop/rgb-led-ring-small/)
12
12
13
13
## Initialization of the class
14
14
15
-
The library makes available the class **LEDRing**
16
-
To initialize the library, you have to declare an instance of the class **LEDRing** for each LED Ring.
15
+
The library makes available the class **LEDRingSmall**
16
+
To initialize the library, you have to declare an instance of the class **LEDRingSmall** for each LED Ring.
Declaration of the RGB LED Ring with the jumper 0x5A soldered
22
+
Declaration of the RGB LED Ring with the jumper SJ2 and SJ7 soldered.
23
+
The RGB LED Ring v1.1 it have 8 Jumpers for setting the address, they are divided in 2 groups of 4 jumpers. Only 1 jumper per group should be soldered, this make 16 possible combinations.
24
+
Possible combination are the following:
25
+
26
+
| Jumper first group | Jumper second group | I2C Address |
27
+
| ------------ | ------------ | :--: |
28
+
| ISSI3746_SJ1 | ISSI3746_SJ5 | 0x60 |
29
+
| ISSI3746_SJ2 | ISSI3746_SJ5 | 0x62 |
30
+
| ISSI3746_SJ3 | ISSI3746_SJ5 | 0x64 |
31
+
| ISSI3746_SJ4 | ISSI3746_SJ5 | 0x66 |
32
+
| ISSI3746_SJ1 | ISSI3746_SJ6 | 0x68 |
33
+
| ISSI3746_SJ2 | ISSI3746_SJ6 | 0x6A |
34
+
| ISSI3746_SJ3 | ISSI3746_SJ6 | 0x6C |
35
+
| ISSI3746_SJ4 | ISSI3746_SJ6 | 0x6E |
36
+
| ISSI3746_SJ1 | ISSI3746_SJ7 | 0x70 |
37
+
| ISSI3746_SJ2 | ISSI3746_SJ7 | 0x72 |
38
+
| ISSI3746_SJ3 | ISSI3746_SJ7 | 0x74 |
39
+
| ISSI3746_SJ4 | ISSI3746_SJ7 | 0x76 |
40
+
| ISSI3746_SJ1 | ISSI3746_SJ8 | 0x78 |
41
+
| ISSI3746_SJ2 | ISSI3746_SJ8 | 0x7A |
42
+
| ISSI3746_SJ3 | ISSI3746_SJ8 | 0x7C |
43
+
| ISSI3746_SJ4 | ISSI3746_SJ8 | 0x7E |
44
+
23
45
24
46
25
47
## Configuration
26
48
27
-
### void LEDRing_Reset(void)
28
-
Reset all the IS31FL3737 to the default state
49
+
### void LEDRingSmall_Reset(void)
50
+
Reset all the IS31FL3746A to the default state
29
51
30
52
### void LEDRing_Configuration(uint8_t conf)
31
-
This method write the register ad the address 00h of the IS31FL3737. Please refer the datasheet for further information.
53
+
This method write the register ad the address 50h of the IS31FL3746A. Please refer the datasheet for further information.
32
54
33
55
### void LEDRing_GlobalCurrent(uint8_t conf)
34
-
This method write the register 01h and it set the LEDs current.
56
+
This method write the register 51h and it set the LEDs current.
35
57
It's possible to set up to 256 step from 0 to 0xFF.
36
58
Higher value make the LEDs brighter.
37
59
38
-
### void LEDRing_PULLUP(uint8_t pull)
39
-
### void LEDRing_PULLDOWN(uint8_t pull)
40
-
Configure the PULLUP or PULLDOWN resistor.
41
-
This resistor are used for avoid the "ghost" effect in a matrix LED architecture.
42
-
The possible value are the following:
43
-
44
-
| PUR / PDR | Value |
45
-
| :--: | ---- |
46
-
| 000 | No pull-up resistor |
47
-
| 001 | 0.5kΩ |
48
-
| 010 | 1.0kΩ |
49
-
| 011 | 2.0kΩ |
50
-
| 100 | 4.0kΩ |
51
-
| 101 | 8.0kΩ |
52
-
| 110 | 16kΩ |
53
-
| 111 | 32kΩ |
54
-
55
-
### void LEDRing_EnableAllOutput(void)
56
-
This method enable all the LEDs, by default the LEDs are disabled.
Configure the PWM frequency. It's possible to configure the PWM frequency from 29kHz to 453Hz. You can refer to the IS31FL3746A datasheet at the E2h register for further information.
77
+
78
+
### uint8_t LEDRing_Temperature(void);
79
+
Get the temperature status register. Refer to the IS31FL3746A datasheet at the 24h register for further information.
60
80
61
81
### void LEDRing_PWM_MODE(void)
62
82
This method set all the LEDs in PWM mode.
@@ -66,25 +86,25 @@ This method set the PWM value to 0 for each LED.
Copy file name to clipboardExpand all lines: examples/RGB LED Ring/README.md
+40-29Lines changed: 40 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@
4
4
5
5
## Introduction
6
6
7
-
Here you can find the library description of the [RGB LED Ring](https://github.com/Fattoresaimon/RGB_LED_Ring) for the Arduino IDE.
8
-
The RGB LED Ring is based on the driver ISSI [IS31FL3737 ](http://www.issi.com/WW/pdf/31FL3737.pdf), for more functionality please check the datasheet of the driver.
7
+
Here you can find the project description of the [RGB LED Ring Small](https://github.com/Fattoresaimon/RGB_LED_Ring).
8
+
The RGB LED Ring is based on the driver ISSI [IS31FL3745](https://www.lumissil.com/assets/pdf/core/IS31FL3745_DS.pdf), for more functionality please check the datasheet of the driver.
9
9
At the moment the breathing effect are not implemented.
10
10
11
-
The RGB LED Ring is available on [Tindie!](https://www.tindie.com/products/20279/)
11
+
The RGB LED Ring is available on [DuPPa Store!](https://www.duppa.net/shop/rgb-led-ring/)
12
12
13
13
## Initialization of the class
14
14
@@ -17,46 +17,57 @@ To initialize the library, you have to declare an instance of the class **LEDRin
17
17
For example:
18
18
19
19
```C++
20
-
LEDRing LEDRing(0x5A);
20
+
LEDRing LEDRing(ISSI3745_SJ1 | ISSI3745_SJ5);
21
21
```
22
-
Declaration of the RGB LED Ring with the jumper 0x5A soldered
22
+
Declaration of the RGB LED Ring with the jumper SJ1 and SJ5 soldered.
23
+
The RGB LED Ring v1.1 it have 8 Jumpers for setting the address, they are divided in 2 groups of 4 jumpers. Only 1 jumper per group should be soldered, this make 16 possible combinations.
24
+
Possible combination are the following:
25
+
26
+
| Jumper first group | Jumper second group | I2C Address |
27
+
| ------------ | ------------ | :--: |
28
+
| ISSI3745_SJ1 | ISSI3745_SJ5 | 0x40 |
29
+
| ISSI3745_SJ2 | ISSI3745_SJ5 | 0x42 |
30
+
| ISSI3745_SJ3 | ISSI3745_SJ5 | 0x44 |
31
+
| ISSI3745_SJ4 | ISSI3745_SJ5 | 0x46 |
32
+
| ISSI3745_SJ1 | ISSI3745_SJ6 | 0x48 |
33
+
| ISSI3745_SJ2 | ISSI3745_SJ6 | 0x4A |
34
+
| ISSI3745_SJ3 | ISSI3745_SJ6 | 0x4C |
35
+
| ISSI3745_SJ4 | ISSI3745_SJ6 | 0x4E |
36
+
| ISSI3745_SJ1 | ISSI3745_SJ7 | 0x50 |
37
+
| ISSI3745_SJ2 | ISSI3745_SJ7 | 0x52 |
38
+
| ISSI3745_SJ3 | ISSI3745_SJ7 | 0x54 |
39
+
| ISSI3745_SJ4 | ISSI3745_SJ7 | 0x56 |
40
+
| ISSI3745_SJ1 | ISSI3745_SJ8 | 0x58 |
41
+
| ISSI3745_SJ2 | ISSI3745_SJ8 | 0x5A |
42
+
| ISSI3745_SJ3 | ISSI3745_SJ8 | 0x5C |
43
+
| ISSI3745_SJ4 | ISSI3745_SJ8 | 0x5E |
44
+
23
45
24
46
25
47
## Configuration
26
48
27
49
### void LEDRing_Reset(void)
28
-
Reset all the IS31FL3737 to the default state
50
+
Reset all the IS31FL3745 to the default state
29
51
30
52
### void LEDRing_Configuration(uint8_t conf)
31
-
This method write the register ad the address 00h of the IS31FL3737. Please refer the datasheet for further information.
53
+
This method write the register ad the address 00h of the IS31FL3745. Please refer the datasheet for further information.
32
54
33
55
### void LEDRing_GlobalCurrent(uint8_t conf)
34
56
This method write the register 01h and it set the LEDs current.
35
57
It's possible to set up to 256 step from 0 to 0xFF.
36
58
Higher value make the LEDs brighter.
37
59
38
-
### void LEDRing_PULLUP(uint8_t pull)
39
-
### void LEDRing_PULLDOWN(uint8_t pull)
40
-
Configure the PULLUP or PULLDOWN resistor.
41
-
This resistor are used for avoid the "ghost" effect in a matrix LED architecture.
42
-
The possible value are the following:
43
-
44
-
| PUR / PDR | Value |
45
-
| :--: | ---- |
46
-
| 000 | No pull-up resistor |
47
-
| 001 | 0.5kΩ |
48
-
| 010 | 1.0kΩ |
49
-
| 011 | 2.0kΩ |
50
-
| 100 | 4.0kΩ |
51
-
| 101 | 8.0kΩ |
52
-
| 110 | 16kΩ |
53
-
| 111 | 32kΩ |
54
-
55
-
### void LEDRing_EnableAllOutput(void)
56
-
This method enable all the LEDs, by default the LEDs are disabled.
0 commit comments