Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GCODE for Hotend LED #9

Closed
Ranney1 opened this issue Oct 4, 2020 · 6 comments
Closed

Implement GCODE for Hotend LED #9

Ranney1 opened this issue Oct 4, 2020 · 6 comments

Comments

@Ranney1
Copy link

Ranney1 commented Oct 4, 2020

If changed the Configuration_adv.h in firmware to this:
Than is the case light (M355) supported and working

/**

  • M355 Case Light on-off / brightness
    */
    #define CASE_LIGHT_ENABLE
    #if ENABLED(CASE_LIGHT_ENABLE)
    #define CASE_LIGHT_PIN 6 // Override the default pin if needed
    #define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
    #define CASE_LIGHT_DEFAULT_ON false // Set default power-up state on
    #define CASE_LIGHT_DEFAULT_BRIGHTNESS 255 // Set default power-up brightness (0-255, requires PWM pin)
    //#define CASE_LIGHT_MAX_PWM 128 // Limit pwm
    //#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
    #define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting.
    //#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light, requires NEOPIXEL_LED.
    //#if ENABLED(CASE_LIGHT_USE_NEOPIXEL)
    //#define CASE_LIGHT_NEOPIXEL_COLOR { 255, 255, 255, 255 } // { Red, Green, Blue, White }
    #endif
@ritchiedc
Copy link

I have extended this by adding support to update the screen of anyone wants it.

@Ranney1
Copy link
Author

Ranney1 commented Oct 25, 2020

I have extended this by adding support to update the screen of anyone wants it.

Ahh, great! Can you tell me how you did this? Thanks!

@ritchiedc
Copy link

ritchiedc commented Oct 25, 2020

Attached is a text file detailing the changes I made. It was made before the release today (10/25) so line numbers may be different. I included snippets of code with "c", "+" and "-" in front of lines changed, added or removed. I tried to provide explanations.

Issue 9 changes.txt

Edit: With this method you can also control brightness with M355

@Ranney1
Copy link
Author

Ranney1 commented Oct 25, 2020

Ahh, thanks! Looking in to it!

@Sebazzz
Copy link
Collaborator

Sebazzz commented Oct 28, 2020

M355 is implemented in extui branch

@Sebazzz Sebazzz added this to the Community Release 4 alpha milestone Oct 29, 2020
@Sebazzz
Copy link
Collaborator

Sebazzz commented Nov 1, 2020

Ready for next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants