FastLED 3.9.15
Loading...
Searching...
No Matches
WasmScreenCoords.ino File Reference

Detailed Description

Simple test for screen coordinates in the web compiled version of FastLED.

Author
Zach Vorhies

This sketch is fully compatible with the FastLED web compiler. To use it do the following:

  1. Install Fastled: pip install fastled
  2. cd into this examples page.
  3. Run the FastLED web compiler at root: 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"
+ Include dependency graph for WasmScreenCoords.ino:

Go to the source code of this file.

Macros

#define BRIGHTNESS   96
 
#define COLOR_ORDER   GRB
 
#define LED_PIN   3
 
#define NUM_LEDS   256
 

Functions

void loop ()
 
void make_map (int stepx, int stepy, int num, std::vector< pair_xy_float > *_map)
 
void setup ()
 

Variables

CRGB leds [NUM_LEDS]
 
CRGB leds2 [NUM_LEDS]