FastLED 3.9.7
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"

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]
 

Macro Definition Documentation

◆ BRIGHTNESS

#define BRIGHTNESS   96

Definition at line 25 of file WasmScreenCoords.ino.

◆ COLOR_ORDER

#define COLOR_ORDER   GRB

Definition at line 26 of file WasmScreenCoords.ino.

◆ LED_PIN

#define LED_PIN   3

Definition at line 24 of file WasmScreenCoords.ino.

◆ NUM_LEDS

#define NUM_LEDS   256

Definition at line 27 of file WasmScreenCoords.ino.

Function Documentation

◆ loop()

void loop ( )

Definition at line 67 of file WasmScreenCoords.ino.

◆ make_map()

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

Definition at line 33 of file WasmScreenCoords.ino.

◆ setup()

void setup ( )

Definition at line 44 of file WasmScreenCoords.ino.

Variable Documentation

◆ leds

CRGB leds[NUM_LEDS]

Definition at line 29 of file WasmScreenCoords.ino.

◆ leds2

CRGB leds2[NUM_LEDS]

Definition at line 30 of file WasmScreenCoords.ino.