Sample program

Outline of the sample program


About using sample programs

When compiling and running the sample program please execute with root privilege.
In addition, the system "Manufacturer" and "Product Name" are acquired using dmi information to determine the model. When doing Make except for target, "This Product is not supported!" Is displayed and compilation of the sample program is not executed.
In some sample programs, branching is performed by preprocess matching the target model using the acquired "Product Name".
If judgment at make run is not performed properly, please modify the source file of Makefile and sample program as necessary.
* When using the BX-220D Series and BX-830 Series, "i2c-8" is specified for the bus in the sample source.
* When using the BX-T1000 Series, "i2c-4" is specified for the bus in the sample source.
Please use the "i2cdetect -l" command etc, if necessary, check the appropriate bus and correct the sample source code.

Console sample

dio
hwmon
PMonitor
RS485
Serial
sled
uSW
wdt