<commit_before>#include "OneEuroFilter.h"

#define VOLUME_L    A0
#define VOLUME_R    A1
#define VOLUME_C    A2

#define REG_DATA    10 // DIGITAL(PWM~)
#define REG_LATCH   9
#define REG_CLOCK   8
#define POT_SELECT  7
#define POT_CLOCK   6
#define POT_MOSI    5
#define LED_L       4
#define LED_R       3

#define MILLISECONDS  1000L
#define MICROSECONDS  1000000L

const bool isMicrosecond    = true;
const bool isDebugging      = true;
const bool isFiltering      = false;
const float ledDutyCycle    = 0.5;
const double minCutoff      = 1.0;
const double beta           = 0.007;
const double inputFrequency = 50;

unsigned long long updatePrevious;
OneEuroFilter channel1(inputFrequency, minCutoff, beta);
OneEuroFilter channel2(inputFrequency, minCutoff, beta);

short level1;
short level2;
short level3;
short number[4];
unsigned long long level1Previous;
unsigned long long level2Previous;
unsigned long long level3Previous;
bool isLed1On;
bool isLed2On;
bool isUpdated;
unsigned long long segmentIndex;

void setup() {
  Serial.begin(115200);
  pinMode(REG_DATA, OUTPUT);
  pinMode(REG_LATCH, OUTPUT);
  pinMode(REG_CLOCK, OUTPUT);
  pinMode(POT_MOSI, OUTPUT);
  pinMode(POT_SELECT, OUTPUT);
  pinMode(POT_CLOCK, OUTPUT);
  pinMode(LED_L, OUTPUT);
  pinMode(LED_R, OUTPUT);

  updatePrevious = 0;
  level1Previous = 0;
  level2Previous = 0;
  level3Previous = 0;
  isLed1On = false;<commit_msg>블링커 모듈 수정<commit_after>#include "OneEuroFilter.h"

#define VOLUME_L    A0
#define VOLUME_R    A1
#define VOLUME_C    A2

#define REG_DATA    10 // DIGITAL(PWM~)
#define REG_LATCH   9
#define REG_CLOCK   8
#define POT_SELECT  7
#define POT_CLOCK   6
#define POT_MOSI    5
#define LED_L       4
#define LED_R       3

#define MILLISECONDS  1000L
#define MICROSECONDS  1000000L

const bool isMicrosecond    = true;
const bool isDebugging      = true;
const bool isFiltering      = false;
const float ledDutyCycle    = 0.5;
const double minCutoff      = 1.0;
const double beta           = 0.007;
const double inputFrequency = 50;

unsigned long long updatePrevious;
OneEuroFilter channel1(inputFrequency, minCutoff, beta);
OneEuroFilter channel2(inputFrequency, minCutoff, beta);

short level1;
short level2;
short level3;
short number[4];
unsigned long long level1Previous;
unsigned long long level2Previous;
unsigned long long level3Previous;
bool isLed1On;
bool isLed2On;
bool isUpdated;
unsigned long long segmentIndex;

void setup() {
  Serial.begin(115200);
  pinMode(REG_DATA, OUTPUT);
  pinMode(REG_LATCH, OUTPUT);
  pinMode(REG_CLOCK, OUTPUT);
  pinMode(POT_SELECT, OUTPUT);
  pinMode(POT_CLOCK, OUTPUT);
  pinMode(POT_MOSI, OUTPUT);
  pinMode(LED_L, OUTPUT);
  pinMode(LED_R, OUTPUT);

  updatePrevious = 0;
  level1Previous = 0;
  level2Previous = 0;
  level3Previous = 0;
  isLed1On = false;
{'fraction_non_alphanumeric': 0.08208422555317631, 'fraction_numerical': 0.04139900071377588, 'mean_word_length': 4.278719397363465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5300784', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1025, 'n_words': 283}