My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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