You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to write a small example, to use on my DAC8552 (similar to 8554, with 2 channels). There seems to be an error in library implementation that I could not resolve. Here's my code:
`#include <DAC8554.h>
I tried to write a small example, to use on my DAC8552 (similar to 8554, with 2 channels). There seems to be an error in library implementation that I could not resolve. Here's my code:
`#include <DAC8554.h>
DAC8554 dac = DAC8554(true);
dac.setDAC(0);
dac.setPins(13, 2, 11, 7, 6, 5, 8);
dac.initializePins();
int canal1;
int canal2;
void setup() {
}
void loop() {
dac.updateChannel(0, 65535);
dac.updateChannel(1, 32768);
canal1 = analogRead(0);
canal2 = analogRead(1);
Serial.print(canal1);
Serial.print("\t");
Serial.println(canal2);
}`
The Arduino IDE replied: "'dac' does not name a type"
The text was updated successfully, but these errors were encountered: