-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using I2c of RAMPS 1.4 #4068
Comments
With #3258 we added an i2c bus feature, which exists in |
Thank you .. I did it but i have confusion between sending hex value and byte or char |
What is the confusion ? |
address is in hex when M155 A8 // slave address
M155 B1 // start bit
M155 B2 // command
M155 B23 // stop bit
M155 S1 // send it doesn't work . Is this correct way to send command?? |
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63
* ; It uses multiple M155 commands with one B<base 10> arg
* M155 A63 ; Target slave address
* M155 B77 ; M
* M155 B97 ; a
* M155 B114 ; r
* M155 B108 ; l
* M155 B105 ; i
* M155 B110 ; n
* M155 S1 ; Send the current buffer I am reffering this |
@pankajbadatia
All values are expressed in decimal. So in your second example
|
Scott, that's the example from the |
Does the ramp accept address in hex or decimal ?? |
/* Start and end of packet markers These are #define PACKET_SOP (0x01u) /* any one can be used Commands set */ Then which commands should i send |
And it's wrong, alas. |
The |
I'm just guessing here, but it looks like you have the right idea… M155 A8 ; slave addr
M155 B1 ; PACKET_SOP
M155 B0 ; all off first
M155 B1 ; red
M155 B2 ; +green = yellow
M155 B23 ; PACKET_EOP
M155 S1 ; <send> |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi all I want to know how can i connect RAMPS as masster and other arduino as slave using I2c communication.
which code should i edit .
my slave address is 0x08
start bit 0x01
command bit 0x02
stop bit 0x17
The text was updated successfully, but these errors were encountered: