Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32-bt2ps2)
2 changes: 1 addition & 1 deletion main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
idf_component_register(SRCS "main.cpp" "bt_keyboard.cpp" "esp32-ps2dev.cpp" "${app_sources}"
idf_component_register(SRCS "main.cpp" "bt_keyboard.cpp" "esp32-ps2dev.cpp" "serial_mouse.cpp" "${app_sources}"
REQUIRES esp_hid nvs_flash driver)

component_compile_options(-Wno-error=format= -Wno-format)
2 changes: 1 addition & 1 deletion main/bt_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// limitations under the License.

#define __BT_KEYBOARD__ 1
#include "..\include\bt_keyboard.hpp"
#include "../include/bt_keyboard.hpp"

#include <cstring>
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion main/esp32-ps2dev.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "..\include\esp32-ps2dev.h"
#include "../include/esp32-ps2dev.h"
#define NOP() asm volatile("nop")
#define HIGH 0x1
#define LOW 0x0
Expand Down
10 changes: 5 additions & 5 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Dedicated to all who love me and all who I love.
Never stop dreaming.
*/

#include "..\include\globals.hpp"
#include "../include/globals.hpp"
#include "nvs_flash.h"
#include "esp_system.h"
#include "driver\gpio.h"
#include "driver/gpio.h"
#include <iostream>
#include <cmath>
#include "..\include\bt_keyboard.hpp" // Interface with a BT/BLE peripheral device (Keyboard & Mouse)
#include "..\include\esp32-ps2dev.h" // Emulate a PS/2 device
#include "..\include\serial_mouse.h" // Emulate a serial mouse
#include "../include/bt_keyboard.hpp" // Interface with a BT/BLE peripheral device (Keyboard & Mouse)
#include "../include/esp32-ps2dev.h" // Emulate a PS/2 device
#include "../include/serial_mouse.h" // Emulate a serial mouse

/////////////////////////////// USER ADJUSTABLE VARIABLES //////////////////////////////////////////////////

Expand Down
4 changes: 2 additions & 2 deletions main/serial_mouse.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This module contains code from the PS/2 to Serial mouse project by Necroware
// Adapted and modified by Hambert - HamCode - 2024

#include "..\include\serial_mouse.h"
#include "..\include\esp32-ps2dev.h"
#include "../include/serial_mouse.h"
#include "../include/esp32-ps2dev.h"
#define NOP() asm volatile("nop")

static bool threeButtons = false;
Expand Down