Update AnalogCard.cpp

This commit is contained in:
Siwat Sirichai 2023-12-29 00:52:14 +07:00
parent 3fd026d9bb
commit f63f498b42
1 changed files with 0 additions and 4 deletions

View File

@ -77,10 +77,6 @@ uint16_t AnalogCard::analogRead(uint8_t pin)
} }
bool AnalogCard::begin() bool AnalogCard::begin()
{ {
this->dac0 = MCP4725(DAC0_ADDRESS);
this->dac1 = MCP4725(DAC1_ADDRESS);
this->dac2 = MCP4725(DAC2_ADDRESS);
this->dac3 = MCP4725(DAC3_ADDRESS);
if (!this->dac0.begin()) if (!this->dac0.begin())
{ {
Serial.println("Card Analog ERROR: Failed to install DAC0"); Serial.println("Card Analog ERROR: Failed to install DAC0");