diff --git a/components/badge23/espan.c b/components/badge23/espan.c index 40d328026c5484cddeea8099f2cb3617e93788d8..21fbaa98ef41685ce29cfa1e2aa2f8cbb57b290c 100644 --- a/components/badge23/espan.c +++ b/components/badge23/espan.c @@ -1,6 +1,5 @@ #include "badge23/captouch.h" #include "badge23/spio.h" -#include "badge23/lock.h" #include "flow3r_bsp.h" #include "st3m_gfx.h" @@ -42,13 +41,8 @@ static void io_slow_task(void * data){ } } -void locks_init(){ - mutex_LED = xSemaphoreCreateMutex(); -} - void badge23_main(void) { - locks_init(); ESP_LOGI(TAG, "Starting on %s...", flow3r_bsp_hw_name); init_buttons(); diff --git a/components/badge23/include/badge23/decode_image.h b/components/badge23/include/badge23/decode_image.h deleted file mode 100644 index 6100703afca0a389dcc943f82ca041da4b00f2c1..0000000000000000000000000000000000000000 --- a/components/badge23/include/badge23/decode_image.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - This example code is in the Public Domain (or CC0 licensed, at your option.) - - Unless required by applicable law or agreed to in writing, this - software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR - CONDITIONS OF ANY KIND, either express or implied. -*/ - -#pragma once -#include <stdint.h> -#include "esp_err.h" - -#define IMAGE_W 240 -#define IMAGE_H 240 - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Decode the jpeg ``image.jpg`` embedded into the program file into pixel data. - * - * @param pixels A pointer to a pointer for an array of rows, which themselves are an array of pixels. - * Effectively, you can get the pixel data by doing ``decode_image(&myPixels); pixelval=myPixels[ypos][xpos];`` - * @return - ESP_ERR_NOT_SUPPORTED if image is malformed or a progressive jpeg file - * - ESP_ERR_NO_MEM if out of memory - * - ESP_OK on succesful decode - */ -esp_err_t decode_image(uint16_t **pixels); - -#ifdef __cplusplus -} -#endif diff --git a/components/badge23/include/badge23/lock.h b/components/badge23/include/badge23/lock.h deleted file mode 100644 index 5f11a434df4a9ba4ed16abb708a5b92c13f051ee..0000000000000000000000000000000000000000 --- a/components/badge23/include/badge23/lock.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -#include <freertos/FreeRTOS.h> -#include <freertos/semphr.h> - -SemaphoreHandle_t mutex_LED; diff --git a/components/badge23/spio.c b/components/badge23/spio.c index c1e48167f353550f20495c56b929a8b440a47b89..1c65765713ee1daa9fdd9d226828490ca277145f 100644 --- a/components/badge23/spio.c +++ b/components/badge23/spio.c @@ -2,7 +2,6 @@ #include "driver/gpio.h" #include "stdint.h" #include "badge23/spio.h" -#include "badge23/lock.h" #include "st3m_audio.h" #include "flow3r_bsp_i2c.h"