FastLED 3.9.7
|
Simple test for screen coordinates in the web compiled version of FastLED.
This sketch is fully compatible with the FastLED web compiler. To use it do the following:
pip install fastled
fastled
Definition in file WasmScreenCoords.ino.
#include <stdio.h>
#include <string>
#include <vector>
#include <FastLED.h>
#include "fl/json.h"
#include "fl/slice.h"
#include "fl/screenmap.h"
#include "fl/math_macros.h"
Go to the source code of this file.
Macros | |
#define | LED_PIN 3 |
#define | BRIGHTNESS 96 |
#define | COLOR_ORDER GRB |
#define | NUM_LEDS 256 |
Functions | |
void | make_map (int stepx, int stepy, int num, std::vector< pair_xy_float > *_map) |
void | setup () |
void | loop () |
Variables | |
CRGB | leds [NUM_LEDS] |
CRGB | leds2 [NUM_LEDS] |
#define BRIGHTNESS 96 |
Definition at line 25 of file WasmScreenCoords.ino.
#define COLOR_ORDER GRB |
Definition at line 26 of file WasmScreenCoords.ino.
#define LED_PIN 3 |
Definition at line 24 of file WasmScreenCoords.ino.
#define NUM_LEDS 256 |
Definition at line 27 of file WasmScreenCoords.ino.
void loop | ( | ) |
Definition at line 67 of file WasmScreenCoords.ino.
void make_map | ( | int | stepx, |
int | stepy, | ||
int | num, | ||
std::vector< pair_xy_float > * | _map ) |
Definition at line 33 of file WasmScreenCoords.ino.
void setup | ( | ) |
Definition at line 44 of file WasmScreenCoords.ino.
CRGB leds[NUM_LEDS] |
Definition at line 29 of file WasmScreenCoords.ino.
CRGB leds2[NUM_LEDS] |
Definition at line 30 of file WasmScreenCoords.ino.