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

No output on RMT pin? #4

Open
N9SHazpnhYW opened this issue May 23, 2021 · 0 comments
Open

No output on RMT pin? #4

N9SHazpnhYW opened this issue May 23, 2021 · 0 comments

Comments

@N9SHazpnhYW
Copy link

I'm trying to utilize the code in your WIFI manager server for RGB LED control. I've verified FastLED library to work with my hardware, however when I try to use this code, I dont seem to get any actual output on the GPIO pin. There is no data on the pin when I check with an oscilloscope. Data looks fine on the scope with FastLED.

I am able to successfully start the WIFI server, connect, etc... I can also see the terminal printout of the RGB selection when I choose a color on the color wheel. The only problem is, there is no data being sent to the pin....

I am using pin 25:
#define WS2812_DATA_GPIO 25

I've verified that I am hitting this case in the state machine with a terminal printout:

case CLOCK_MESSAGE_BACKLIGHTS_CONFIG:{
					;rgb_t rgb;
					rgb.num = (uint32_t)msg.param;
					if(clock_config.display.led_color.num != rgb.num){
						clock_config.display.led_color = rgb;
						// display_turn_on();
						ESP_LOGI(TAG,"SET_BACKLIGHT_COLOR()");
						// ws2812_set_backlight_color(clock_config.display.led_color);
						xTaskNotifyGive( clock_task_save_nvs );
					}
					}
					break;

I also attempted to call ws2812_set_backlight_color(clock_config.display.led_color); within that case to manually send data.

I (21195) ws2812: Received R:140 G:161 B:255 I (21205) http_server: POST /backlights/ I (21205) webapp: setting backlight! I (21215) clock: got new led color I (21215) ws2812: Received R:128 G:138 B:255 I (21215) clock: SET_BACKLIGHT_COLOR() I (21225) ws2812: Received R:128 G:138 B:255

Any help would be greatly appreciated....thanks in advance

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

No branches or pull requests

1 participant