o: ActiveSupport::Cache::Entry :@compressedF:@value"K"E
| Designs/MRAKOMER3/SW/irmrak3.c | ||
|---|---|---|
| 2 | 2 |
#define VERSION "3.0" |
| 3 | 3 |
#define ID "$Id$" |
| 4 | 4 |
#include "irmrak3.h" |
| 5 |
#bit SSPM3=0x14.3 |
|
| 6 | 5 |
|
| 7 | 6 |
#define SA 0x00 // Slave Address (0 for single slave / 0x5A<<1 default) |
| 8 | 7 |
#define RAM_Access 0x00 // RAM access command |
| ... | ... | |
| 128 | 127 |
setup_vref(FALSE); |
| 129 | 128 |
setup_oscillator(OSC_4MHZ|OSC_INTRC); |
| 130 | 129 |
|
| 131 |
// SSPM3=1; |
|
| 132 |
|
|
| 133 | 130 |
delay_ms(1000); |
| 134 | 131 |
printf("\n\r* Mrakomer %s (C) 2007 KAKL *\n\r",VER); // Welcome message
|
| 135 | 132 |
printf("* %s *\n\r\n\r",REV);
|
| ... | ... | |
| 145 | 142 |
|
| 146 | 143 |
if (kbhit()) // Would you like warmer? |
| 147 | 144 |
{
|
| 148 |
getc(); i=0;
|
|
| 145 |
getc(); i=0; |
|
| 149 | 146 |
} |
| 150 | 147 |
|
| 151 | 148 |
tempa=ReadTemp(SA, RAM_Tamb); // Read temperatures from sensor |
| Designs/MRAKOMER3/SW/irmrak3.h | ||
|---|---|---|
| 16 | 16 |
|
| 17 | 17 |
#use delay(clock=4000000) |
| 18 | 18 |
#use rs232(baud=2400,parity=N,xmit=PIN_B5,rcv=PIN_B2,bits=8,FORCE_SW) |
| 19 |
#use i2c(MASTER,SLOW,sda=PIN_B1,scl=PIN_B4,SMBUS)//,force_hw)
|
|
| 19 |
#use i2c(MASTER,SLOW,sda=PIN_B1,scl=PIN_B4,SMBUS) |
|
| 20 | 20 |
|