Skip to content

Commit 4f58208

Browse files
update
1 parent 79e7bb4 commit 4f58208

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

firmware/CMakeLists.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ set(CMAKE_CXX_STANDARD 17)
77

88
# initalize pico_sdk from installed location
99
# (note this can come from environment, CMake cache etc)
10-
# set(PICO_SDK_PATH "C:/Pico/pico-sdk")
10+
set(PICO_SDK_PATH "C:/Pico/pico-sdk-1.5.1")
11+
12+
# For TinyUSB
13+
set(FAMILY rp2040)
1114

1215
# Pull in Raspberry Pi Pico SDK (must be before project)
1316
include(pico_sdk_import.cmake)
1417

15-
#if(NOT CMAKE_BUILD_TYPE)
16-
# set(CMAKE_BUILD_TYPE Release)
17-
#endif()
18+
set(CMAKE_BUILD_TYPE Debug)
19+
20+
if(NOT CMAKE_BUILD_TYPE)
21+
set(CMAKE_BUILD_TYPE Release)
22+
endif()
1823

1924
#set( CMAKE_CXX_FLAGS "-Wall -Wextra")
2025
#set( CMAKE_C_FLAGS "-Wall -Wextra")
@@ -48,7 +53,7 @@ link_directories(include/)
4853

4954
pico_set_program_name(${TARGET} "usb-2-232")
5055
pico_set_program_description(${TARGET} "Pico usb to serial mouse adaptor.")
51-
pico_set_program_version(${TARGET} "0.1")
56+
pico_set_program_version(${TARGET} "0.5")
5257

5358
pico_enable_stdio_usb(usb-2-232 0)
5459
pico_enable_stdio_uart(usb-2-232 1)

firmware/include/serial.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ void refresh_serial_uart()
6767
// Mouse ID Strings
6868

6969
// Basic MS Mouse
70-
uint8_t ID_Microsoft[4] = {1, 0x4D, 0, 0};
70+
uint8_t ID_Microsoft[4] = { 0x01, 0x4D, 0x00, 0x00 };
7171

7272
// Logitech mouse 'M3' + PNP
7373
uint8_t ID_Logitech[2][8] = {
74-
{13, 0x4D, 0x33, 0x08, 0x01, 0x24, 0x2C, 0x27},
75-
{0x29, 0x18, 0x10, 0x10, 0x11, 0x09, 0x00, 0x00} };
74+
{ 0x0D, 0x4D, 0x33, 0x08, 0x01, 0x24, 0x2C, 0x27 },
75+
{ 0x29, 0x18, 0x10, 0x10, 0x11, 0x09, 0x00, 0x00 } };
7676

7777
// MS Wheel mouse 'MZ@' + PNP
7878
uint8_t ID_Wheelmouse[11][8] = {
79-
{ 82, 0x4D, 0x5A, 0x40, 0x00, 0x00, 0x00, 0x08 },
79+
{ 0x52, 0x4D, 0x5A, 0x40, 0x00, 0x00, 0x00, 0x08 },
8080
{ 0x01, 0x24, 0x2D, 0x33, 0x28, 0x10, 0x10, 0x10 },
8181
{ 0x11, 0x3C, 0x10, 0x10, 0x10, 0x14, 0x10, 0x12 },
8282
{ 0x10, 0x10, 0x3C, 0x2D, 0x2F, 0x35, 0x33, 0x25 },

0 commit comments

Comments
 (0)