chore: 项目名改为 display ambient light desktop.
This commit is contained in:
		@@ -7,4 +7,4 @@ cmake_minimum_required(VERSION 3.5)
 | 
			
		||||
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/led_strip)
 | 
			
		||||
 | 
			
		||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 | 
			
		||||
project(screen-bg-light)
 | 
			
		||||
project(display-ambient-light-board)
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
menu "Display Ambientlight Configuration"
 | 
			
		||||
menu "Display Ambient Light Configuration"
 | 
			
		||||
    config NUMBER_OF_LEDS
 | 
			
		||||
        int "Number of LEDs in the light strip"
 | 
			
		||||
        range 1 65535
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
#include "led_strip.h"
 | 
			
		||||
#include "sdkconfig.h"
 | 
			
		||||
 | 
			
		||||
static const char *LIGHT_TAG = "ScreenBgLight_Light";
 | 
			
		||||
static const char *LIGHT_TAG = "DisplayAmbientLight_Light";
 | 
			
		||||
 | 
			
		||||
#define RMT_TX_CHANNEL RMT_CHANNEL_0
 | 
			
		||||
#define RMT_TX_GPIO 1
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
#include "sdkconfig.h"
 | 
			
		||||
#include "wifi.c"
 | 
			
		||||
 | 
			
		||||
static const char *TAG = "ScreenBgLight";
 | 
			
		||||
static const char *TAG = "DisplayAmbientLight";
 | 
			
		||||
 | 
			
		||||
void app_main(void) {
 | 
			
		||||
  light_init_strip();
 | 
			
		||||
 
 | 
			
		||||
@@ -24,8 +24,8 @@
 | 
			
		||||
#define MQTT_DESKTOP_SENDING_BIT BIT5
 | 
			
		||||
#define MQTT_COLORS_STAND_BY_BIT BIT6
 | 
			
		||||
 | 
			
		||||
#define MQTT_BOARD_KEY_PREFIX "screen-bg-light/board/"
 | 
			
		||||
#define MQTT_DESKTOP_KEY_PREFIX "screen-bg-light/desktop/"
 | 
			
		||||
#define MQTT_BOARD_KEY_PREFIX "display-ambient-light/board/"
 | 
			
		||||
#define MQTT_DESKTOP_KEY_PREFIX "display-ambient-light/desktop/"
 | 
			
		||||
#define MQTT_ONLINE_SUFFIX "online"
 | 
			
		||||
#define MQTT_COLORS_SUFFIX "colors"
 | 
			
		||||
#define MQTT_ALL_SUFFIX "#"
 | 
			
		||||
@@ -35,7 +35,7 @@
 | 
			
		||||
#define MQTT_KEY_DESKTOP_COLORS MQTT_DESKTOP_KEY_PREFIX MQTT_COLORS_SUFFIX
 | 
			
		||||
#define MQTT_KEY_DESKTOP_ALL MQTT_DESKTOP_KEY_PREFIX MQTT_ALL_SUFFIX
 | 
			
		||||
 | 
			
		||||
static const char *MQTT_TAG = "ScreenBgLight_MQTT";
 | 
			
		||||
static const char *MQTT_TAG = "DisplayAmbientLight_MQTT";
 | 
			
		||||
 | 
			
		||||
static EventGroupHandle_t s_mqtt_event_group;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -57,7 +57,7 @@ static EventGroupHandle_t s_wifi_event_group;
 | 
			
		||||
#define WIFI_CONNECTED_BIT BIT0
 | 
			
		||||
#define WIFI_FAIL_BIT BIT1
 | 
			
		||||
 | 
			
		||||
static const char* WIFI_TAG = "ScreenBgLight_WIFI";
 | 
			
		||||
static const char* WIFI_TAG = "DisplayAmbientLight_WIFI";
 | 
			
		||||
 | 
			
		||||
static int s_retry_num = 0;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user