I2C_NACK when acknowledgement checking fails and I2C_TIMEOUT when the configured clock-stretching timeout is exceeded.| registers --byte-size/int= --byte-order/ByteOrder= -> Registers | |
|---|---|
| write bytes/ByteArray -> none | Writes the bytes to the device. |
| write bytes/ByteArray [failure] -> none | |
| write-reg register/int bytes/ByteArray -> none | Writes the bytes to the device at the given register. |
| write-reg register/int bytes/ByteArray [failure] -> none | |
| write-address address/ByteArray bytes/ByteArray -> none | Writes the bytes to the device at the given address. |
| write-address address/ByteArray bytes/ByteArray [failure] -> none | |
| read size/int -> ByteArray | Reads size bytes from the device. |
| read-into buffer/ByteArray size/int= -> none | |
| read size/int [failure] -> ByteArray | |
| read-reg register/int size/int -> ByteArray | Reads size bytes from the given register. |
| read-reg register/int size/int [failure] -> ByteArray | |
| read-address address/ByteArray size/int -> ByteArray | Reads size bytes from the given address. |
| read-address address/ByteArray size/int [failure] -> ByteArray | |
| write-read tx-buffer/Data size/int -> ByteArray | Writes the tx-buffer to the device and reads size bytes. |
| write-read-into --tx-buffer/Data --rx-buffer/ByteArray size/int= -> none | |
| close -> none | Closes this device and releases the I2C address. |
| operator == other/any -> bool | Whether this object is equal to the other. |
| stringify -> string | Stringifies this object. |
class Pin:
number/int
constructor .number:
operator == other:
if other is not Pin: return false
return number == other.number
hash-code method. That is, if a class has a hash-code member, then the equality and hash-code must agree. If two instances are equal (a == b), then their hash codes must also be equal (a.hash-code == b.hash-code).