MCP4726 wont work...any suggestions?

I am trying to use a MCP4726 as a daq to control modulated power. I cannot seem to get the DAC to work. The output stays at 1.5mV and never rises.

Here is the code that actually sends the command to have output max voltage. Maybe I am missing something?

   uint8_t ui8aWriteVal[2];


    ui8aWriteVal[0] = 0xff;
    ui8aWriteVal[1] = 0xf0;

    // use arduino library to send a transmission:
    Wire.beginTransmission( 0x60 );
    Wire.write( ui8aWriteVal, 2 );
    Wire.endTransmission();

Here is the code that actually sends the command to have output max voltage. Maybe I am missing something?

You are missing all your code. And you are not writing the correct numbers. Look at the wire examples in the IDE.

I just included the part of the code that sends the I2C commands. Everything else works fine.

Does wire.beginTransmission() have to contain an int? Can it not contain a hex value?

Also, since I am doing this in bytes, I guess that means endianess is irrelavent?

maybe I need to tell the chip I am going to write a command (an additional byte to send)? I am looking into the datasheet, and it says that there is an additional power down register you have to write to. I am kind of confused....do you put this in the data bit bytes or do you send it separately?

I just included the part of the code that sends the I2C commands.

So write a small piece of code that compiles and runs so that other people can try it. When posting "sinpites" like this 95% of people here actually miss out the bit that is wrong.