Remove code related to ws2812 leds (do not mix examples in base when possible)
authorNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 19 Jun 2017 16:28:34 +0000 (18:28 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:14:23 +0000 (17:14 +0100)
test_sensor_env/main.c

index e45c5e0..a0fba35 100644 (file)
@@ -145,9 +145,6 @@ void bme_display(int uart_num)
                                comp_pressure,
                                comp_temp / 10,  (comp_temp > 0) ? (comp_temp % 10) : ((-comp_temp) % 10),
                                comp_humidity / 10, comp_humidity % 10);
-               ws2812_set_pixel(0, comp_humidity / 10, 0,0);
-               ws2812_set_pixel(1, 0, 0, comp_humidity % 10);
-               ws2812_send_frame(0);
        }
 }
 
@@ -230,9 +227,6 @@ int main(void)
        uv_config(UART0);
        lux_config(UART0);
 
-       /* */
-       ws2812_config(&ws2812_data_out_pin);
-
        while (1) {
                bme_display(UART0);
                uv_display(UART0);