🔪 Removes unused library code
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
#ifndef OV2640_H_
|
||||
#define OV2640_H_
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <pgmspace.h>
|
||||
#include <stdio.h>
|
||||
#include "esp_log.h"
|
||||
#include "esp_attr.h"
|
||||
#include "esp_camera.h"
|
||||
|
||||
extern camera_config_t esp32cam_config, esp32cam_aithinker_config, esp32cam_ttgo_t_config;
|
||||
|
||||
class OV2640
|
||||
{
|
||||
public:
|
||||
OV2640(){
|
||||
fb = NULL;
|
||||
};
|
||||
~OV2640(){
|
||||
};
|
||||
esp_err_t init(camera_config_t config);
|
||||
void run(void);
|
||||
size_t getSize(void);
|
||||
uint8_t *getfb(void);
|
||||
int getWidth(void);
|
||||
int getHeight(void);
|
||||
framesize_t getFrameSize(void);
|
||||
pixformat_t getPixelFormat(void);
|
||||
|
||||
void setFrameSize(framesize_t size);
|
||||
void setPixelFormat(pixformat_t format);
|
||||
|
||||
private:
|
||||
void runIfNeeded(); // grab a frame if we don't already have one
|
||||
|
||||
// camera_framesize_t _frame_size;
|
||||
// camera_pixelformat_t _pixel_format;
|
||||
camera_config_t _cam_config;
|
||||
|
||||
camera_fb_t *fb;
|
||||
};
|
||||
|
||||
#endif //OV2640_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
const char index_simple_html[] = R"=====(<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="content-security-policy" content="">
|
||||
<style>
|
||||
body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
display:flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #00bbe3;
|
||||
}
|
||||
|
||||
.stream-wrapper {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#stream {
|
||||
object-fit: contain;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Spot Micro Controller</h2>
|
||||
<div class="stream-wrapper">
|
||||
<img id="stream"/>
|
||||
</div>
|
||||
<script>
|
||||
const init = () => {
|
||||
|
||||
let websocket = new WebSocket("ws://192.168.0.175:81")
|
||||
websocket.onopen = (event) => {
|
||||
console.log(event);
|
||||
};
|
||||
websocket.onmessage = (event) => {
|
||||
console.log(event.data);
|
||||
}
|
||||
|
||||
document.getElementById("stream").src = "//192.168.0.175/mjpeg/1"
|
||||
}
|
||||
init()
|
||||
</script>
|
||||
</body>
|
||||
</html>)=====";
|
||||
|
||||
size_t index_simple_html_len = sizeof(index_simple_html)-1;
|
||||
Reference in New Issue
Block a user