Skip to content

Commit

Permalink
cleanup examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Sep 14, 2023
1 parent 7d591ea commit 434e30e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 401 deletions.
6 changes: 5 additions & 1 deletion examples/ESP32-S3-USB_Test/ESP32-S3-USB_Test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#define DM_P0 16 // USB Host Data- Pin (must be an analog pin)
#define FORCE_TEMPLATED_NOPS
#include <ESP32-USB-Soft-Host.h>
#include "usbkbd.h"

// Device Part (handles HID device emulation)
#include "USB.h"
Expand Down Expand Up @@ -80,6 +79,11 @@ void setup()
// USH.setTaskCore( 0 );
// USH.setBlinkPin( (gpio_num_t) 2 );
// USH.setTaskPriority( 16 );
USH.setOnConfigDescCB( Default_USB_ConfigDescCB );
USH.setOnIfaceDescCb( Default_USB_IfaceDescCb );
USH.setOnHIDDevDescCb( Default_USB_HIDDevDescCb );
USH.setOnEPDescCb( Default_USB_EPDescCb );

USH.init( USB_Pins_Config, onKeyboarDetect, onKeyboardData );
}

Expand Down
199 changes: 0 additions & 199 deletions examples/ESP32-S3-USB_Test/usbkbd.h

This file was deleted.

8 changes: 6 additions & 2 deletions examples/USB_Test/USB_Test.ino
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#define DEBUG_ALL
#define FORCE_TEMPLATED_NOPS
#include <ESP32-USB-Soft-Host.h>
#include "usbkbd.h" // KeyboardReportParser

#if defined ARDUINO_LOLIN_S3
#if defined ARDUINO_LOLIN_S3 || defined ARDUINO_LOLIN_S3_PRO

#define PROFILE_NAME "LoLin S3"
#define DP_P0 15 // always enabled
Expand Down Expand Up @@ -149,6 +148,11 @@ void setup()
// USH.setTaskCore( 0 );
// USH.setBlinkPin( (gpio_num_t) 2 );
// USH.setTaskPriority( 16 );
USH.setOnConfigDescCB( Default_USB_ConfigDescCB );
USH.setOnIfaceDescCb( Default_USB_IfaceDescCb );
USH.setOnHIDDevDescCb( Default_USB_HIDDevDescCb );
USH.setOnEPDescCb( Default_USB_EPDescCb );

USH.init( USB_Pins_Config, my_USB_DetectCB, my_USB_PrintCB );
}

Expand Down
Loading

0 comments on commit 434e30e

Please sign in to comment.