I'm working with I2C LCD but don't understand this line, why the | in the parameters of the function I2C_write?
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
Posted: Sun Jan 05, 2020 3:27 am
| is 'or'.
It's being used here to set bit 3 in the number fed to the write function. Why,
would be a matter of looking at the data sheet for the device involved.
czar
Joined: 05 Jan 2020 Posts: 2
Posted: Sun Jan 05, 2020 9:32 pm
Ttelmah wrote:
| is 'or'.
It's being used here to set bit 3 in the number fed to the write function. Why,
would be a matter of looking at the data sheet for the device involved.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum