A new switch DBEM ON / OFF, for piping to the Arduino serial console, has been added. The switch is designed to set the STANDARD mode debounce timimgs to those use in EMULATOR mode. This is particularly useful if the emulator frequently requires the keyboard to be switched to STANDARD mode. I found that in particular ZEsarUX requires STANDARD mode to be set quite often to load files or change options etc.
The below example sets the keyboard to EMULATOR mode, sounds the BELL and turns DBEM ON.
echo emulator bell dbem on> /dev/ttyACM0
Setting DBEM ON will also negate the use of the BEEP ON option. For more extra information on switches see the earlier blog entry AZ15 and A Tale of Two Features.
Command Line, Mode and Options Selection
|BELL||Sound the LeoStick Piezo. Could be used to forward audio system notifications etc.|
|BEEP OFF||Turn off Keyboard Sounds. Sounds are off by default.|
|BEEP ON||Turn on Keyboard Sounds. Similar to the keyboard clicks made by ZX Spectrum when typing. The keyboard only emits clicks in Standard mode. In Emulation mode sound is always off.|
|DBEM OFF||Use normal STANDARD mode debounce timings. This is the default option.|
|DBEM ON||Use EMULATOR keyboard debounce timings in STANDARD mode. Good to set if switching to STANDARD mode frequently while using an Emulator. Switch was added with ZEsarUX in mind in particular. Default if off.|
|DEVICE||Returns message "ZX81_KEYS" to the console. Useful if unsure you have the correct serial port. You must be monitoring incoming streams to get the return message. eg cat /dev/ttyACM0|
|EMULATOR||Switch the keyboard into emulator mode.|
|STANDARD||Switch the keyboard into standard mode.|