Using Keyboard Indicator LEDs to communicate in Morse Code with C

Your Keyboard as an Output Device?

Luke Zeisset Articles, Development Technologies & Tools, Programming, Tutorial Leave a Comment

Though we don’t really see as many of them as we used to, they are still with us. One helps indicate if a 10-key is in number or cursor mode. Another helps show when we use capital letters without holding the shift key. You might even have another to show if you accidentally hit the scroll lock key. I’m talking of course about keyboard state indicators.

Most people only think of a keyboard as an output device, but given that it has a changeable state, it most definitely can be used for output as well! Unfortunately, producing meaningful output using a keyboard state indicator (beyond their intended purpose) is rather tedious because they only have two states; the indicator light is either on or off. And to convolute things further, most keyboards these days don’t have many indicators in general. For example, the very keyboard I’m typing on only has a caps lock indicator! Thankfully, there is a well-established encoding that requires only one “bit” to be useful: Morse code!

In this article, I will show how I approached the development of a small utility to output Morse code on the caps lock LED. Even if it’s impractical, I wanted a challenge, and I had fun working through it. Though I’m certainly not an expert, I used the C programming language because I figured it would be the simplest approach.

I hope it is as clear to you, the reader, as it is to me, especially since I tried to make this as simple as possible. And don’t worry if you don’t have a caps lock indicator, either, as we will display the Morse code, too.

Service Highlight: Java Development

Keyhole Software Java, Keyhole, Spring, Videos Leave a Comment

Attention: This article was published over 2 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.From its humble beginnings to its current status as a cornerstone of enterprise applications, Java has profoundly shaped the world of software development. Not …

Gen AI in the Enterprise with Amir Elion

Keyhole Software Artificial Intelligence, Gen AI In The Enterprise, Podcasts Leave a Comment

Another great episode this time featuring the CEO of Think Big Leaders and innovation enthusiast, Amir Elion. Amir has worked with clients of all sizes, from all industries, on many different sides of business. His bread and butter is helping teams hone strategy, transform processes, and expand perspectives to find success in the ever-changing technological landscape.

Now, at Think Big Leaders, Amir is using his expertise to help companies successfully adopt and innovate with Generatvie AI. He works with clients on how to leverage AI for their specific user base and product portfolios. As a part of Think Big Leaders, he has also developed more general workshops and courses that can be applied to a wide range of different business types and situations.

Amir’s perspective on Gen AI is exciting, and his breadth of experience provides valuable insight. What are you doing to leverage AI in your processes today?

Services Highlight: JavaScript Development

Keyhole Software JavaScript, Keyhole, Videos Leave a Comment

Attention: This article was published over 2 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.JavaScript development has transformed dramatically since its inception, mirroring the rapid evolution of the digital world. Every few years, the tools and technologies integral …

Service Highlight: .NET Development

Keyhole Software .NET, Keyhole, Videos Leave a Comment

Attention: This article was published over 2 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.Choosing the right development platform can greatly enhance your operational efficiency and innovation. Among the many options available, .NET development stands out as a …