Skip to content

Commit d75d3c7

Browse files
committed
Fix: add newline at end of file
1 parent 485556d commit d75d3c7

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

libraries/morse/README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
A simple Arduino library for decoding Morse code.
44
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.
66

77
---
88

99
## Features
10+
1011
- Decode Morse sequences (e.g. `".-" → A`).
1112
- Supports **A–Z** and **0–9**.
1213
- Lightweight: uses only a lookup table and string compare.
@@ -17,9 +18,11 @@ Reusable across projects for IoT, communication experiments, and custom input de
1718
## Installation
1819

1920
### Method 1: Arduino IDE Library Manager
21+
2022
_Not yet published to Library Manager – coming soon._
2123

2224
### Method 2: Manual Installation
25+
2326
1. Download or clone this repo:
2427
```bash
2528
git clone https://github.com/aryankajiwala/Morse.git
@@ -28,7 +31,7 @@ _Not yet published to Library Manager – coming soon._
2831
```
2932
Documents/Arduino/libraries/Morse/
3033
```
31-
3. Restart Arduino IDE.
34+
3. Restart Arduino IDE.
3235
4. Include the library in your sketch:
3336
```cpp
3437
#include <Morse.h>
@@ -38,7 +41,8 @@ _Not yet published to Library Manager – coming soon._
3841

3942
## Usage
4043

41-
### Simple Test
44+
### Simple Test
45+
4246
```cpp
4347
#include <Morse.h>
4448

@@ -55,27 +59,32 @@ void loop() {
5559
```
5660

5761
**Output:**
62+
5863
```
5964
Decoded: A
6065
```
6166

6267
---
6368

6469
## API Reference
70+
6571
### `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.
6875

6976
---
7077

7178
## 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.
7583

7684
---
7785

7886
## Author
87+
7988
**Aryan Kajiwala**
8089
8190
🔗 [GitHub](https://github.com/AryanKaji)

libraries/morse/examples/ButtonMorse/ButtonMorse.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ void loop() {
3131
Serial.print(decoded);
3232
currentCode = "";
3333
}
34-
}
34+
}

0 commit comments

Comments
 (0)