Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes a few typos, panel resolutions and formatting #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ For more details check out the [SDCardTest Example](/examples/TrinityFeatures/SD

### My colours are mixed up/not right

Well thats not technically a question, but I get you!
Well that's not technically a question, but I get you!

Some matrix panels have some of the colour channels swapped around for some reason. The most common one I've seen is Blue and Green mixed, which seems to lead to a lot of purple images.

Expand All @@ -140,7 +140,7 @@ I have not tried, but the I2S Matrix library doesn't seem to support it by defau

"Trinity" has a lot of significance for Irish people.

The Trinity Knots symbol is something from Irish/Celtic history and is instantly recognizable as a symbol of Ireland. There are examples of artifacts dating back to the 8th century with Trinity Knots on them.
The Trinity Knots symbol is something from Irish/Celtic history and is instantly recognizable as a symbol of Ireland. There are examples of artefacts dating back to the 8th century with Trinity Knots on them.

The Ireland national symbol is the shamrock, one of the main significances of the shamrock is a way to represent the Christian Holy Trinity. It's said that St Patrick used a shamrock to represent the Holy Trinity when he came to bring Christianity to Ireland.

Expand Down
20 changes: 10 additions & 10 deletions examples/Basics/ColourTest/ColourTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
// Can be installed from the library manager
// https://github.com/adafruit/Adafruit-GFX-Library

// -------------------------------------
// --------------------------------
// ------- Matrix Config ------
// -------------------------------------
// --------------------------------

const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another
const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another.

// See the "displaySetup" method for more display config options

Expand All @@ -61,9 +61,9 @@ uint16_t myBLUE = dma_display->color565(0, 0, 255);

