Would like some assistance please,
I am attempting to make a menu driven FTDI -> I2C bridge for testing I2C devices.
It receives the device address from a prompt, converts the two ASCII characters in to a single byte in HEX
IE: (recieves 'a' = ASCII (61) and 8 = ASCII(38) takes the 'a' subtracts (87) and then bitshifts it left 4 places or's it to then next digit.
this creates a single byte of 0xA8 puts that in to a variable 'device' .
later I use that variable to send the address to the I2C bus :
Wire.requestFrom (device, 1); # to read a single byte from a I2C device at address 'device' (0xA8)
When I Verify i get :
error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
at the Wire.requestFrom (device, 1);
Any help ????
Attached is my code at TXT doc
FTDI - I2c Bridge.txt (5.82 KB)