Hi,
Just found something.... (Jallib 1.8 - Official release, no bees)
In the header of i2c_hardware, it is mentionned that:
-- Define i2c pins like:
-- alias i2c_scl is pin_c3 -- optional
-- alias i2c_scl_direction is pin_c3_direction
-- alias i2c_sda is pin_c4 -- optional
-- alias i2c_sda_direction is pin_c4_direction
Later, in the code, procedure i2c_initialize, we use, instead:
pin_SCL_direction = input
pin_SDA_direction = input
The problem is that, in the device file we have, only for SCL the following definition
alias pin_SCL_direction is pin_C3_direction
In my application, I use the PPS to reassign SCL to RB6
So, I cannot re-assign pin_SCL_direction to pin_B6_direction.
No big deal: I copied a local version of the library in my project and changed the i2c_initialize procedure with:
i2c_SCL_direction = input
i2c_SDA_direction = input
I do not know if this has already be changed for 1.9, but I suggest something be made.....
(Just my 2 cents)
Kind regards,
David