Example of using the DS271 battery monitor on the ESP motor driver board using PC_12 as the OneWire interface (Any other GPIO can be used)
OneWire_Methods.h
- Committer:
- EmbeddedSam
- Date:
- 2019-03-04
- Revision:
- 0:de50f9a71c22
File content as of revision 0:de50f9a71c22:
void OneWire_Delay(char letter); void OneWire_TestDelays(void); bool OneWire_Reset(void); void OneWire_WriteBit(bool bit_to_write); bool OneWire_ReadBit(void); void OneWire_WriteByte(unsigned char byte_to_write); unsigned char OneWire_ReadByte(void);