<commit_before>// LED library
#include <FastLED.h>

// C++ Libraries (yay!)
//#include <StandardCplusplus.h>
//#include <vector>

// Arduino Libraries
#ifdef __AVR__
#include <avr/interrupt.h>
#endif

// Analog Pins
#define RATE_POT 0 // Potentiometer for animation rate
#define HUE_POT 1 // Potentiometer for global hue
#define VAL_POT 2 // Potentiometer for global brightness

// Digital Pins for LED output
#define LED_IH 25
#define LED_OH 26
#define LED_D0 27
#define LED_D1 28
#define LED_D2 14
#define LED_D3 15
#define LED_D4 29
#define LED_D5 11

// Digital Pins for interrupts
// Digital Pins for interrupts
#define KILL_INT 42 // Button to turn on or off the lights
#define PAL_INC_INT 44 // Palette incrementing interrupt
#define PAL_DEC_INT 48 // Palette decrementing interrupt
#define PAL_AUTO_INT 52 // Autopilot palette mode interrupt
#define ANIM_INC_INT 45 // Animation incrementing interrupt
#define ANIM_DEC_INT 49 // Animation decrementing interrupt
#define ANIM_AUTO_INT 53 // Animation autopilot interrupt
#define STROBE_INT 50 // Strobe animation interrupt
#define BLKSTROBE_INT 51 // Black strobe interrupt
#define REVERS_INT 43 // Reversing animations interrupt
// unused 46
//unused 47

// Variables for the LED strand
const uint8_t frameRate = 100; // FPS
const uint8_t maxBrightness = 100;
uint8_t gBrightness = maxBrightness; // CHANGE THIS ONCE YOU HAVE ANOTHER POTENTIOMETER

// Variables for LED strands
const uint16_t led_5ft_strand = 90; // The size of one module

const uint16_t ih_LED_per_strand = led_5ft_strand; // 90 LED per 5' strand with 10' hexagon sides on the inside
const uint16_t ih_LED_total = ih_LED_per_strand;
CRGB ih_leds[ih_LED_total];

const uint16_t oh_LED_per_strand = led_5ft_strand; // 90 LED per 5' strand with 20' hexagon sides on outside
const uint16_t oh_LED_total = oh_LED_per_strand;
CRGB oh_leds[oh_LED_total];

const uint16_t d_LED_num = led_5ft_strand; // 90 LED per 5' strand with 10' diagonals
CRGB d_leds[6][d_LED_num];

// Variables for pin interrupts. There's a lot of these babies ;^)
uint32_t debounce_time = 15;
volatile uint32_t last_micros; // In milliseconds
volatile boolean power_on = true; // Used for kill switch
volatile boolean power_switched = false;
volatile uint8_t gPaletteCounter; // For choosing index of palette
volatile boolean palette_autopilot = false; // Flag for auto cycling palettes
volatile uint8_t gAnimCounter; // Counter for animation
volatile boolean anim_autopilot = false; // Flag for auto cycling animations
volatile boolean anim_reverse = false; // Flag for running animations in reverse
volatile boolean dj_control = false; // Flag if dj is controlling animations
volatile boolean run_strobe = false; // Flag for strobe interrupt animation
volatile boolean run_blkstrobe = false; // Flag for black strobing

// Setup and global variable delcaration for palettes
CRGBPalette16 gPalette;<commit_msg>updated parallel out 2 for the final time<commit_after>// LED library
#include <FastLED.h>

// C++ Libraries (yay!)
//#include <StandardCplusplus.h>
//#include <vector>

// Arduino Libraries
#ifdef __AVR__
#include <avr/interrupt.h>
#endif

// Analog Pins
#define RATE_POT 0 // Potentiometer for animation rate
#define HUE_POT 1 // Potentiometer for global hue
#define VAL_POT 2 // Potentiometer for global brightness

// Digital Pins for LED output
#define LED_IH 25
#define LED_OH 26
#define LED_D0 27
#define LED_D1 28
#define LED_D2 14
#define LED_D3 15
#define LED_D4 29
#define LED_D5 11

// Digital Pins for interrupts
// Digital Pins for interrupts
#define KILL_INT 42 // Button to turn on or off the lights
#define PAL_INC_INT 44 // Palette incrementing interrupt
#define PAL_DEC_INT 48 // Palette decrementing interrupt
#define PAL_AUTO_INT 52 // Autopilot palette mode interrupt
#define ANIM_INC_INT 45 // Animation incrementing interrupt
#define ANIM_DEC_INT 49 // Animation decrementing interrupt
#define ANIM_AUTO_INT 53 // Animation autopilot interrupt
#define STROBE_INT 50 // Strobe animation interrupt
#define BLKSTROBE_INT 51 // Black strobe interrupt
#define REVERS_INT 43 // Reversing animations interrupt
// unused 46
//unused 47

// Variables for the LED strand
const uint8_t frameRate = 100; // FPS
const uint8_t maxBrightness = 100;
uint8_t gBrightness = maxBrightness; // CHANGE THIS ONCE YOU HAVE ANOTHER POTENTIOMETER

// Variables for LED strands
const uint16_t led_5ft_strand = 90; // The size of one module

const uint16_t ih_LED_per_strand = 2*led_5ft_strand; // 90 LED per 5' strand with 10' hexagon sides on the inside
const uint16_t ih_LED_total = 6*ih_LED_per_strand;
CRGB ih_leds[ih_LED_total];

const uint16_t oh_LED_per_strand = 4*led_5ft_strand; // 90 LED per 5' strand with 20' hexagon sides on outside
const uint16_t oh_LED_total = 6*oh_LED_per_strand;
CRGB oh_leds[oh_LED_total];

const uint16_t d_LED_num = 2*led_5ft_strand; // 90 LED per 5' strand with 10' diagonals
CRGB d_leds[6][d_LED_num];

// Variables for pin interrupts. There's a lot of these babies ;^)
uint32_t debounce_time = 15;
volatile uint32_t last_micros; // In milliseconds
volatile boolean power_on = true; // Used for kill switch
volatile boolean power_switched = false;
volatile uint8_t gPaletteCounter; // For choosing index of palette
volatile boolean palette_autopilot = false; // Flag for auto cycling palettes
volatile uint8_t gAnimCounter; // Counter for animation
volatile boolean anim_autopilot = false; // Flag for auto cycling animations
volatile boolean anim_reverse = false; // Flag for running animations in reverse
volatile boolean dj_control = false; // Flag if dj is controlling animations
volatile boolean run_strobe = false; // Flag for strobe interrupt animation
volatile boolean run_blkstrobe = false; // Flag for black strobing

// Setup and global variable delcaration for palettes
CRGBPalette16 gPalette;
{'fraction_non_alphanumeric': 0.06825179609989737, 'fraction_numerical': 0.035921997947314405, 'mean_word_length': 4.6438223938223935, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4737790', 'n_tokens_mistral': 2086, 'n_tokens_neox': 1810, 'n_words': 708}