84 #ifndef LTC3335_CONFIG_H 85 #define LTC3335_CONFIG_H 95 #define LTC3335_IPEAK_CONFIGURATION LTC3335_IPEAK_CONFIGURATION_100MA 96 #define LTC3335_OUTPUT_VOLTAGE LTC3335_OUTPUT_VOLTAGE_3_3V
97 #define LTC3335_CAPACITY (2400)
98 #define LTC3335_ALARM_CAPACITY 0.9*LTC3335_CAPACITY
100 #define LTC3335_USE_CURRENT_MEASUREMENT true 102 #define LTC3335_USE_SOFTWARE_CORRECTION false 103 #define LTC3335_VBAT_TYP 3600
104 #define LTC3335_CORRECTION_FACTOR_TYP -487
116 #define LTC3335_PGOOD_READ() digitalRead(2) 117 #define LTC3335_NIRQ_READ() digitalRead(5) 124 #define LTC3335_TIMER_GET() micros() 125 #define LTC3335_TIMER_COUNTS_PER_SEC 1000000 132 #define LTC3335_COUNTER_GET() TCNT1 133 #define LTC3335_COUNTER_SIZE 16 139 #define LTC3335_MICRO_INIT() { \ 147 TCCR1B = (1<<CS10) + (1<<CS11) + (1<<CS12); \ 155 #endif // LTC3335_CONFIG_H Header File for Linduino Libraries and Demo Code.
LT_I2C: Routines to communicate with ATmega328P's hardware I2C port.