Straight key buzzer on pin 7
This commit is contained in:
parent
8e77322461
commit
6787095a6c
12
README.md
12
README.md
|
@ -124,6 +124,18 @@ go into straight key mode.
|
|||
If you change from an iambic key to a straight key,
|
||||
you'll have to reset the adapter by unplugging it from the computer.
|
||||
|
||||
### Optional: buzzer
|
||||
|
||||
If you connect a buzzer or speaker to pin 7 on one leg,
|
||||
and ground on the other,
|
||||
the adapter will beep when you press the straight key.
|
||||
|
||||
This will help a lot if there is a noticeable delay between when you press the key
|
||||
and when your computer starts making a local beeping sound.
|
||||
|
||||
If you feel like no matter what you do,
|
||||
you're always getting DAH with your straight key,
|
||||
you should try this.
|
||||
|
||||
## Step 3: Load the code
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# define DIT_PIN 12
|
||||
# define DAH_PIN 11
|
||||
# define KEY_PIN 10
|
||||
# define PIEZO 8
|
||||
# define PIEZO 7
|
||||
# define LED_ON true
|
||||
#endif
|
||||
#define LED_OFF (!LED_ON)
|
||||
|
@ -97,6 +97,12 @@ void midiProbe() {
|
|||
keyboard = (event.byte3 > 0x3f);
|
||||
break;
|
||||
case 0x8B01: // Controller 1: set iambic speed (0-254)
|
||||
// I am probably never going to use this,
|
||||
// because as soon as I implement it,
|
||||
// people are going to want a way to select mode A or B,
|
||||
// or typeahead,
|
||||
// or some other thing that I don't want to maintain
|
||||
// simultaneously in both C and JavaScript
|
||||
iambicDelay = event.byte3 << 1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue