|
2 | 2 |
|
3 | 3 | ## What?
|
4 | 4 |
|
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: |
6 | 20 | 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 |
8 | 22 | the extra CPU power, extra RAM, etc... In my specific case, it also allows displaying
|
9 | 23 | arduino code on the faster and more capable rpi-rgb-led-matrix RGBPanel driver.
|
10 | 24 |
|
| 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 | + |
11 | 33 | 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
|
12 | 34 |
|
13 | 35 | After you run git submodules init, you will find my suite of demos from
|
@@ -85,8 +107,17 @@ will not require it.
|
85 | 107 |
|
86 | 108 | ### Makefile
|
87 | 109 |
|
| 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 | + |
88 | 119 | ```
|
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_): |
90 | 121 | cd examples/Adafruit_touchpaint
|
91 | 122 |
|
92 | 123 | # Compile the code
|
|
0 commit comments