|
|
|
@ -51,7 +51,7 @@ void dummy()
|
|
|
|
|
|
|
|
|
|
int initPlatform()
|
|
|
|
|
{
|
|
|
|
|
lcd_init(&i2c);
|
|
|
|
|
//lcd_init(&i2c);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -104,6 +104,11 @@ void pca9685_motor()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void mcp4725_test()
|
|
|
|
|
{
|
|
|
|
|
std::cout << "mcp4725 dac test" << std::endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void dummy()
|
|
|
|
|
{
|
|
|
|
|
pimplTest.printNumber(3);
|
|
|
|
@ -131,6 +136,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
commander.addNewCommand("bh1750", "The test command for testing the bh1750", bh1750_test);
|
|
|
|
|
commander.addNewCommand("pca9685", "The test command for testing the pca8695", pca9685_test);
|
|
|
|
|
commander.addNewCommand("motor", "The test command for testing the pca8695", pca9685_motor);
|
|
|
|
|
commander.addNewCommand("dac", "The test command for testing the mcp4725", mcp4725_test);
|
|
|
|
|
commander(argv[1]);
|
|
|
|
|
std::cout << "Main End" << std::endl;
|
|
|
|
|
|
|
|
|
|