work on the mcp4725 dac

master
edwin 4 years ago
parent be331e3ede
commit 6f7b9d2b53

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

@ -18,7 +18,7 @@
#include <string> #include <string>
#include <functional> #include <functional>
#define MAX_MUNBER_OF_COMMANDS 4 #define MAX_MUNBER_OF_COMMANDS 10
class CommandManager class CommandManager
{ {

Binary file not shown.
Loading…
Cancel
Save