NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_i2cversion.nxc
This is an example of how to use the
I2CVersion
function.
task main()
{
SetSensorLowspeed
(
S1
);
while
(
true
) {
TextOut
(0,
LCD_LINE1
,
I2CVendorId
(
S1
,
I2C_ADDR_DEFAULT
));
TextOut
(0,
LCD_LINE2
,
I2CDeviceId
(
S1
,
I2C_ADDR_DEFAULT
));
TextOut
(0,
LCD_LINE3
,
I2CVersion
(
S1
,
I2C_ADDR_DEFAULT
));
}
}
Generated by
1.8.2