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 <CapacitiveSensor.h> | |
#include <Servo.h> | |
// WS2812B definitions | |
#define NUM_LEDS 17 | |
#define DATA_PIN 7 | |
CRGB leds[NUM_LEDS]; | |
int bright = 3; |
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 "AnimatedImage.h" | |
void UAnimatedImage::SetCurrentFrame(int32 Frame) | |
{ | |
CurrentFrame = Frame; | |
if (CurrentFrame < 0) CurrentFrame = 0; | |
if (CurrentFrame > TotalFrames - 1) CurrentFrame = TotalFrames - 1; | |
SynchronizeProperties(); | |
} |
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
#pragma once | |
/** | |
* FAsyncQueue can be used to run asynchronous delegates in sequence, parallel and combinations of the above | |
* | |
* Use Add() to enqueue delegates matching FAsyncDelegate signature: | |
* a void function that accepts a single argument of another void function with no arguments. | |
* | |
* Static factories MakeSync, MakeSequence and MakeParallel can be used to wrap different type of delegates and | |
* delegate collections into a single FAsyncDelegate which can be enqueued with Add(). |
OlderNewer