-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
System.Device.I2c.I2cDevice.Write transmits more bytes than expected #674
Closed
RolandoMagico opened this issue
Dec 27, 2020
· 1 comment
· Fixed by nanoframework/nf-interpreter#1819
Closed
System.Device.I2c.I2cDevice.Write transmits more bytes than expected #674
RolandoMagico opened this issue
Dec 27, 2020
· 1 comment
· Fixed by nanoframework/nf-interpreter#1819
Comments
Hello @AdrianSoundy , |
Merged
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details about Problem
nanoFramework area: C# code
VS version: 2019
VS extension version:
Target: ESP32
Device capabilities output:
Description
System.Device.I2c.I2cDevice.Write transmits all bytes of a byte array even if the length was reduced by a SpanByte.
Detailed repro steps so we can see the same problem
Hardware Setup
ESP32 board (TTGO T-Beam) with a SH1106 display connected to I2C bus 1.
Code to reproduce
Other suggested things
Expected behaviour
Only 2 bytes are transmitted via I2C, not 64 as seen in the logic analyzer screenshot.
Sample Project
https://github.com/RolandoMagico/TTGO-T-Beam-nanoframework/tree/bc9327cad90675bba1b1626e285ceb253556880a
(Enable test code in BaseDisplay constructor to test)
Screenshot
Span in the debugger:

I2C communication on the bus (65 bytes because of device address + 64 bytes of data):

The text was updated successfully, but these errors were encountered: