2014-07-29 02:13:27 +02:00
|
|
|
#define __16f1847
|
|
|
|
#include <pic16f1847.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define SCL _RB6 /* pin 12, external 24LC256 I2C EEPROM memory */
|
|
|
|
#define SDA _RB7 /* pin 13, external 24LC256 I2C EEPROM memory */
|
|
|
|
|
2014-07-30 18:15:34 +02:00
|
|
|
void send_start(void);
|
|
|
|
void send_stop(void);
|
|
|
|
uint8_t send_byte(uint8_t byte);
|
2014-08-02 22:33:22 +02:00
|
|
|
uint8_t read_byte(uint8_t ack);
|