Krolyxon
Commit 75eea47

Branches

Tags

Refs →

orion-rf75eea47

move bluetooth, nfc, and utils into subfolders

Author
krolyxon
Date
2026-05-11 15:00 +0530
Parent
278646b
Commit
75eea47140e22f86fb23631e4fb436d8a09c8695

+24 −24

19 files changed

  1. R src/ble_mouse.cpp → src/bluetooth/ble_mouse.cpp +3 −3
  2. R src/ble_mouse.h → src/bluetooth/ble_mouse.h +0 −0
  3. R src/blescanner.cpp → src/bluetooth/blescanner.cpp +2 −2
  4. R src/blescanner.h → src/bluetooth/blescanner.h +0 −0
  5. R src/badusb.cpp → src/hid/badusb.cpp +1 −1
  6. R src/badusb.h → src/hid/badusb.h +0 −0
  7. M src/main.cpp +1 −1
  8. R src/nfc.cpp → src/nfc/nfc.cpp +2 −2
  9. R src/nfc.h → src/nfc/nfc.h +0 −0
  10. M src/rf/nrf24.cpp +1 −1
  11. M src/ui/menu.cpp +7 −7
  12. R src/buttons.cpp → src/utils/buttons.cpp +1 −1
  13. R src/buttons.h → src/utils/buttons.h +0 −0
  14. R src/device_check.cpp → src/utils/device_check.cpp +3 −3
  15. R src/device_check.h → src/utils/device_check.h +0 −0
  16. R src/sysinfo.cpp → src/utils/sysinfo.cpp +1 −1
  17. R src/sysinfo.h → src/utils/sysinfo.h +0 −0
  18. M src/wifi/wifi_analyzer.cpp +1 −1
  19. M src/wifi/wifi_scan.cpp +1 −1
R src/ble_mouse.cpp → src/bluetooth/ble_mouse.cpp View
@@ -1,9 +1,9 @@
11 #include <Arduino.h>
22 #include <BleMouse.h>
3−#include "badusb.h"
4−#include "config.h"
3+#include "../hid/badusb.h"
4+#include "../config.h"
55
6−#include "buttons.h"
6+#include "../utils/buttons.h"
77 #include "ui/display.h"
88
99 // ===== BLE MOUSE =====
R src/ble_mouse.h → src/bluetooth/ble_mouse.h View

[No content changes]

R src/blescanner.cpp → src/bluetooth/blescanner.cpp View
@@ -5,8 +5,8 @@
55 #include <vector>
66
77 #include "ui/display.h"
8−#include "buttons.h"
9−#include "config.h"
8+#include "../utils/buttons.h"
9+#include "../config.h"
1010
1111 // ===== DEVICE STRUCT =====
1212 struct BLEDeviceInfo {
R src/blescanner.h → src/bluetooth/blescanner.h View

[No content changes]

R src/badusb.cpp → src/hid/badusb.cpp View
@@ -1,6 +1,6 @@
11 #include <Arduino.h>
22 #include <USBHIDKeyboard.h>
3−#include "ui/display.h"
3+#include "../ui/display.h"
44
55 extern USBHIDKeyboard Keyboard;
66
R src/badusb.h → src/hid/badusb.h View

[No content changes]

M src/main.cpp View
@@ -21,7 +21,7 @@
2121
2222
2323 #include "ui/display.h"
24−#include "buttons.h"
24+#include "utils/buttons.h"
2525 #include "ui/menu.h"
2626
2727 #include "config.h"
R src/nfc.cpp → src/nfc/nfc.cpp View
@@ -5,8 +5,8 @@
55 #include <Adafruit_PN532.h>
66
77 #include "ui/display.h"
8−#include "buttons.h"
9−#include "config.h"
8+#include "../utils/buttons.h"
9+#include "../config.h"
1010
1111 #define PN532_IRQ -1
1212 #define PN532_RESET -1
R src/nfc.h → src/nfc/nfc.h View

[No content changes]

M src/rf/nrf24.cpp View
@@ -2,7 +2,7 @@
22 #include <RF24.h>
33 #include "nrf24.h"
44 #include "../ui/display.h"
5−#include "../buttons.h"
5+#include "../utils/buttons.h"
66 #define JAM_DURATION 500
77
88 extern SPIClass *RADIO_SPI;
M src/ui/menu.cpp View
@@ -1,18 +1,18 @@
11 #include <Arduino.h>
22 #include "menu.h"
33 #include "display.h"
4−#include "buttons.h"
5−#include "badusb.h"
4+#include "utils/buttons.h"
5+#include "hid/badusb.h"
66 #include "rf/nrf24.h"
77 #include "rf/cc1101.h"
8−#include "blescanner.h"
98 #include "wifi/wifi_scan.h"
109 #include "wifi/wifi_analyzer.h"
11−#include "device_check.h"
12−#include "ble_mouse.h"
13−#include "sysinfo.h"
10+#include "utils/device_check.h"
11+#include "bluetooth/ble_mouse.h"
12+#include "bluetooth/blescanner.h"
13+#include "utils/sysinfo.h"
1414 #include "BleMouse.h"
15−#include "nfc.h"
15+#include "nfc/nfc.h"
1616
1717 // ================= MENU DATA =================
1818 extern BleMouse bleMouse;
R src/buttons.cpp → src/utils/buttons.cpp View
@@ -1,6 +1,6 @@
11 #include "buttons.h"
22 #include <Arduino.h>
3−#include "config.h"
3+#include "../config.h"
44
55 void buttonsInit()
66 {
R src/buttons.h → src/utils/buttons.h View

[No content changes]

R src/device_check.cpp → src/utils/device_check.cpp View
@@ -2,11 +2,11 @@
22 #include <SPI.h>
33 #include <Wire.h>
44 #include <RF24.h>
5−#include "libs/ELECHOUSE_CC1101_SRC_DRV.h"
5+#include "../libs/ELECHOUSE_CC1101_SRC_DRV.h"
66
7−#include "ui/display.h"
7+#include "../ui/display.h"
88 #include "buttons.h"
9−#include "config.h"
9+#include "../config.h"
1010
1111 // ===== EXTERNALS =====
1212 extern RF24 radio1;
R src/device_check.h → src/utils/device_check.h View

[No content changes]

R src/sysinfo.cpp → src/utils/sysinfo.cpp View
@@ -1,5 +1,5 @@
11 #include <Arduino.h>
2−#include "ui/display.h"
2+#include "../ui/display.h"
33 #include "buttons.h"
44 #include <esp_chip_info.h>
55 #include <esp_heap_caps.h>
R src/sysinfo.h → src/utils/sysinfo.h View

[No content changes]

M src/wifi/wifi_analyzer.cpp View
@@ -3,7 +3,7 @@
33 #include <esp_wifi.h>
44
55 #include "../ui/display.h"
6−#include "../buttons.h"
6+#include "../utils/buttons.h"
77
88 // ===== CONFIG =====
99 #define GRAPH_WIDTH 128
M src/wifi/wifi_scan.cpp View
@@ -1,7 +1,7 @@
11 #include <Arduino.h>
22 #include <WiFi.h>
33 #include "../ui/display.h"
4−#include "../buttons.h"
4+#include "../utils/buttons.h"
55
66 #define MAX_NETWORKS 30
77