Line 1... |
Line 1... |
1 |
//Jan Chroust 15.4.2013 |
1 |
//Jan Chroust 15.4.2013 |
2 |
|
2 |
|
3 |
|
3 |
|
4 |
#include "C:\Users\Honza\Documents\pic\I2C_altimet\main.h" |
4 |
#include "main.h" |
5 |
|
5 |
|
6 |
#define EEPROM_SDA PIN_B0 |
6 |
#define EEPROM_SDA PIN_B0 |
7 |
#define EEPROM_SCL PIN_B1 |
7 |
#define EEPROM_SCL PIN_B1 |
8 |
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) |
8 |
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) |
9 |
#use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD |
9 |
#use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD |