40 lines
932 B
C
40 lines
932 B
C
#ifndef _EMBEDDEDOUT_H
|
|
#define _EMBEDDEDOUT_H
|
|
|
|
#include "embeddednf.h"
|
|
|
|
|
|
//Controls brightness
|
|
#ifndef NOTE_FINAL_AMP
|
|
#define NOTE_FINAL_AMP 12 //Number from 0...255
|
|
#endif
|
|
|
|
//Controls, basically, the minimum size of the splotches.
|
|
#ifndef NERF_NOTE_PORP
|
|
#define NERF_NOTE_PORP 15 //value from 0 to 255
|
|
#endif
|
|
|
|
#ifndef NUM_LIN_LEDS
|
|
#define NUM_LIN_LEDS 32
|
|
#endif
|
|
|
|
#ifndef LIN_WRAPAROUND
|
|
#define LIN_WRAPAROUND 0 //Whether the output lights wrap around. (Can't easily run on embedded systems)
|
|
#endif
|
|
|
|
#ifdef SORT_NOTES
|
|
#define SORT_NOTES 0 //Whether the notes will be sorted.
|
|
#endif
|
|
|
|
extern uint8_t ledArray[];
|
|
extern uint8_t ledOut[]; //[NUM_LIN_LEDS*3]
|
|
extern uint8_t RootNoteOffset; //Set to define what the root note is. 0 = A.
|
|
void UpdateLinearLEDs();
|
|
|
|
uint32_t ECCtoHEX( uint8_t note, uint8_t sat, uint8_t val );
|
|
uint32_t EHSVtoHEX( uint8_t hue, uint8_t sat, uint8_t val ); //hue = 0..255 // TODO: TEST ME!!!
|
|
|
|
|
|
#endif
|
|
|