# LED display for Paricle Argon

**URL:** <https://community.particle.io/t/led-display-for-paricle-argon/47693>\
**Category:** Hardware\
**Tags:** argon\
**Created:** [February 10, 2019, 8:41pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693 "2019-02-10T20:41:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [February 10, 2019, 8:41pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/1 "2019-02-10T20:41:53Z")

</div>

Hi,

I am looking for an led display, similar to this one [[https://www.adafruit.com/product/420](https://www.adafruit.com/product/420)], compatible with Particle Argon. Any recommendations?

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [February 11, 2019, 12:34am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/2 "2019-02-11T00:34:10Z")

</div>

@muneebr1, there is a library for the Photon for those types of display called RGBMatrixPanel. However, it uses a hardware timer library call SparkIntervalTimer which has not been ported to the mesh devices due to hardware differences between the STM32F205 used in the Photon/Electron and the nRF52840 used in the mesh devices. Once the mesh DeviceOS has stabilized and more then one hardware timer is made available, I will be writing a version of SparkIntervalTimer for the mesh devices.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [February 11, 2019, 12:36am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/3 "2019-02-11T00:36:09Z")

</div>

@peekay123 Thanks for the reply, i am fine with using the photon, as long as it works. If i use the photon and buy this display, would it work?

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [February 11, 2019, 1:46am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/4 "2019-02-11T01:46:11Z")

</div>

@muneebr1, it will. Be aware that the display is driven by bit-banging code so it only support 512 colours (3 bits per colour). Otherwise, it works very well.

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [February 11, 2019, 2:06am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/5 "2019-02-11T02:06:11Z")

</div>

My LED Matrix display running Paul’s clock code is still running perfectly with a Photon.

It’s one of those things that you use multiple times every day of your life.

---

<div class="post-metadata">

**Author:** ![DevRandom](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@DevRandom](https://community.particle.io/u/DevRandom)\
**Post date:** [February 11, 2019, 5:08am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/6 "2019-02-11T05:08:26Z")

</div>

Do we have any estimate yet when the mesh devices will be developed to that point? I’m waiting for it for a couple of reasons including these hub75 displays. Even a rough baillpark, by summer? In 2019 at all?

I don’t mean rush the particle team, and I’m much more eager for better mesh stability, message reliability, and high available mesh networks which are rightfully higher priority, but are user hardware timers even on the timeline? If it’s going to be too long I’ll probably just buy a feather M4. But even if we’re talking 6 months, I’d rather wait for mesh.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [February 11, 2019, 11:36am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/7 "2019-02-11T11:36:19Z")

</div>

@RWB and @peekay123 Thanks for your replies 🙂 Is there any example code i can look at on how to use this library and set up everything up? Thank you again, so much!

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [February 11, 2019, 1:35pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/8 "2019-02-11T13:35:36Z")

</div>

@muneebr1, you will find RGBPixelClock in the Web IDE. However, it seems that RGBMatrixPanel is currently a private library. I need to publish it to make it public which I can do later today.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 3, 2019, 12:58am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/9 "2019-03-03T00:58:45Z")

</div>

Hey @peekay123

I finally received the adafruit 32 x 32 panel.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/a/c/ace98acb35b6a1ec16c9f0ec0e6ac1d4f307c0bc.jpg)

I am a little confused about the wiring, i was able to locate this on the ada fruit library

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/5/d/5d748cbf44a9205a4e83aff264cce6c828b91d6f.png)

What would be the corresponding connections to the particle Photon, is some shield required for this?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 3, 2019, 7:46am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/10 "2019-03-03T07:46:29Z")

</div>

The RGBMatrixPanel library demos do provide you with the answer

```cpp
#if (RGBSHIELDVERSION == 4) // Newest shield with SD socket onboard
	#warning "new shield"
	#define CLK	D6
	#define OE	D7
	#define LAT	TX
	#define A A0
	#define B A1
	#define C A2
	#define D	RX
#else
	#warning "old shield"
	#define CLK	D6
	#define OE D7
	#define LAT	A4
	#define A A0
	#define B A1
	#define C A2
	#define D	A3
#endif
/ **************************************** /

RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);

```

