Skip to content

Commit df5b1bb

Browse files
committed
Merge branch 'master' of github.com:marcmerlin/ArduinoOnPc-FastLED-GFX-LEDMatrix
2 parents 73b9f6b + 3016ec8 commit df5b1bb

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

README.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,34 @@
22

33
## What?
44

5-
I modified the original to display on an rPi using RGBPanels thanks to this driver:
5+
With this software you can run an Arduino Sketch on your PC and is specifically designed to test code written for any of:
6+
- https://github.com/marcmerlin/Framebuffer_GFX (base class)
7+
- https://github.com/pixelmatix/SmartMatrix
8+
- https://github.com/adafruit/Adafruit-GFX-Library
9+
- https://github.com/FastLED/FastLED
10+
- https://github.com/marcmerlin/LEDMatrix
11+
using SDL on Linux
12+
13+
If you have run code that runs on any of:
14+
- https://github.com/marcmerlin/FastLED_NeoMatrix/
15+
- https://github.com/marcmerlin/SmartMatrix_GFX/
16+
- https://github.com/marcmerlin/FastLED_SPITFT_GFX (SSD1331, ILI9341, and ST7735 TFTs)
17+
it can then run with this linux/SDL backend too.
18+
19+
I modified the upstream ArduinoOnPC to display on an rPi using RGBPanels thanks to this driver:
620
https://github.com/marcmerlin/FastLED_RPIRGBPanel_GFX
7-
ArduinoOnPC in used here to run Arduino code on Raspberry Pis to take advantage of
21+
ArduinoOnPC is used here to run Arduino code on Raspberry Pis to take advantage of
822
the extra CPU power, extra RAM, etc... In my specific case, it also allows displaying
923
arduino code on the faster and more capable rpi-rgb-led-matrix RGBPanel driver.
1024

25+
For development/Debugging, you can also run on PC using the (slow) X11 output or faster SDL output.
26+
https://github.com/marcmerlin/ArduinoOnPc-FastLED-GFX-LEDMatrix/blob/master/examples/Makefile
27+
is used to select X11 vs SDL rendering on linux/intel. rPi is auto detected in
28+
https://github.com/marcmerlin/ArduinoOnPc-FastLED-GFX-LEDMatrix/blob/952bb957162238dc0ef6cbb0c3355e1c48959500/makeNativeArduino.mk#L32
29+
30+
In turn this affects
31+
https://github.com/marcmerlin/FastLED_NeoMatrix_SmartMatrix_LEDMatrix_GFX_Demos/blob/4436f8b5a71ceea4ef480f75f83b811b037c2cf6/neomatrix_config.h#L39 which will use one of the 3 available rendering backend for ArduinoOnPc.
32+
1133
Blog post with details: http://marc.merlins.org/perso/arduino/post_2020-01-01_Running-FastLED_-Adafruit_GFX_-and-LEDMatrix-code-on-High-Resolution-RGBPanels-with-a-Raspberry-Pi.html
1234

1335
After you run git submodules init, you will find my suite of demos from
@@ -85,8 +107,17 @@ will not require it.
85107

86108
### Makefile
87109

110+
111+
```
112+
# GFX examples that use either SDL (default on intel), X11, or RGBPanel (Default on rPi) output:
113+
cd examples/GFX_Sublime_Demos/
114+
examples/GFX_Sublime_Demos$ make
115+
examples/GFX_Sublime_Demos$ ./Sublime_Demo
116+
# Use numeric keypad + to make brighter or n/p to select demo
117+
```
118+
88119
```
89-
# cd into any example in examples folder, for example:
120+
# Original examples that only compile with the slow X11 backend (not prefixed by GFX_):
90121
cd examples/Adafruit_touchpaint
91122
92123
# Compile the code

0 commit comments

Comments
 (0)