<commit_before># OctoPrint-LED-Strip-Control

OctoPrint Plugin that intercepts M150 GCode commands and controls local GPIOs accordingly.

Implements the M150 command syntax from the latest Marlin.

        M150: Set Status LED Color - Use R-U-B for R-G-B
        M150 R255       ; Turn LED red
        M150 R255 U127  ; Turn LED orange (PWM only)
        M150            ; Turn LED off
        M150 R U B      ; Turn LED white

## Setup

1. Make sure that the OctoPrint user is in the gpio group via the following command.

    	usermod -G gpio pi

1. Install via the bundled [Plugin Manager](https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager)
or manually using this URL:

    	https://github.com/google/OctoPrint-LEDStripControl/archive/master.zip

1. Restart OctoPrint

## Configuration

Configure the GPIO pins via the OctoPrint settings UI.

## Disclaimer

This is **not** an official Google product.<commit_msg>Note that the pin are specified by physical numbers, not BCM<commit_after># OctoPrint-LED-Strip-Control

OctoPrint Plugin that intercepts M150 GCode commands and controls local GPIOs accordingly.

Implements the M150 command syntax from the latest Marlin.

        M150: Set Status LED Color - Use R-U-B for R-G-B
        M150 R255       ; Turn LED red
        M150 R255 U127  ; Turn LED orange (PWM only)
        M150            ; Turn LED off
        M150 R U B      ; Turn LED white

## Setup

1. Make sure that the OctoPrint user is in the gpio group via the following command.

    	usermod -G gpio pi

1. Install via the bundled [Plugin Manager](https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager)
or manually using this URL:

    	https://github.com/google/OctoPrint-LEDStripControl/archive/master.zip

1. Restart OctoPrint

## Configuration

**NOTE: GPIO pins should be specified as phsyical number and not BCM number.**

Configure the GPIO pins via the OctoPrint settings UI.

## Disclaimer

This is **not** an official Google product.
{'fraction_non_alphanumeric': 0.06794162053346754, 'fraction_numerical': 0.03321590337191746, 'mean_word_length': 2.9444444444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6997485', 'n_tokens_mistral': 637, 'n_tokens_neox': 584, 'n_words': 244}