Use two I2c Bus #7
-
I want connect a lcd display to the audio kit so i thought to use wire1 to initalize codec pins 32, 33. Do you think is possible or it is a total wrong idea? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
No sure, but if you search in the AudioKit issues, people were usually struggling to get this to work |
Beta Was this translation helpful? Give feedback.
-
I modified the library i use to pilot lcd to use wire1 and it work. |
Beta Was this translation helpful? Give feedback.
-
I Phil need you help if you can.
But it has absolutely no effect.
to:
It work exactly as i thought. and everything work fine. How is the correct wayin your opinion to pass the last 3 parameters to addI2C(...), so to use Wire1 internally instead of Wire, in your architecture? |
Beta Was this translation helpful? Give feedback.
-
AudioKitEs8388V1.getPins().addI2C(PinFunction::CODEC, 32, 33, -1, 100000U, Wire1);
|
Beta Was this translation helpful? Give feedback.
-
you need to do this before calling begin() otherwise it has no effect |
Beta Was this translation helpful? Give feedback.
-
I have added now some update (=set) API. If you want to update just a field:
Or if you want to provide all values
I suggest to check the return code of the add and set functions: they return true if successful |
Beta Was this translation helpful? Give feedback.
I have added now some update (=set) API. If you want to update just a field:
Or if you want to provide all values
I suggest to check the return code of the add and set functions: they return true if successful