2015-07-29 07:56:18 +02:00
|
|
|
//Copyright 2015 <>< Charles Lohr under the ColorChord License.
|
|
|
|
|
2015-04-03 23:50:09 +02:00
|
|
|
#ifndef _EMBEDDEDOUT_H
|
|
|
|
#define _EMBEDDEDOUT_H
|
|
|
|
|
|
|
|
#include "embeddednf.h"
|
|
|
|
|
2015-04-04 08:23:53 +02:00
|
|
|
|
|
|
|
//Controls brightness
|
2015-07-27 09:35:02 +02:00
|
|
|
#ifndef NOTE_FINAL_AMP
|
2015-04-05 04:16:55 +02:00
|
|
|
#define NOTE_FINAL_AMP 12 //Number from 0...255
|
2015-07-27 09:35:02 +02:00
|
|
|
#endif
|
2015-04-04 08:23:53 +02:00
|
|
|
|
|
|
|
//Controls, basically, the minimum size of the splotches.
|
2015-07-27 09:35:02 +02:00
|
|
|
#ifndef NERF_NOTE_PORP
|
2015-04-05 00:35:03 +02:00
|
|
|
#define NERF_NOTE_PORP 15 //value from 0 to 255
|
2015-07-27 09:35:02 +02:00
|
|
|
#endif
|
2015-04-04 08:23:53 +02:00
|
|
|
|
2015-07-21 03:18:07 +02:00
|
|
|
#ifndef NUM_LIN_LEDS
|
2015-07-27 09:35:02 +02:00
|
|
|
#define NUM_LIN_LEDS 32
|
2015-07-21 03:18:07 +02:00
|
|
|
#endif
|
2015-04-03 23:50:09 +02:00
|
|
|
|
2015-07-29 07:56:18 +02:00
|
|
|
#ifndef USE_NUM_LIN_LEDS
|
|
|
|
#define USE_NUM_LIN_LEDS NUM_LIN_LEDS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2015-07-23 06:52:52 +02:00
|
|
|
#ifndef LIN_WRAPAROUND
|
2015-07-29 07:56:18 +02:00
|
|
|
//Whether the output lights wrap around.
|
|
|
|
//(Can't easily run on embedded systems)
|
|
|
|
#define LIN_WRAPAROUND 0
|
2015-07-23 06:52:52 +02:00
|
|
|
#endif
|
|
|
|
|
2015-07-29 07:56:18 +02:00
|
|
|
#ifndef SORT_NOTES
|
|
|
|
#define SORT_NOTES 0 //Whether the notes will be sorted. BUGGY Don't use.
|
2015-07-27 09:35:02 +02:00
|
|
|
#endif
|
2015-04-03 23:50:09 +02:00
|
|
|
|
|
|
|
extern uint8_t ledArray[];
|
|
|
|
extern uint8_t ledOut[]; //[NUM_LIN_LEDS*3]
|
2015-07-21 04:01:14 +02:00
|
|
|
extern uint8_t RootNoteOffset; //Set to define what the root note is. 0 = A.
|
2015-08-09 05:02:39 +02:00
|
|
|
|
|
|
|
//For doing the nice linear strip LED updates
|
2015-04-04 08:23:53 +02:00
|
|
|
void UpdateLinearLEDs();
|
2015-04-03 23:50:09 +02:00
|
|
|
|
2015-08-09 05:02:39 +02:00
|
|
|
//For making all the LEDs the same and quickest. Good for solo instruments?
|
|
|
|
void UpdateAllSameLEDs();
|
|
|
|
|
2015-04-03 23:50:09 +02:00
|
|
|
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
|
|
|
|
|