microbuilder commented on issue #1251: Added stubs for I2C simulation URL: https://github.com/apache/mynewt-core/pull/1251#issuecomment-404067578 Let me know if you think the printf additions in hal_i2c.c are too chatty, and I can either make them optional or reduce them. The current output is as follows (using a TSL2591 simulator I'm working on): ``` uart0 at /dev/ttys002 Registering TSL2591 sim driver Registering I2C sim driver for 0x29 TSL2591 wrote 2 byte(s): 0xA0 0x03 TSL2591 wrote 1 byte(s): 0xA1 TSL2591 read 1 byte(s): 0x00 TSL2591 wrote 2 byte(s): 0xA1 0x00 TSL2591 wrote 1 byte(s): 0xA1 TSL2591 read 1 byte(s): 0x00 TSL2591 wrote 2 byte(s): 0xA1 0x00 ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services