change matrix orientation

master
JbLb 8 years ago
parent ac971d4c57
commit 5a88e45430

@ -51,15 +51,17 @@ void configModeCallback (WiFiManager *myWiFiManager) { // AP config mode
void setup() { void setup() {
Serial.begin(115200); // initialize serial communications Serial.begin(115200); // initialize serial communications
DEBUG_PRINT(F("\n\r")); DEBUG_PRINT(F("\r\n"));
matrix.fillScreen(LOW); //clr screen matrix.fillScreen(LOW); //clr screen
matrix.setIntensity(brightness);
initOTA(); initOTA();
for (int i=0; i<numberOfHorizontalDisplays; i++){ for (int i=0; i<numberOfHorizontalDisplays; i++){
DEBUG_PRINT(F("Changing orientation of display #")); DEBUG_PRINT(F("Changing orientation of display #"));
DEBUG_PRINTLN(i); DEBUG_PRINTLN(i);
matrix.setRotation(i, 1); matrix.setRotation(i, 1); // chaque matrice
matrix.setRotation(2); // l'ensemble de l'afficheur
} }

Loading…
Cancel
Save