diff --git a/developpment/interfacer.cpp b/developpment/interfacer.cpp index 457c58f..076088e 100644 --- a/developpment/interfacer.cpp +++ b/developpment/interfacer.cpp @@ -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; diff --git a/developpment/management/commandManager.h b/developpment/management/commandManager.h index 5d7eff2..371b324 100644 --- a/developpment/management/commandManager.h +++ b/developpment/management/commandManager.h @@ -18,7 +18,7 @@ #include #include -#define MAX_MUNBER_OF_COMMANDS 4 +#define MAX_MUNBER_OF_COMMANDS 10 class CommandManager { diff --git a/developpment/runtest b/developpment/runtest new file mode 100755 index 0000000..7b22d77 Binary files /dev/null and b/developpment/runtest differ