|
@@ -963,15 +963,15 @@ void servo_init() {
|
963
|
963
|
|
964
|
964
|
// This variant uses 3 separate pins for the RGB components.
|
965
|
965
|
// If the pins can do PWM then their intensity will be set.
|
966
|
|
- digitalWrite(RGB_LED_R_PIN, r ? HIGH : LOW);
|
967
|
|
- digitalWrite(RGB_LED_G_PIN, g ? HIGH : LOW);
|
968
|
|
- digitalWrite(RGB_LED_B_PIN, b ? HIGH : LOW);
|
|
966
|
+ WRITE(RGB_LED_R_PIN, r ? HIGH : LOW);
|
|
967
|
+ WRITE(RGB_LED_G_PIN, g ? HIGH : LOW);
|
|
968
|
+ WRITE(RGB_LED_B_PIN, b ? HIGH : LOW);
|
969
|
969
|
analogWrite(RGB_LED_R_PIN, r);
|
970
|
970
|
analogWrite(RGB_LED_G_PIN, g);
|
971
|
971
|
analogWrite(RGB_LED_B_PIN, b);
|
972
|
972
|
|
973
|
973
|
#if ENABLED(RGBW_LED)
|
974
|
|
- digitalWrite(RGB_LED_W_PIN, w ? HIGH : LOW);
|
|
974
|
+ WRITE(RGB_LED_W_PIN, w ? HIGH : LOW);
|
975
|
975
|
analogWrite(RGB_LED_W_PIN, w);
|
976
|
976
|
#endif
|
977
|
977
|
|
|
@@ -8548,7 +8548,7 @@ inline void gcode_M907() {
|
8548
|
8548
|
uint8_t case_light_brightness = 255;
|
8549
|
8549
|
|
8550
|
8550
|
void update_case_light() {
|
8551
|
|
- digitalWrite(CASE_LIGHT_PIN, case_light_on != INVERT_CASE_LIGHT ? HIGH : LOW);
|
|
8551
|
+ WRITE(CASE_LIGHT_PIN, case_light_on != INVERT_CASE_LIGHT ? HIGH : LOW);
|
8552
|
8552
|
analogWrite(CASE_LIGHT_PIN, case_light_on != INVERT_CASE_LIGHT ? case_light_brightness : 0);
|
8553
|
8553
|
}
|
8554
|
8554
|
|
|
@@ -10739,7 +10739,7 @@ void prepare_move_to_destination() {
|
10739
|
10739
|
uint8_t speed = (!lastMotorOn || ELAPSED(ms, lastMotorOn + (CONTROLLERFAN_SECS) * 1000UL)) ? 0 : CONTROLLERFAN_SPEED;
|
10740
|
10740
|
|
10741
|
10741
|
// allows digital or PWM fan output to be used (see M42 handling)
|
10742
|
|
- digitalWrite(CONTROLLERFAN_PIN, speed);
|
|
10742
|
+ WRITE(CONTROLLERFAN_PIN, speed);
|
10743
|
10743
|
analogWrite(CONTROLLERFAN_PIN, speed);
|
10744
|
10744
|
}
|
10745
|
10745
|
}
|