-
Notifications
You must be signed in to change notification settings - Fork 232
Serial
API
#3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'd say |
I think Serial should, like SPI, have a On the other hand, if you did find a UART that didn't support 9-bit serial, you could just not impl for Word=u16, which I think neatly communicates to the user that you can't do 9-bit serial here. |
@adamgreig Sounds good. |
I'm not sure how generally applicable and useful this is, but in my own serial code I have a |
@hannobraun Adding a flush method to write makes sense to me. |
Add `flush` method to `serial::Write` As suggested previously here: #3 (comment)
The |
embedded-hal i2c traits implementation using i2cdev I tested this on a Raspberry Pi 2 with an SDD1306 OLED display and a Si7021 humidity/temperature sensor (driver crates will follow soon). However, I'm not quite sure about the address parameter. The i2cdev crate will use the address when creating the LinuxI2CDevice, the embedded-hal traits expect the device address as parameter. I just ignore this parameter in this implementation. Is this the right way to do it?
The text was updated successfully, but these errors were encountered: