Pemanfaatan HC-05 Sebagai Alat Kontrol Suhu Pada Ruangan Berbasis ATMega8
Lampiran
Universitas Sumatera Utara
Lampiran 1
PROGRAM LENGKAP
#include
#include
#include
#include
#define pb1 PINB.2
#define pb2 PINB.4
char data;
int set=30;
int get1,get2;
float temp;
char buff[20];
int pwm;
int count;
// Alphanumeric LCD functions
#include
Universitas Sumatera Utara
// Declare your global variables here
// Standard Input/Output functions
#include
// Voltage Reference: AREF pin
#define ADC_VREF_TYPE ((0
Universitas Sumatera Utara
Lampiran 1
PROGRAM LENGKAP
#include
#include
#include
#include
#define pb1 PINB.2
#define pb2 PINB.4
char data;
int set=30;
int get1,get2;
float temp;
char buff[20];
int pwm;
int count;
// Alphanumeric LCD functions
#include
Universitas Sumatera Utara
// Declare your global variables here
// Standard Input/Output functions
#include
// Voltage Reference: AREF pin
#define ADC_VREF_TYPE ((0