Skip to content
Snippets Groups Projects
Commit 2c8ad988 authored by q3k's avatar q3k
Browse files

components/badge23: clean up unused bits

parent bc15185d
No related branches found
No related tags found
No related merge requests found
#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();
......
/*
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
#pragma once
#include <freertos/FreeRTOS.h>
#include <freertos/semphr.h>
SemaphoreHandle_t mutex_LED;
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment