/* * potentiometers.c * * Created: 04.07.2019 19:29:15 * Author: Radioman */ #include "heater3.h" #include "potentiometers.h" extern heater_str heater[2]; extern opamp_str opamp[2]; void POT_SendData(uint8_t data, potnum_t potnum) { PORTB = (PORTB & 0xF8) | (potnum & 0x07); PORTB &= ~(1 << SS_BIT); SPDR = 0x11; while(!(SPSR & (1 <