This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
## Installation | |
# Windows | |
Install [Python 3](https://www.python.org/downloads/), then continue with the | |
[All operating systems](#allOS) section. | |
# Gentoo Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdarg.h> | |
#include <FastLED.h> | |
#define LED_TYPE WS2812B | |
#define DATA_PIN 2 | |
#define COLOR_ORDER GRB | |
#define XY_WIDTH 16 | |
#define XY_HEIGHT 16 | |
#define XY_LAYOUT (SERPENTINE | ROWMAJOR) | |
#define BRIGHTNESS 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Metaballs | |
//16x16 rgb led matrix demo | |
//Yaroslaw Turbin 20.07.2020 | |
//https://vk.com/ldirko | |
//https://www.reddit.com/user/ldirko/ | |
#include "FastLED.h" | |
// Matrix size | |
#define NUM_ROWS 16 | |
#define NUM_COLS 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
#include <colorutils.h> | |
enum XY_matrix_config {LINEAR = 0, SERPENTINE = 1, COLUMNMAJOR = 0, ROWMAJOR = 2, FLIPMAJOR = 4, FLIPMINOR = 8}; | |
#define BRIGHTNESS 32 | |
#define LED_PIN 2 | |
#define COLOR_ORDER GRB | |
#define CHIPSET WS2812B | |
#define kMatrixWidth 16 | |
#define kMatrixHeight 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// by <[email protected]> | |
// License: Creative Commons CC0 | |
#include <Arduino.h> | |
#include <FastLED.h> | |
#include <colorutils.h> | |
enum XY_matrix_config { | |
SERPENTINE = 1, | |
ROWMAJOR = 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define kMatrixWidth 16 | |
#define kMatrixHeight 16 | |
#define kMatrixSerpentine true | |
#define kMatrixRowMajor true | |
#define kMatrixFlipMajor true | |
#define kMatrixFlipMinor false | |
#define NUM_LEDS ((kMatrixWidth) * (kMatrixHeight)) | |
CRGB leds[NUM_LEDS + 1]; // 1 extra for XY() to use when out-of-bounds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// by <[email protected]> | |
// License: Creative Commons CC0 | |
#include <Arduino.h> | |
#include <FastLED.h> | |
#include <colorutils.h> | |
#define BRIGHTNESS 64 | |
#define LED_PIN 2 | |
#define COLOR_ORDER GRB |