Skip to content

Commit 8f134d4

Browse files
authored
Merge pull request #26 from eried/next
Updating firmware
2 parents 6cfb0cf + de56e7e commit 8f134d4

20 files changed

+156173
-3
lines changed
Binary file not shown.
Binary file not shown.

docs/webinstaller/build/esp32cam_marauder.ino.map

+153,118
Large diffs are not rendered by default.
Binary file not shown.

docs/webinstaller/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ <h1>Mayhem for Flipper Zero -installer</h1>
6161

6262
<div class="changelog-box">
6363
Changelog<br><br>
64+
v0.13.5 r1 2023-12-14<br>
65+
* Enabled bluetooth functionality for Marauder<br>
66+
<br>
6467
v0.13.5 2023-12-04<br>
6568
* Updated Marauder to latest version<br>
6669
* Updated Marauder companion to v0.6.5<br>

esp32cam_marauder/QRCodeReader.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct QRCodeData
55
{
66
bool valid;
77
int dataType;
8-
uint8_t payload[1024];
8+
uint8_t payload[256];
99
int payloadLen;
1010
};
1111

esp32cam_marauder/configs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
//#define XIAO_ESP32_S3
2323
//// END BOARD TARGETS
2424

25-
#define MARAUDER_VERSION "v0.13.5"
25+
#define MARAUDER_VERSION "v0.13.5 r1"
2626

2727
//// HARDWARE NAMES
2828
#ifdef MARAUDER_M5STICKC
@@ -139,7 +139,7 @@
139139
#ifdef MARAUDER_FLIPPER
140140
//#define FLIPPER_ZERO_HAT
141141
//#define HAS_BATTERY
142-
//#define HAS_BT
142+
#define HAS_BT
143143
//#define HAS_BUTTONS
144144
//#define HAS_NEOPIXEL_LED
145145
//#define HAS_PWR_MGMT
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://github.com/plerup/espsoftwareserial
-25.2 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I got this library from : https://github.com/fustyles/Arduino/tree/master/ESP32-CAM_QRCode_Recognition/ESP32QRCodeReader_Page
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/* This file is part of the OpenMV project.
2+
* Copyright (c) 2013-2017 Ibrahim Abdelkader <iabdalkader@openmv.io> & Kwabena W. Agyeman <kwagyeman@openmv.io>
3+
* This work is licensed under the MIT license, see the file LICENSE for details.
4+
*/
5+
6+
#include "collections.h"
7+
#define CHAR_BITS (sizeof(char) * 8)
8+
#define CHAR_MASK (CHAR_BITS - 1)
9+
#define CHAR_SHIFT IM_LOG2(CHAR_MASK)
10+
11+
//////////
12+
// lifo //
13+
//////////
14+
15+
void lifo_alloc(lifo_t *ptr, size_t size, size_t data_len)
16+
{
17+
ptr->len = 0;
18+
ptr->size = size;
19+
ptr->data_len = data_len;
20+
ptr->data = (char *)ps_malloc(size * data_len);
21+
}
22+
23+
void lifo_alloc_all(lifo_t *ptr, size_t *size, size_t data_len)
24+
{
25+
ptr->data = (char *)ps_malloc(255);
26+
ptr->data_len = data_len;
27+
ptr->size = 255 / data_len;
28+
ptr->len = 0;
29+
*size = ptr->size;
30+
}
31+
32+
void lifo_free(lifo_t *ptr)
33+
{
34+
if (ptr->data)
35+
{
36+
free(ptr->data);
37+
}
38+
}
39+
40+
void lifo_clear(lifo_t *ptr)
41+
{
42+
ptr->len = 0;
43+
}
44+
45+
size_t lifo_size(lifo_t *ptr)
46+
{
47+
return ptr->len;
48+
}
49+
50+
bool lifo_is_not_empty(lifo_t *ptr)
51+
{
52+
return ptr->len;
53+
}
54+
55+
bool lifo_is_not_full(lifo_t *ptr)
56+
{
57+
return ptr->len != ptr->size;
58+
}
59+
60+
void lifo_enqueue(lifo_t *ptr, void *data)
61+
{
62+
memcpy(ptr->data + (ptr->len * ptr->data_len), data, ptr->data_len);
63+
64+
ptr->len += 1;
65+
}
66+
67+
void lifo_dequeue(lifo_t *ptr, void *data)
68+
{
69+
if (data)
70+
{
71+
memcpy(data, ptr->data + ((ptr->len - 1) * ptr->data_len), ptr->data_len);
72+
}
73+
74+
ptr->len -= 1;
75+
}
76+
77+
void lifo_poke(lifo_t *ptr, void *data)
78+
{
79+
memcpy(ptr->data + (ptr->len * ptr->data_len), data, ptr->data_len);
80+
}
81+
82+
void lifo_peek(lifo_t *ptr, void *data)
83+
{
84+
memcpy(data, ptr->data + ((ptr->len - 1) * ptr->data_len), ptr->data_len);
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* This file is part of the OpenMV project.
2+
* Copyright (c) 2013-2017 Ibrahim Abdelkader <iabdalkader@openmv.io> & Kwabena W. Agyeman <kwagyeman@openmv.io>
3+
* This work is licensed under the MIT license, see the file LICENSE for details.
4+
*/
5+
6+
#ifndef __COLLECTIONS_H__
7+
#define __COLLECTIONS_H__
8+
#include <stdbool.h>
9+
#include <stddef.h>
10+
//////////
11+
// lifo //
12+
//////////
13+
14+
typedef struct lifo
15+
{
16+
size_t len, size, data_len;
17+
char *data;
18+
}
19+
__attribute__((aligned(8))) lifo_t;
20+
21+
void lifo_alloc(lifo_t *ptr, size_t size, size_t data_len);
22+
void lifo_alloc_all(lifo_t *ptr, size_t *size, size_t data_len);
23+
void lifo_free(lifo_t *ptr);
24+
void lifo_clear(lifo_t *ptr);
25+
size_t lifo_size(lifo_t *ptr);
26+
bool lifo_is_not_empty(lifo_t *ptr);
27+
bool lifo_is_not_full(lifo_t *ptr);
28+
void lifo_enqueue(lifo_t *ptr, void *data);
29+
void lifo_dequeue(lifo_t *ptr, void *data);
30+
void lifo_poke(lifo_t *ptr, void *data);
31+
void lifo_peek(lifo_t *ptr, void *data);
32+
33+
#endif /* __COLLECTIONS_H__ */

0 commit comments

Comments
 (0)