Various aspects of home brew inverters
Author
Message
poida
Guru
Joined: 02/02/2017
Location: AustraliaPosts: 1432
Posted: 11:14pm 25 Jan 2021
iannez said
..
#include <avr/power.h>
setup()
{
//https://www.gammon.com.au/forum/?id=11497
//power_adc_disable(); // ADC converter
power_spi_disable(); // SPI
//power_usart0_disable();// Serial (USART)
power_timer0_disable();// Timer 0
//power_timer1_disable();// Timer 1
power_timer2_disable();// Timer 2
power_twi_disable(); // TWI (I2C)
DIDR0 = DIDR0 | B00111111; //Digital input disabled on all ADC 0-5 ports
}
let me know otherwise if there are no differences I delete them: D
..
NO difference.