| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The DS28C library reads the factory-programmed 64-bit ROM ID from DS28C serial ID devices over I2C.
bool Begin() Initializes I2C and attempts a serial ID read.
bool ReadSerialID(uint8_t *serialId) Reads 8 bytes in device order: [CRC][S5][S4][S3][S2][S1][S0][FAMILY].
bool ReadSerialIDHex(char *serialHex) Writes a 16-char uppercase hex string plus null terminator (char[17]).
Use stack/local buffers when you need data:
uint8_t id[8];
char hexId[17];
if (sensor.ReadSerialID(id)) {
// raw bytes available in id
}
if (sensor.ReadSerialIDHex(hexId)) {
// formatted text available in hexId
}We welcome contributions to this library. If you have any ideas or suggestions, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to akkoyun for developing this library and contributing to the field of electronics engineering.
| Back | FazBrowse Home | New Git URL |