SHARE
TWEET

Untitled

a guest Jul 21st, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Wire.h>
  2. #include <Adafruit_MCP4725.h>
  3.  
  4. Adafruit_MCP4725 dac;
  5.  
  6. int volza;
  7.  
  8. void setup() {
  9.   Serial.begin(38400);
  10.   Serial.println("Hello!");
  11.   dac.begin(0x60);
  12. }
  13.  
  14. void loop() {
  15.     volza = dac.setVoltage(1095, 1); // THIS IS THE PROBLEM
  16.     Serial.println(volza);
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top