diff --git a/CMakeLists.txt b/CMakeLists.txt index d30234b..1c1c705 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,10 @@ target_compile_options(${PROJECT} PRIVATE ) #-Wall -Wextra target_compile_definitions(${PROJECT} PRIVATE PIO_USB_USE_TINYUSB) # needed so tinyusb can find tusb_config.h -target_include_directories(${PROJECT} PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${TUSB_NETWORKING_PATH}) +target_include_directories(${PROJECT} PRIVATE + ${CMAKE_CURRENT_LIST_DIR} + ${TUSB_NETWORKING_PATH} +) target_link_libraries(${PROJECT} PRIVATE pico_lwip diff --git a/aw410k.c b/aw410k.c index 1284023..ccae4d9 100644 --- a/aw410k.c +++ b/aw410k.c @@ -29,7 +29,6 @@ static void send_color(uint8_t dev_addr); static void send_initial(uint8_t dev_addr); static struct key * find_key(char * name); static void set_color(char * name, uint8_t red, uint8_t green, uint8_t blue, uint8_t mode); -static void set_color_all(uint8_t red, uint8_t green, uint8_t blue, uint8_t mode); static struct key key_list[NUM_KEYS] = { @@ -144,7 +143,6 @@ static struct key key_list[NUM_KEYS] = void get_light() { // get ADC reading from LDR every 500ms - // if above threshold, set backlight to off if ( absolute_time_diff_us(lastRead, get_absolute_time()) >= 500000) { adc_value = adc_read(); } @@ -316,20 +314,6 @@ static void set_color(char * name, uint8_t red, uint8_t green, uint8_t blue, uin } } -// set RGB color for all keys -static void set_color_all(uint8_t red, uint8_t green, uint8_t blue, uint8_t mode) { - for (uint8_t i=0; inext = NULL; } -// free memory and teardown usb->bt report ID mappings for report descriptor struct +// free memory for report descriptor struct static void report_desc_free(struct report_desc *descriptor) { if (descriptor != NULL) { if (descriptors == descriptor) {