Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Marlin 2.1.2.1 M260 command (no replies)

$
0
0
Hello,

I need the help with the M260 command M260 [A] [R]

I am traying to send the data to the MCP4725 I2C device which adress is 0x61 which will be A97

Command I sent was M260 A97 B00 S1, response ok, but MCP4725 dis not change output vltage.

Device resopond on the M261 commands:

M261 A97 B2 S1 > echo:i2c-reply: from:97 bytes:2 data:C0 80 > ok

M261 A97 B2 S2 > echo:i2c-reply: from:97 bytes:2 data:-16256 > ok

M261 A97 B2 S3 > echo:i2c-reply: from:97 bytes:2 data:192 128 > ok


i was using the MCP4725 on the other projects and it work ok, here is exmple

Wire.beginTransmission(MCP4725); //Joins I2C bus with MCP4725 with 0x61 address
adc=(i*4095)/1023;
break;
}
buffer[1] = adc >> 4; //Puts the most significant bit values
buffer[2] = adc << 4; //Puts the Least significant bit values
Wire.write(buffer[0]); //Sends the control byte to I2C
Wire.write(buffer[1]); //Sends the MSB to I2C
Wire.write(buffer[2]); //Sends the LSB to I2C
Wire.endTransmission(); //Ends the transmission
}


I would greatly appreciate any assistance or suggestions. Thank you !

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>