Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Plik ds1820.h
- */
- #ifndef DS1820_H
- #define DS1820_H
- #define SET_ONEWIRE_PORT PORTB |= _BV(1)
- #define CLR_ONEWIRE_PORT PORTB &= ~_BV(1)
- #define IS_SET_ONEWIRE_PIN PINB & _BV(1)
- #define SET_OUT_ONEWIRE_DDR DDRB |= _BV(1)
- #define SET_IN_ONEWIRE_DDR DDRB &= ~_BV(1)
- unsigned char ds1820_ConvertT(void);
- int ds1820_Read(unsigned char []);
- void OneWireStrong(char);
- unsigned char OneWireReset(void);
- void OneWireWriteByte(unsigned char);
- unsigned char OneWireReadByte(void);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement