/Designs/MRAKOMER3/SW/irmrak3.c
2,7 → 2,6
#define VERSION "3.0"
#define ID "$Id$"
#include "irmrak3.h"
#bit SSPM3=0x14.3
 
#define SA 0x00 // Slave Address (0 for single slave / 0x5A<<1 default)
#define RAM_Access 0x00 // RAM access command
128,8 → 127,6
setup_vref(FALSE);
setup_oscillator(OSC_4MHZ|OSC_INTRC);
 
// SSPM3=1;
 
delay_ms(1000);
printf("\n\r* Mrakomer %s (C) 2007 KAKL *\n\r",VER); // Welcome message
printf("* %s *\n\r\n\r",REV);
145,7 → 142,7
 
if (kbhit()) // Would you like warmer?
{
getc(); i=0;
getc(); i=0;
}
 
tempa=ReadTemp(SA, RAM_Tamb); // Read temperatures from sensor
/Designs/MRAKOMER3/SW/irmrak3.h
16,5 → 16,5
 
#use delay(clock=4000000)
#use rs232(baud=2400,parity=N,xmit=PIN_B5,rcv=PIN_B2,bits=8,FORCE_SW)
#use i2c(MASTER,SLOW,sda=PIN_B1,scl=PIN_B4,SMBUS)//,force_hw)
#use i2c(MASTER,SLOW,sda=PIN_B1,scl=PIN_B4,SMBUS)