![]() |
eBoard
①⑧⑨
Written for SIA 2017/2018
|
a simple neo-animation example More...
#include <eBoard.h>
Go to the source code of this file.
Macros | |
#define | IGNORE_SIZE |
#define | EBOARD_USE_UTILITY 0x0 |
#define | EBOARD_DEBUG_MODE 0x0 |
#define | EBOARD_CHECK_PINS 0x0 |
#define | EBOARD_CHECK_PINS_PWM 0x0 |
#define | EBOARD_NANO 0x1 |
#define | EBOARD_NEO 0x1 |
#define | PIXELS_COUNT 5 |
#define | RED 240 |
#define | GREEN 120 |
#define | BLUE 0 |
Functions | |
void | shiftPx (uint8_t &pixBuf) |
this will perform a single shift operation! More... | |
int | main () |
Variables | |
NeoPixel | pixels = NeoPixel( 5 ) |
the NeoPixel-object we use More... | |
a simple neo-animation example
Definition in file neo_animation.cpp.
#define BLUE 0 |
Definition at line 16 of file neo_animation.cpp.
Referenced by shiftPx().
#define EBOARD_CHECK_PINS 0x0 |
Definition at line 8 of file neo_animation.cpp.
#define EBOARD_CHECK_PINS_PWM 0x0 |
Definition at line 9 of file neo_animation.cpp.
#define EBOARD_DEBUG_MODE 0x0 |
Definition at line 7 of file neo_animation.cpp.
#define EBOARD_NANO 0x1 |
Definition at line 10 of file neo_animation.cpp.
#define EBOARD_NEO 0x1 |
Definition at line 11 of file neo_animation.cpp.
#define EBOARD_USE_UTILITY 0x0 |
Definition at line 6 of file neo_animation.cpp.
#define GREEN 120 |
Definition at line 15 of file neo_animation.cpp.
Referenced by shiftPx().
#define IGNORE_SIZE |
Definition at line 5 of file neo_animation.cpp.
#define PIXELS_COUNT 5 |
Definition at line 13 of file neo_animation.cpp.
Referenced by shiftPx().
#define RED 240 |
Definition at line 14 of file neo_animation.cpp.
Referenced by shiftPx().
int main | ( | void | ) |
Compiled Size for ARUDINO NANO: 2,870 bytes
[Version 3.8.10d]
Compiled Size for ARUDINO NANO: 2,778 bytes
Definition at line 44 of file neo_animation.cpp.
References NeoPixel::begin(), pixels, NeoPixel::setBrightness(), and shiftPx().
void shiftPx | ( | uint8_t & | pixBuf | ) |
this will perform a single shift operation!
pixBuf | the pixelBuffer [reference] |
Definition at line 24 of file neo_animation.cpp.
References BLUE, NeoPixel::Color(), GREEN, pixels, PIXELS_COUNT, RED, NeoPixel::setPixelColor(), and NeoPixel::show().
Referenced by main().