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 479B

1234567891011121314151617181920212223
  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. #if ENABLED(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