• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PageTurner with ESP32 and bleKeyboard Library
#1
Hi,
I'm just trying to make a DIY Bluetooth Page turner with the ESP32 
The Program is working but if I try to connect it with the Pedal via Tasten Input,(settings/Touch and Pedal Settings/Pedal-Actions)
I can't see any Command Line, but only the highlighted Frame.
If I test it with apple books or other apps  the Command are working. Here is the short program line within the Arduino scetch.

#include <BleKeyboard.h>

BleKeyboard bleKeyboard("ESP32-K2", "Me", 100);
#define BUTTON_PIN 4

void setup() {
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  Serial.begin(115200);
  Serial.println("Starting BLE work!");
  bleKeyboard.begin();}

void loop() {
  static int debug = 0, counter = 0;
  char button = digitalRead(BUTTON_PIN) == LOW;

 
  if(bleKeyboard.isConnected() && button) {
    Serial.println("KEY Sending");
 
    bleKeyboard.write( KEY_PAGE_DOWN);
    delay(1000);
    bleKeyboard.releaseAll();

  }

Any tipps to get it running?
Regards john92648
Reply


Messages In This Thread
PageTurner with ESP32 and bleKeyboard Library - by john92648 - 11-22-2023, 02:50 AM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.