mirror of
https://github.com/esphome/esphome.git
synced 2025-02-26 14:58:16 +00:00
penance for american sins
This commit is contained in:
parent
e8f3018a2e
commit
635d8367d1
@ -69,7 +69,7 @@ class softI2C {
|
|||||||
* @brief Initiates the start condition for I2C communication.
|
* @brief Initiates the start condition for I2C communication.
|
||||||
*
|
*
|
||||||
* This method pulls the data line (SDA) low while the clock line (SCL)
|
* This method pulls the data line (SDA) low while the clock line (SCL)
|
||||||
* is high, signaling the start of communication to the slave device.
|
* is high, signaling the start of communication to the device.
|
||||||
*/
|
*/
|
||||||
void start();
|
void start();
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class softI2C {
|
|||||||
* @brief Initiates the stop condition for I2C communication.
|
* @brief Initiates the stop condition for I2C communication.
|
||||||
*
|
*
|
||||||
* This method releases the data line (SDA) after setting the clock line (SCL) high,
|
* This method releases the data line (SDA) after setting the clock line (SCL) high,
|
||||||
* signaling the end of communication to the slave device.
|
* signaling the end of communication to the device.
|
||||||
*/
|
*/
|
||||||
void stop();
|
void stop();
|
||||||
|
|
||||||
@ -85,10 +85,10 @@ class softI2C {
|
|||||||
* @brief Writes a byte of data to the I2C bus.
|
* @brief Writes a byte of data to the I2C bus.
|
||||||
*
|
*
|
||||||
* This method sends a byte by shifting each bit to the data line (SDA).
|
* This method sends a byte by shifting each bit to the data line (SDA).
|
||||||
* After the byte is sent, it checks for an acknowledgment (ACK) from the slave device.
|
* After the byte is sent, it checks for an acknowledgment (ACK) from the device.
|
||||||
*
|
*
|
||||||
* @param value The byte value to be sent to the I2C bus.
|
* @param value The byte value to be sent to the I2C bus.
|
||||||
* @return true if an acknowledgment (ACK) is received from the slave.
|
* @return true if an acknowledgment (ACK) is received from the device.
|
||||||
* @return false if no acknowledgment (NACK) is received.
|
* @return false if no acknowledgment (NACK) is received.
|
||||||
*/
|
*/
|
||||||
bool write_byte(uint8_t value);
|
bool write_byte(uint8_t value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user