dot-bob / Marlin-Duplicator-6

Marlin firmware for the Duplicator 6
GNU General Public License v3.0
65 stars 33 forks source link

PWM leds #3

Closed timbit123 closed 7 years ago

timbit123 commented 7 years ago

Hello, I saw two rgb led behind the knob, they turn on after I flashed but never came back after a reboot. I don't know if there is a way to get the pins number but we could activate the config"RGB_LED" and TEMP_STAT_LEDS too.

dot-bob commented 7 years ago

For Marlin RC8 use gcode M150 to set the color of the LEDs. I just uploaded the 1.1.x branch which is based of the marlin bugfix-1.1.x branch from a few days ago. This version supports the PRINTER_EVENT_LEDS out of the box

 * Printer Event LEDs
 *
 * During printing, the LEDs will reflect the printer status:
 *
 *  - Gradually change from blue to violet as the heated bed gets to target temp
 *  - Gradually change from violet to red as the hotend gets to temperature
 *  - Change to white to illuminate work surface
 *  - Change to green once print has finished
 *  - Turn off after the print has finished and the user has pushed a button
 */

https://github.com/dot-bob/Marlin-Duplicator-6/tree/1.1.x Let me know if you have any issues.

timbit123 commented 7 years ago

look like its working! I activated this in the config (I don't know if I had to) and it light up

define RGB_LED

//#define RGBW_LED

if ENABLED(RGB_LED) || ENABLED(RGBW_LED)

define RGB_LED_R_PIN 34

define RGB_LED_G_PIN 43

define RGB_LED_B_PIN 35

define RGB_LED_W_PIN -1

endif

now I just need to make a transparent knob

The only issue I found is the refresh of the screen, if you go too fast in the menu sometime there is 2 menu selected or half of the screen have the text shifted. Otherwise everything else run smoothly