RichieHard

Untitled

Mar 17th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #define SDA_1 21
  2. #define SCL_1 22
  3.  
  4. #define SDA_2 4
  5. #define SCL_2 17
  6.  
  7. TwoWire Wire = TwoWire(0);
  8. TwoWire Wire1 = TwoWire(1);
  9.  
  10. void setup()
  11. {
  12. Wire.begin(SDA_1, SCL_1, 100000);
  13. Wire1.begin(SDA_2, SCL_2, 100000);
  14.  
  15.  
  16. //HMD.begin();
  17. Serial.begin(9600);
  18. HMD.Mode(0); // Internal trigger input mode -- Must use the GO() function to trigger playback.
  19. HMD.MotorSelect(0x36); // ERM motor, 4x Braking, Medium loop gain, 1.365x back EMF gain
  20. HMD.Library(2); //1-5 & 7 for ERM motors, 6 for LRA motors
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment