@UKHeliBob My bad.
#include <BleKeyboard.h>
BleKeyboard bleKeyboard;
int touch_up;
int touch_down;
void setup() {
Serial.begin(115200);
bleKeyboard.begin();
}
void loop() {
touch_up = touchRead(27);
touch_down=touchRead(12);
if (touch_up < 25)
{
Serial.println(touchRead(27));
bleKeyboard.write(KEY_UP_ARROW);
delay(100);
bleKeyboard.releaseAll();
}
if (touch_down < 25)
{
Serial.println(touchRead(12));
bleKeyboard.write(KEY_DOWN_ARROW);
delay(100);
bleKeyboard.releaseAll();
}
delay(100);
}