From b983d418e228af1f7093a64454a084c494e7604b Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Tue, 8 Aug 2023 01:38:54 +0200 Subject: [PATCH] Fixed Blinker.h include error and renamed Project base file to Passkey.ino --- Blinker.cpp | 2 +- Digispark_Passkey.ino => Passkey.ino | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) rename Digispark_Passkey.ino => Passkey.ino (84%) diff --git a/Blinker.cpp b/Blinker.cpp index 5f1da87..896b4aa 100644 --- a/Blinker.cpp +++ b/Blinker.cpp @@ -1,4 +1,4 @@ -#include +#include "Blinker.h" Blinker::Blinker(int pin) { _blinkPin = pin; diff --git a/Digispark_Passkey.ino b/Passkey.ino similarity index 84% rename from Digispark_Passkey.ino rename to Passkey.ino index 19fb490..841f18a 100644 --- a/Digispark_Passkey.ino +++ b/Passkey.ino @@ -2,13 +2,19 @@ // Copyright 2022 by Johannes Findeisen // Licensed under the terms of the MIT license. -// For using the Blinker library you have to install it from: +// Required to make Passkey a HID device. You need to install it. +// You can define your keyboard layout in: +// ~/.arduino15/packages/digistump/hardware/avr/1.7.5/libraries/DigisparkKeyboard/keylayouts.h +// By default US keyboard layout is used. +#include + +// Passkey includes the Blinker library from: // https://github.com/MajenkoLibraries/Blinker -// Since the code is included in Passkey you easily can just copy -// Blinker/src/Blinker.cpp and Blinker/src/Blinker.h to the root of -// Passkey. +// Since the code is included in Passkey you do not have +// to do anything to compile Passkey. +// Blinker is licensed under the BSD-3-Clause license. +// See Blinker.LICENSE for the full license of Blinker. #include "Blinker.h" -#include "DigiKeyboard.h" // The button pin #define BUTTON_PIN 0