2
2
3
3
A simple Arduino library for decoding Morse code.
4
4
It provides a lookup table and functions to translate Morse sequences (` . ` and ` - ` ) into letters and numbers.
5
- Reusable across projects for IoT, communication experiments, and custom input devices.
5
+ Reusable across projects for IoT, communication experiments, and custom input devices.
6
6
7
7
---
8
8
9
9
## Features
10
+
10
11
- Decode Morse sequences (e.g. ` ".-" → A ` ).
11
12
- Supports ** A–Z** and ** 0–9** .
12
13
- Lightweight: uses only a lookup table and string compare.
@@ -17,9 +18,11 @@ Reusable across projects for IoT, communication experiments, and custom input de
17
18
## Installation
18
19
19
20
### Method 1: Arduino IDE Library Manager
21
+
20
22
_ Not yet published to Library Manager – coming soon._
21
23
22
24
### Method 2: Manual Installation
25
+
23
26
1 . Download or clone this repo:
24
27
``` bash
25
28
git clone https://github.com/aryankajiwala/Morse.git
@@ -28,7 +31,7 @@ _Not yet published to Library Manager – coming soon._
28
31
```
29
32
Documents/Arduino/libraries/Morse/
30
33
```
31
- 3 . Restart Arduino IDE.
34
+ 3 . Restart Arduino IDE.
32
35
4 . Include the library in your sketch:
33
36
``` cpp
34
37
#include < Morse.h>
@@ -38,7 +41,8 @@ _Not yet published to Library Manager – coming soon._
38
41
39
42
## Usage
40
43
41
- ### Simple Test
44
+ ### Simple Test
45
+
42
46
``` cpp
43
47
#include < Morse.h>
44
48
@@ -55,27 +59,32 @@ void loop() {
55
59
```
56
60
57
61
** Output:**
62
+
58
63
```
59
64
Decoded: A
60
65
```
61
66
62
67
---
63
68
64
69
## API Reference
70
+
65
71
### ` char decodeMorse(const char* code) `
66
- - ** Input:** Morse sequence as ` const char* ` (e.g., ` ".-" ` ).
67
- - ** Output:** Corresponding ASCII character (` 'A' ` ) or ` '?' ` if unknown.
72
+
73
+ - ** Input:** Morse sequence as ` const char* ` (e.g., ` ".-" ` ).
74
+ - ** Output:** Corresponding ASCII character (` 'A' ` ) or ` '?' ` if unknown.
68
75
69
76
---
70
77
71
78
## Roadmap
72
- - [ ] Add ** encoder function** (` encodeMorse('A') → ".-" ` ).
73
- - [ ] Add support for ** punctuation** (` . , ? ! ` ).
74
- - [ ] Publish to Arduino Library Manager.
79
+
80
+ - [ ] Add ** encoder function** (` encodeMorse('A') → ".-" ` ).
81
+ - [ ] Add support for ** punctuation** (` . , ? ! ` ).
82
+ - [ ] Publish to Arduino Library Manager.
75
83
76
84
---
77
85
78
86
## Author
87
+
79
88
** Aryan Kajiwala**
80
89
81
90
🔗 [ GitHub] ( https://github.com/AryanKaji )
0 commit comments