My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BlinkM.cpp 473B

12345678910111213141516171819202122
  1. /*
  2. BlinkM.cpp - Library for controlling a BlinkM over i2c
  3. Created by Tim Koster, August 21 2013.
  4. */
  5. #include "Marlin.h"
  6. #ifdef BLINKM
  7. #include "BlinkM.h"
  8. void SendColors(byte red, byte grn, byte blu) {
  9. Wire.begin();
  10. Wire.beginTransmission(0x09);
  11. Wire.write('o'); //to disable ongoing script, only needs to be used once
  12. Wire.write('n');
  13. Wire.write(red);
  14. Wire.write(grn);
  15. Wire.write(blu);
  16. Wire.endTransmission();
  17. }
  18. #endif //BLINKM