-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Very comfortable library. It would be possible to save a little more power,
even if AD converter would be switched off.
# ifndef cbi
# define cbi (sfr, bit) (_SFR_BYTE (sfr) & = ~ _BV (bit))
# endif
# ifndef sbi
# define sbi (sfr, bit) (_SFR_BYTE (sfr) | = _BV (bit))
# endif
[...]
NarcolepticClass :: void delay (int milliseconds) {
cbi (ADCSRA, ADEN);
[...]
sbi (ADCSRA, ADEN);
}
Original issue reported on code.google.com by schulz.m...@googlemail.com on 14 Jul 2013 at 8:08