make adc slower to stabelize values
This commit is contained in:
parent
b9a402d64b
commit
917fac440f
@ -20,5 +20,5 @@ void adc_init(uint8_t * channels) {
|
||||
// adc.channel_map = channels;
|
||||
|
||||
ADMUX = channels[0];
|
||||
ADCSRA = /*(1<<ADATE) | */ (1<<ADEN); // enable adc, maximum prescaler value
|
||||
ADCSRA = /*(1<<ADATE) | */ (1<<ADEN) | 2; // enable adc, maximum prescaler value
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ volatile enum {
|
||||
static inline void comm_service()
|
||||
{
|
||||
static uint8_t count = 0;
|
||||
static uint16_t temp = 0xFF;
|
||||
static uint16_t temp = 0xFFFF;
|
||||
|
||||
if (USISR & (1<<USIOIF))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user