LedDisplay/vscode/OmobiLEDdisplayBluetooth/src/main.cpp

31 lines
637 B
C++
Raw Normal View History

#include <Arduino.h>
#include "OmobiLedDisplay.h"
#define PIN 4
OmobiLedDisplay *display;
void setup()
{
Serial.begin(115200);
Serial.printf("Los\n");
Adafruit_NeoMatrix *displayMatrix = new Adafruit_NeoMatrix(
8,
8,
1,
1,
PIN,
NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ROWS + NEO_TILE_PROGRESSIVE +
NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_ROWS + NEO_TILE_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
// create our display
display = new OmobiLedDisplay("OmobiLedDisplay1", displayMatrix);
}
void loop()
{
// nothing to do in loop
delay(1000);
}