[REPO REFACTOR]: changed to a better git repository structure with branches

This commit is contained in:
2025-11-01 04:40:25 +01:00
parent 48f68c0222
commit f71563739c
6 changed files with 2 additions and 50 deletions

28
lib/Vcc/Vcc.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef VCC_H
#define VCC_H
#include <Arduino.h>
#include <avr/eeprom.h>
#if defined(__AVR_ATmega8__)
#define DEFAULT_INTREF 1300
#elif defined(__AVR_ATtiny26__)
#define DEFAULT_INTREF 1180
#elif defined(__AVR_ATmega16__) || defined(__AVR_ATmega32__) || defined(__AVR_ATmega8535__)
#define DEFAULT_INTREF 1230
#else
#define DEFAULT_INTREF 1100
#endif
#define EE_INTREF (E2END-3)
class Vcc {
public:
static int measure(int repetition=10);
static int measure(int repetition, int intref);
static void setIntref(int intref);
private:
static int _intref;
};
#endif