void displaySetup() {
HUB75_I2S_CFG mxconfig(
panelResX, // module width
panelResY, // module height
panel_chain // Chain length
panelResX, // Module width
panelResY, // Module height
panel_chain // Chain length
);

// If you are using a 64x64 matrix you need to pass a value for the E pin
Expand Down Expand Up @@ -92,11 +92,11 @@ void setup() {
displaySetup();

// Can be set between 0 and 255
// WARNING: The birghter it is, the more power it uses
// WARNING: The brighter it is, the more power it uses
// Could take up to 3A on full brightness
dma_display->setBrightness8(100); //0-255


dma_display->clearScreen();
dma_display->fillScreen(myWHITE);

Expand Down
30 changes: 14 additions & 16 deletions examples/Basics/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*******************************************************************

A simple example showing different size fonts in different colours

Parts Used:
Expand All @@ -8,14 +7,13 @@
If you find what I do useful and would like to support me,
please consider becoming a sponsor on Github
https://github.com/sponsors/witnessmenow/

Written by Brian Lough
YouTube: https://www.youtube.com/brianlough
Tindie: https://www.tindie.com/stores/brianlough/
Twitter: https://twitter.com/witnessmenow
*******************************************************************/


// ----------------------------
// Additional Libraries - each one of these will need to be installed.
// ----------------------------
Expand All @@ -35,20 +33,20 @@
// Can be installed from the library manager
// https://github.com/adafruit/Adafruit-GFX-Library

// -------------------------------------
// --------------------------------
// ------- Matrix Config ------
// -------------------------------------
// --------------------------------

const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another
const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another.

// Note about chaining panels:
// By default all matrix libraries treat the panels as been connected horizontally
// (one long display). The I2S Matrix library supports different display configurations
// Details here:
// Details here:

// See the setup method for more display config options
// See the "displaySetup" method for more display config options

//------------------------------------------------------------------------------------------------------------------

Expand All @@ -62,16 +60,16 @@ uint16_t myBLUE = dma_display->color565(0, 0, 255);

void displaySetup() {
HUB75_I2S_CFG mxconfig(
panelResX, // module width
panelResY, // module height
panel_chain // Chain length
panelResX, // Module width
panelResY, // Module height
panel_chain // Chain length
);

// This is how you enable the double buffer.
// Double buffer can help with animation heavy projects
// It's not needed for something simple like this, but some
// of the other examples make use of it.

//mxconfig.double_buff = true;

// If you are using a 64x64 matrix you need to pass a value for the E pin
Expand Down Expand Up @@ -99,11 +97,11 @@ void setup() {
Serial.begin(115200);

displaySetup();

dma_display->clearScreen();
dma_display->fillScreen(myBLACK);
dma_display->setTextWrap(false);

dma_display->setTextSize(1); // size 1 == 8 pixels high
dma_display->setTextColor(myBLUE);
dma_display->setCursor(0, 0);
Expand Down
21 changes: 10 additions & 11 deletions examples/Basics/PanelChecker/PanelChecker.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Usage:
On startup touch none/either/both of the built-in touch pads of the Trinity
to enable different modes

T8:
Not Touched -> clkphase defaults to true
Touched -> mxconfig.clkphase = false;
Expand Down Expand Up @@ -50,13 +50,13 @@
// Can be installed from the library manager
// https://github.com/adafruit/Adafruit-GFX-Library

// -------------------------------------
// --------------------------------
// ------- Matrix Config ------
// -------------------------------------
// --------------------------------

const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another
const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another.

// See the "displaySetup" method for more display config options

Expand All @@ -72,9 +72,9 @@ uint16_t myBLUE = dma_display->color565(0, 0, 255);

void displaySetup() {
HUB75_I2S_CFG mxconfig(
panelResX, // module width
panelResY, // module height
panel_chain // Chain length
panelResX, // Module width
panelResY, // Module height
panel_chain // Chain length
);


Expand All @@ -96,7 +96,6 @@ void displaySetup() {

mxconfig.gpio.e = 18;



if (touch8detected) {
// May or may not be needed depending on your matrix
Expand All @@ -123,7 +122,7 @@ void setup() {

displaySetup();

dma_display->clearScreen();
dma_display->clearScreen();
dma_display->fillScreen(myBLACK);
dma_display->setTextWrap(false);

Expand Down
34 changes: 17 additions & 17 deletions examples/BoardTest/BoardTest.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*******************************************************************
The test sketch that was ran on every Trinity during testing.

It is a cobination of some of the other examples:
It is a combination of some of the other examples:
- Hello World
- Colour Test (just the white part)
- Falling Sand
Expand Down Expand Up @@ -61,25 +61,25 @@ bool changeDriver = true;
// Can be installed from the library manager
// https://github.com/adafruit/Adafruit-GFX-Library

// -------------------------------------
// --------------------------------
// ------- Matrix Config ------
// -------------------------------------
// --------------------------------

const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another
const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another.

// See the "displaySetup" method for more display config options

// -------------------------------------
// ------- Other Config Config ------
// -------------------------------------
// -------------------------------
// ------- Other Config ------
// -------------------------------

#define TOUCH_THRESHOLD 38 // Bigger Threshold == more sensitive (resting is about 48)
#define TOUCH_THRESHOLD 38 // Bigger Threshold == more sensitive (resting is about 48)

#define SHOW_TIME 10
#define SHOW_TIME 10

#define MAX_FPS 100 // Maximum redraw rate, frames/second
#define MAX_FPS 100 // Maximum redraw rate, frames/second
#define DISPLAY_FPS 50

//#define SHOW_FPS
Expand Down Expand Up @@ -249,9 +249,9 @@ bool reconfigDisplay = false;

void displayReconfig() {
HUB75_I2S_CFG mxconfig(
panelResX, // module width
panelResY, // module height
panel_chain // Chain length
panelResX, // Module width
panelResY, // Module height
panel_chain // Chain length
);

mxconfig.double_buff = true;
Expand Down Expand Up @@ -331,8 +331,8 @@ void setup() {
//touchAttachInterrupt(T8, gotTouch8, TOUCH_THRESHOLD);
//touchAttachInterrupt(T9, gotTouch9, TOUCH_THRESHOLD);

for (uint8_t y = 0; y < MATRIX_HEIGHT; y++) {
for (uint8_t x = 0; x < MATRIX_WIDTH; x++) {
for (uint8_t y = 0; y < panelResY; y++) {
for (uint8_t x = 0; x < panelResX; x++) {
screenPixels[x][y] = 65535;
}
}
Expand Down
6 changes: 3 additions & 3 deletions examples/BoardTest/FPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Written by @tetra3dprint
Twiter: https://twitter.com/tetra3dprint
Github: https://github.com/tetra3dprint

*******************************************************************/
//------------------------------------------------------------------------------------------------------------------
class FPS
Expand Down Expand Up @@ -37,11 +37,11 @@ class FPS
FrameCount++;
currentMillis = millis();
passedMillis = currentMillis - startMillis;
if (passedMillis > oneThou) {
if (passedMillis > oneThou) {
long remainder = passedMillis - oneThou;
startMillis = currentMillis + remainder; // already started the next 1000 millis frame
float FPM = (float)FrameCount / (float)passedMillis;
FrameCount = FPM * (float)remainder; // number of frames already rendered in the next 1000 millis frame
FrameCount = FPM * (float)remainder; // number of frames already rendered in the next 1000 millis frame
FPSActual = FPM * oneThouF; // adjust the FPS to exactly 1000 millis
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/BoardTest/pallet.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const uint8_t PROGMEM pallet[] = {/* RGB888 R,G,B,R,G,B,R,G,B,... */
const uint8_t PROGMEM pallet[] = {/* RGB888 R,G,B,R,G,B,R,G,B,... */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x05,0x00,0x00,0x0a,0x00,0x00,0x10,0x00,0x00,0x15,0x00,0x00,0x1b,0x00,0x00,0x20,0x00,0x00,0x25,0x00,0x00,0x2b,0x00,0x00,0x31,0x00,0x00,0x36,0x00,0x00,0x3c,0x00,0x00,0x41,0x00,0x00,0x46,0x00,0x00,0x4c,0x00,0x00,0x52,0x00,0x00,0x57,0x00,0x00,0x5d,0x00,0x00,0x62,0x00,0x00,0x68,0x00,0x00,0x6d,0x00,0x00,0x73,0x00,0x00,0x79,0x00,0x00,0x7e,0x00,0x00,0x83,0x00,0x00,0x89,0x00,0x00,0x8e,0x00,0x00,0x94,0x00,0x00,0x9a,0x00,0x00,0x9f,0x00,0x00,0xa5,0x00,0x00,0xaa,0x00,0x00,0xb0,0x00,0x00,0xb5,0x00,0x00,0xbb,0x00,0x00,0xc0,0x00,0x00,0xc6,0x00,0x00,0xcb,0x00,0x00,0xd1,0x00,0x00,0xd7,0x00,0x00,0xdc,0x00,0x00,0xe1,0x00,0x00,0xe6,0x00,0x00,0xe8,0x02,0x00,0xe9,0x08,0x00,0xe9,0x0f,0x00,0xe9,0x13,0x00,0xe9,0x16,0x00,0xe9,0x1b,0x00,0xe9,0x21,0x00,0xe9,0x26,0x00,0xe9,0x2a,0x00,0xe9,0x2e,0x00,0xe9,0x32,0x00,0xe9,0x37,0x00,0xe9,0x3b,0x00,0xe9,0x3f,0x00,0xe9,0x44,0x00,0xe9,0x4a,0x00,0xe9,0x4e,0x00,0xe9,0x52,0x00,0xe9,0x56,0x00,0xe9,0x5a,0x00,0xe9,0x5d,0x00,0xe9,0x63,0x00,0xe9,0x67,0x00,0xe9,0x6b,0x00,0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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
18 changes: 9 additions & 9 deletions examples/BuildingBlocks/Images/DisplayGIF/DisplayGIF.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Displays gifs on a matrix display

This loads the gifs from memory, this is the fastest way

But speeds probably isn't super important for this, there is an example with the I2S matrix
library tha loads the gifs from SPIFFS, which is probably a better way of doing it:
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/tree/master/examples/AnimatedGIFPanel
Expand Down Expand Up @@ -58,13 +58,13 @@
// Can be installed from the library manager
// https://github.com/adafruit/Adafruit-GFX-Library

// -------------------------------------
// --------------------------------
// ------- Matrix Config ------
// -------------------------------------
// --------------------------------

const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another
const int panelResX = 64; // Number of pixels wide of each INDIVIDUAL panel module.
const int panelResY = 64; // Number of pixels tall of each INDIVIDUAL panel module.
const int panel_chain = 1; // Total number of panels chained one to another.

// See the "displaySetup" method for more display config options

Expand Down Expand Up @@ -157,9 +157,9 @@ void GIFDraw(GIFDRAW *pDraw)

void displaySetup() {
HUB75_I2S_CFG mxconfig(
panelResX, // module width
panelResY, // module height
panel_chain // Chain length
panelResX, // Module width
panelResY, // Module height
panel_chain // Chain length
);

// If you are using a 64x64 matrix you need to pass a value for the E pin
Expand Down
Loading