<commit_before>#include <Wire.h>
#include <MicroView.h>
#include <DS3232RTC.h>
#include <Time.h>

#include "LowPower.h"

#define LEFT_BUTTON_INT_PIN INT1
#define LEFT_BUTTON_NORM_PIN 3

#define MIDDLE_BUTTON_PIN A2
#define RIGHT_BUTTON_PIN A1

//These two refer to the same pin
#define ALARM_INT_PIN INT0//Driven LOW by Chronodot on alarm triggered
#define ALARM_NORM_PIN 2//Driven LOW by Chronodot on alarm triggered

#define VOLTAGE_MEASURE_PIN A0

#define MOTOR_PIN1 1
#define MOTOR_PIN2 0
#define MOTOR_SLEEP_PIN 6

#define ADC_PRECISION 1024

#define MIN_BATTERY_MILLIVOLT 2600 //You may need to calibrate this
#define MAX_BATTERY_MILLIVOLT 4200 //You may need to calibrate this

#define MIN_TIME_BETWEEN_BUTTON_PRESSES 150  //Debouncing purposes

#define MAX_ALARM_LENGTH 600000 //Alarm rings for 10 minutes max


#define BLINK_INTERVAL_SETTINGS 100
#define BLINK_INTERVAL_SECONDS 500

#define MIN_TIME_BETWEEN_ALARM_STARTS 60000 //60 seconds
#define MIN_TIME_BETWEEN_MOTOR_STATES 500

#define INITIAL_TEXT "Happy 25thBirthday\nKai Yao!\n\nBy: YKM\n12/01/2015"
#define INITIAL_TEXT_DELAY 5000

typedef enum {
  NORMAL, ALARM, SETTING_TIME, SETTING_ALARM} 
CLOCK_STATE ;
volatile CLOCK_STATE currentState = NORMAL;

typedef enum {
  T_HOUR, T_MINUTE} 
SETTING_TIME_STATE ;<commit_msg>voltage<commit_after>#include <Wire.h>
#include <MicroView.h>
#include <DS3232RTC.h>
#include <Time.h>

#include "LowPower.h"

#define LEFT_BUTTON_INT_PIN INT1
#define LEFT_BUTTON_NORM_PIN 3

#define MIDDLE_BUTTON_PIN A2
#define RIGHT_BUTTON_PIN A1

//These two refer to the same pin
#define ALARM_INT_PIN INT0//Driven LOW by Chronodot on alarm triggered
#define ALARM_NORM_PIN 2//Driven LOW by Chronodot on alarm triggered

#define VOLTAGE_MEASURE_PIN A0

#define MOTOR_PIN1 1
#define MOTOR_PIN2 0
#define MOTOR_SLEEP_PIN 6

#define ADC_PRECISION 1024

 //You may need to calibrate these values. My values are based on this data sheet http://www.adafruit.com/datasheets/18650%204400mAh.pdf
#define MIN_BATTERY_MILLIVOLT 2750
#define MAX_BATTERY_MILLIVOLT 4200

#define MIN_TIME_BETWEEN_BUTTON_PRESSES 150  //Debouncing purposes

#define MAX_ALARM_LENGTH 600000 //Alarm rings for 10 minutes max


#define BLINK_INTERVAL_SETTINGS 100
#define BLINK_INTERVAL_SECONDS 500

#define MIN_TIME_BETWEEN_ALARM_STARTS 60000 //60 seconds
#define MIN_TIME_BETWEEN_MOTOR_STATES 500

#define INITIAL_TEXT "Happy 25thBirthday\nKai Yao!\n\nBy: YKM\n12/01/2015"
#define INITIAL_TEXT_DELAY 5000

typedef enum {
  NORMAL, ALARM, SETTING_TIME, SETTING_ALARM} 
CLOCK_STATE ;
volatile CLOCK_STATE currentState = NORMAL;

typedef enum {
  T_HOUR, T_MINUTE} 
SETTING_TIME_STATE ;
{'fraction_non_alphanumeric': 0.0650775633749527, 'fraction_numerical': 0.05637533106318578, 'mean_word_length': 5.849740932642487, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '485436', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1023, 'n_words': 270}