Hello! I am using repetier on a rambo and want to use the i2c capabilities for communicating with another Arduino.
I uploaded an example sketch to the rambo and another arduino and have them talking to each other fine. When I try to add this into the Repetier firmware I get trouble.
I have a simple example:
This code fails when it gets to the write step. I am in a bit over my head here and would appreciate any advice someone might have. I can't find any examples of i2c being used aside from write commands everywhere. Where is i2c being initialized? How is it used?
Thanks!
I uploaded an example sketch to the rambo and another arduino and have them talking to each other fine. When I try to add this into the Repetier firmware I get trouble.
I have a simple example:
HAL::i2cStartWait(4); HAL::i2cWrite('a'); HAL::i2cStop();
This code fails when it gets to the write step. I am in a bit over my head here and would appreciate any advice someone might have. I can't find any examples of i2c being used aside from write commands everywhere. Where is i2c being initialized? How is it used?
Thanks!