Don’t mind the term _shield_. This refers to some custom PCBs @peekay123 has produced himself (he may still have some to sell 😉 ) but you can just use jumper wires for testing and you can use other pins that may be more convenient for your too.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 3, 2019, 11:47pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/11 "2019-03-03T23:47:02Z")

</div>

Hey @ScruffR thank you for your response 🙂

So i followed the following configuration and connected it to JIN.

> [@ScruffR](#):
>
> #define CLK D6  
> #define OE D7  
> #define LAT TX  
> #define A A0  
> #define B A1  
> #define C A2  
> #define D RX

The screen lights up and tries to do something but its gibberish, random colors coming up. I tried the colorwheel example provided in the library. Any ideas what i could be missing?

Moreover does the GND signal need to be connected as well from the photon? I did though, but that did not help either.

Thanks!

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 3, 2019, 11:52pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/12 "2019-03-03T23:52:48Z")

</div>

For reference, This is what i am getting.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/0/c/0cc8aef01c1124fc1dc3b4cb357e5fd6516e95ca.jpg)

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 4, 2019, 6:02am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/13 "2019-03-04T06:02:54Z")

</div>

Is this pin configuration also activated in code?

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 4, 2019, 11:24am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/14 "2019-03-04T11:24:24Z")

</div>

Hey @ScruffR!

Are you referring to this? Its already selected as default in the code.

```
// NOTE: Version 4 of the RGBMatrix Shield only works with Photon and Electron (not Core)
#define RGBSHIELDVERSION 4
```

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 4, 2019, 11:25am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/15 "2019-03-04T11:25:32Z")

</div>

Yes, I was but wasn’t sure whether or not you still go that in your code.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 4, 2019, 11:32am UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/16 "2019-03-04T11:32:48Z")

</div>

I can double check the wiring again, its either that or i got a bad display. Cant think of anything else.

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [March 4, 2019, 1:36pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/17 "2019-03-04T13:36:48Z")

</div>

@muneebr1, here is a quick checklist to be mindful of:

- You also need to connect the R-G-B pins as follows:

```auto
#define R1 D0 // bit 2 = RED 1
#define G1 D1 // bit 3 = GREEN 1
#define B1 D2 // bit 4 = BLUE 1
#define R2 D3 // bit 5 = RED 2
#define G2 D4 // bit 6 = GREEN 2
#define B2 D5 // bit 7 = BLUE 2

```

- Don’t power the panel from the Vin of the Photon. Instead, power the Photon from the same 5V supply as the panel (via Vin). If you power the Photon via USB and the Panel via a 5v power supply, make sure the grounds are connected.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 4, 2019, 1:52pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/18 "2019-03-04T13:52:19Z")

</div>

hey!

thanks! i have not connected these. do all 6 of these need to be connected?

and i am using a dual usb power bank to power the display and the photon.

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [March 4, 2019, 2:12pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/19 "2019-03-04T14:12:07Z")

</div>

@muneebr1, YES you need ALL of those.

> [@muneebr1](#):
>
> i am using a dual usb power bank to power the display and the photon

If I understand correctly, you have one USB going to the Photon and the other going to a directly to power the panel? I have never tried this but remember that a _good_ USB cable can handle 2 Amps at best. The RGB panel with all LEDs ON at full brightness will draw upwards of 4A! However, the RGBPixelClock doesn't do this so you should be ok.

---

<div class="post-metadata">

**Author:** ![muneebr1](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@muneebr1](https://community.particle.io/u/muneebr1)\
**Post date:** [March 4, 2019, 2:42pm UTC](https://community.particle.io/t/led-display-for-paricle-argon/47693/20 "2019-03-04T14:42:03Z")

</div>

thanks thats probably why its not working. i will connect the rest as well

and i already looked into that. i will never be lighting the entire display up, just need to display some text.

[Next page](https://community.particle.io/t/led-display-for-paricle-argon/47693.md?page=2)
