fine tuning Firmware in version V0.6, testing and declaring Version 1.0 of firmware
This commit is contained in:
1 parent
80e42f1952
commit
128f5ce40a
2 files changed
+177
-49
No files matched your search
@@ -1,93 +1,199 @@
|
|||||||
# FireFly Solar / 日輪蛍
|
# FireFly Solar / 日輪蛍
|
||||||
|
|
||||||
**Nichirin Hotaru**
|
**Nichirin Hotaru**
|
||||||
|
|
||||||
*A small solar-powered Morse firefly for the outdoors.*
|
*A small solar-powered Morse firefly for the outdoors.*
|
||||||
|
|
||||||
**太陽を宿し、夜にモールスを灯す蛍。**
|
**太陽を宿し、夜にモールスを灯す蛍。**
|
||||||
|
|
||||||
*Taiyō o yadoshi, yoru ni Mōrusu o tomosu hotaru.*
|
*Taiyō o yadoshi, yoru ni Mōrusu o tomosu hotaru.*
|
||||||
*A firefly carrying the sun, lighting Morse in the night.*
|
|
||||||
|
*A firefly carrying the sun, lighting up the night in Morse code.*
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
FireFly Solar is a small outdoor LED blinker inspired by the idea of an LED throwie, but powered by sunlight instead of a disposable coin cell.
|
FireFly Solar is a small outdoor LED blinker inspired by the concept of an LED throwie, but powered by sunlight instead of a disposable coin cell.
|
||||||
|
During the day, the solar cell charges a supercapacitor. At night, the circuit wakes up and transmits a short Morse code message.
|
||||||
|
|
||||||
During the day, the solar cell charges the energy storage.
|
## About This Project
|
||||||
At night, the circuit wakes up and sends a simple Morse-style light signal.
|
|
||||||
|
|
||||||
## About this Project
|
FireFly Solar is my **technology playground**. It is a small garden object, but its real purpose is to learn by designing and building a complete, functional system.
|
||||||
|
|
||||||
FireFly Solar is my **technology playground**. It is a small garden object, but its real purpose is to learn by building something complete. With it I learn about:
|
The project allows me to explore:
|
||||||
|
|
||||||
- **Circuit design at the edge**: in this case, as low power as possible
|
- **Circuit design at the edge:** in this case, pushing power consumption as low as possible.
|
||||||
- **PCB design**
|
- **PCB design**
|
||||||
- **Weatherproof casing**
|
- **Weatherproof enclosure design**
|
||||||
- **ATtiny programming**
|
- **ATtiny programming**
|
||||||
|
|
||||||
Possible next technology step: everything about DIY SMD design and soldering.
|
Outlook:
|
||||||
|
- Creating a DIY Kit.
|
||||||
|
- A possible Version II is to explore DIY SMD assembly, including PCB design for surface-mount components and soldering techniques.
|
||||||
|
|
||||||
## Project Goals
|
## Project Goals
|
||||||
|
|
||||||
- Build a solar-powered outdoor Morse blinker
|
- Build a solar-powered outdoor Morse blinker.
|
||||||
- Keep the hardware simple and robust
|
- Keep the hardware simple and robust.
|
||||||
- Improve practical low-power design skills
|
- Improve practical ultra-low-power design skills.
|
||||||
- Test mechanical concepts for outdoor 3D-printed parts
|
- Test mechanical concepts for outdoor 3D-printed enclosures.
|
||||||
- Learn what is needed to turn a small electronics project into a possible DIY kit
|
- Explore what is needed to turn a small electronics project into a potential DIY kit.
|
||||||
|
|
||||||
|
## DIY Kit Readiness
|
||||||
|
|
||||||
|
- [x] PCB
|
||||||
|
- [x] Firmware
|
||||||
|
- [ ] Weatherproof enclosure
|
||||||
|
- [ ] Assembly manual
|
||||||
|
|
||||||
## Software
|
## Software
|
||||||
|
|
||||||
The firmware runs on an **ATtiny85** at 1 MHz (internal clock, ATTinyCore: `clock=1internal`, `millis=disabled`). The LED itself is used as the light sensor. When it is dark, the firefly sends a short Morse text ("TGO 26") about once a minute.
|
The firmware runs on an **ATtiny85** at 1 MHz using the internal oscillator (ATTinyCore: `clock=1internal`, `millis=disabled`). The LED itself is used as a light sensor. When darkness is detected, the firefly transmits a short Morse code message ("TGO 26") approximately once per minute.
|
||||||
|
|
||||||
### Current Firmware version: v0.4 (2026-11-08)
|
### Current Firmware Version: v1.0 (2026-11-14)
|
||||||
|
|
||||||
Goal: lowest possible average current.
|
**Stable release**
|
||||||
|
|
||||||
Changes vs v0.3:
|
Design objectives: minimum average current consumption and long-term unattended operation.
|
||||||
|
|
||||||
- No `delay()` / `millis()`; Timer0 and Timer1 are gated off in PRR.
|
Version 1.0 is based on the v0.6 firmware, which has been declared stable following successful bench and outdoor tests.
|
||||||
- The watchdog (interrupt mode) is the only timebase: Morse units (~96 ms), the sensing window and the 8 s sleeps. The CPU sleeps in power-down in between.
|
|
||||||
- Darkness sensing: the CPU sleeps in 16 ms steps while the LED junction discharges, instead of a busy `digitalRead()` loop. Bright light exits after the first step. `darknessThreshold` is replaced by `darkSteps`.
|
|
||||||
- The ADC is disabled before it is gated off in PRR; pins are set up before PRR.
|
|
||||||
- After a power-on or external reset, no blinking for `RECOVER_CYCLES` (about 16 min), so the supercap can recharge.
|
|
||||||
- `DEBUG_TEST` switch for bench testing: 8 s cycle, no recovery wait, short flash when the sketch decides "bright". Set it to 0 for the field.
|
|
||||||
- Optional `BOD_FUSE_ENABLED` (BOD off during sleep); unused with the BOD fuse off.
|
|
||||||
|
|
||||||
Tested: compiles with ATTinyCore and runs on hardware. Current draw is not yet measured.
|
Validation includes:
|
||||||
|
|
||||||
|
- Verification of the startup marker.
|
||||||
|
- Deliberate firmware hang tests to verify watchdog-based recovery.
|
||||||
|
- A discharge test on a single charge, down to a supercapacitor voltage below 0.6 V at the input of the DC/DC converter.
|
||||||
|
|
||||||
|
**Open validation item:** operation during warm and hot summer nights at ambient temperatures of 25–40 °C has not yet been confirmed.
|
||||||
|
|
||||||
|
### Firmware Development History
|
||||||
|
|
||||||
|
#### Version 0.6 — Long-Term Reliability
|
||||||
|
|
||||||
|
**Design objective:** stable, unattended operation over extended periods.
|
||||||
|
|
||||||
|
- The watchdog now operates in combined interrupt and reset mode (`WDIE = 1`, `WDE = 1`).
|
||||||
|
- The first watchdog timeout wakes the CPU via an interrupt. If the firmware fails to re-arm the watchdog before the subsequent timeout, the microcontroller resets instead of remaining permanently stuck.
|
||||||
|
- During normal operation, the CPU is active only briefly between sleep periods. Each call to `sleepWdt()` re-arms the watchdog, preventing unintended resets.
|
||||||
|
- Following a watchdog reset, the standard recovery delay applies.
|
||||||
|
|
||||||
|
#### Version 0.5 — Ultra-Low-Power Operation
|
||||||
|
|
||||||
|
**Design objective:** minimize average current consumption.
|
||||||
|
|
||||||
|
Key changes:
|
||||||
|
|
||||||
|
- No `delay()` or `millis()`: Timer0 and Timer1 are no longer required and are disabled via the Power Reduction Register (PRR).
|
||||||
|
- All timing — Morse code units, light-sensing intervals and 8-second sleep periods — is controlled by the watchdog while the CPU is in power-down mode. The CPU is active for only a few microseconds per wake-up. LED output pins retain their state during power-down.
|
||||||
|
- Light sensing using the LED no longer relies on a busy `digitalRead()` polling loop, which previously kept the CPU awake for approximately 0.3–1 second per cycle. Instead, the LED junction is charged, and the CPU sleeps in 16 ms intervals while monitoring its discharge. Under bright conditions, the sensing routine exits after the first interval.
|
||||||
|
- The ADC is disabled before its clock is gated off via PRR. The order of these operations is important.
|
||||||
|
- Following a power-on, external, brown-out or watchdog reset, the firmware waits for `RECOVER_CYCLES` before resuming normal operation, allowing the supercapacitor to recharge. The default nominal recovery time is approximately 13 min 20 s. Debug mode bypasses this recovery period.
|
||||||
|
- Early startup code in `.init3` saves `MCUSR` and disables the watchdog, preventing a watchdog reset loop before `setup()` can execute.
|
||||||
|
- Optional brown-out detection (BOD) disable during sleep is supported when the BOD fuse is enabled.
|
||||||
|
|
||||||
|
**Brown-out detection:**
|
||||||
|
|
||||||
|
- Testing showed that enabling the 1.8 V BOD fuse reduces the useful operating time. With BOD disabled, the microcontroller continued operating at a supply voltage of approximately 1 V, providing around 20 additional minutes of blinking time under the tested conditions. The BOD fuse therefore remains disabled in the standard configuration.
|
||||||
|
|
||||||
|
**Field test:**
|
||||||
|
|
||||||
|
- Following a sunny winter day, the firefly operated outdoors for well over 12 hours at ambient temperatures between −1 and +8 °C, transmitting a payload of 10 characters.
|
||||||
|
- Bench tests indicate that operating times exceeding 14 hours are achievable.
|
||||||
|
|
||||||
|
**Timing considerations:**
|
||||||
|
|
||||||
|
- The watchdog oscillator is not a precision timebase. Its frequency varies with supply voltage and temperature.
|
||||||
|
- All Morse code timing is derived from the same oscillator, so the relative timing of dits, dahs and gaps remains consistent, although the absolute transmission speed may vary.
|
||||||
|
- The hardware supports both 3.3 V and 5 V operation, with 3.3 V being the standard configuration. Exact timing should therefore not be expected.
|
||||||
|
|
||||||
|
#### Earlier Development — Changes Introduced After v0.3
|
||||||
|
|
||||||
|
The transition from v0.3 established the foundation for the current ultra-low-power firmware:
|
||||||
|
|
||||||
|
- Replacement of conventional timer-based timing with watchdog-controlled power-down sleep.
|
||||||
|
- Nominal Morse code time unit of approximately 96 ms.
|
||||||
|
- Replacement of `darknessThreshold` with `darkSteps` for LED-based light sensing.
|
||||||
|
- Correct ADC shutdown and peripheral clock gating.
|
||||||
|
- Introduction of a startup recovery period to allow the supercapacitor to recharge.
|
||||||
|
- Introduction of the `DEBUG_TEST` option for bench testing: an 8-second operating cycle, no recovery delay and a short flash when bright conditions are detected.
|
||||||
|
- Introduction of the optional `BOD_FUSE_ENABLED` configuration for disabling BOD during sleep.
|
||||||
|
|
||||||
|
For outdoor operation, `DEBUG_TEST` must be set to `0`.
|
||||||
|
|
||||||
|
The firmware has been successfully compiled using ATTinyCore and validated on hardware in both bench and outdoor tests.
|
||||||
|
|
||||||
## PCB
|
## PCB
|
||||||
|
|
||||||
- Finished: a batch of 10 is assembled, tested and working.
|
**Status:** Completed and tested.
|
||||||
- Latest adjustment: fine-tuned the resistors for the LED, and the 3.9 V Zener diode is confirmed safe avoid overcharging 4V supercap.
|
|
||||||
- Next version: the PCB should be a little shorter. The wiring space is a bit too tight now.
|
|
||||||
|
|
||||||
## Casing
|
A batch of 10 PCBs has been assembled, tested and is fully functional.
|
||||||
|
|
||||||
Works basically as intended. Lessons for the next version:
|
Latest adjustments:
|
||||||
|
|
||||||
- Better locking of the solar modules.
|
- Fine-tuned the LED resistors.
|
||||||
- The rope structure works, but building it is too complicated and takes a lot of nerves.
|
- Verified the operation of the 3.9 V Zener diode used to protect the 4 V supercapacitor against overcharging under the tested conditions.
|
||||||
- Using material tension to secure the modules via rope was basically a good idea.
|
|
||||||
|
|
||||||
## Naming
|
Planned improvements for the next revision:
|
||||||
|
|
||||||
|
- Reduce the PCB length slightly to provide more space for wiring inside the enclosure.
|
||||||
|
|
||||||
|
## Enclosure
|
||||||
|
|
||||||
|
**Status:** Under Development.
|
||||||
|
|
||||||
|
The current enclosure works as intended, but several mechanical improvements have been identified during assembly and outdoor operation.
|
||||||
|
|
||||||
|
Lessons learned for the next revision:
|
||||||
|
|
||||||
|
- Improve the locking mechanism for the solar modules.
|
||||||
|
- Simplify the rope-based assembly. The current design works, but assembly is unnecessarily complex and time-consuming.
|
||||||
|
- Retain the concept of using mechanical tension to secure the solar modules with rope. This approach has proven effective.
|
||||||
|
- Add a counterweight to stabilize the enclosure.
|
||||||
|
|
||||||
|
The counterweight is a priority. The current enclosure tends to sway and rotate in moderate winds and gusts. The solar panels present a relatively large surface area compared with the overall weight of the assembly.
|
||||||
|
|
||||||
|
A possible solution is to suspend a counterweight below the enclosure using a rope.
|
||||||
|
|
||||||
|
## DIY Manual
|
||||||
|
|
||||||
|
Not yet started.
|
||||||
|
|
||||||
|
## Project Naming
|
||||||
|
|
||||||
The English project name remains:
|
The English project name remains:
|
||||||
|
|
||||||
**FireFly Solar**
|
**FireFly Solar**
|
||||||
|
|
||||||
For blog posts, documentation, and presentation, the project also uses the Japanese name:
|
For blog posts, documentation and presentations, the project also uses the Japanese name:
|
||||||
|
|
||||||
**日輪蛍 / Nichirin Hotaru**
|
**日輪蛍 / Nichirin Hotaru**
|
||||||
|
|
||||||
The name roughly means **sun-disc firefly**. It keeps the solar theme, adds a slightly mythic tone, and still fits a small piece of outdoor hardware.
|
The name roughly translates to **sun-disc firefly**. It preserves the solar theme, adds a slightly mythical character and still fits a small piece of outdoor hardware.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
PRs and issues welcome. Keep it simple.
|
Pull requests and issues are welcome. Keep it simple.
|
||||||
Photos of your build you send me go in `Documentation/gallery/` with a short caption and license notice.
|
|
||||||
|
If you build your own FireFly Solar, feel free to share photos of your build. Contributions to the gallery belong in `Documentation/gallery/` and should include a short caption and a license notice.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Default license: [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/)
|
Default license: [Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -8,13 +8,26 @@
|
|||||||
=============================================================================
|
=============================================================================
|
||||||
Project definitions, sources
|
Project definitions, sources
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Version : 0.5 - ATTiny85, 1 MHz, BOD fuse disabled
|
Version : 1.0 - ATTiny85, 1 MHz, BOD fuse disabled
|
||||||
used Flash: 1284 bytes
|
used Flash: 1226 bytes
|
||||||
|
|
||||||
gitea : https://gitea.togo-lab.io/tgohle/0001-FireFly
|
gitea : https://gitea.togo-lab.io/tgohle/0001-FireFly
|
||||||
Date : 2026-11-10
|
Date : 2026-11-14
|
||||||
|
|
||||||
|
|
||||||
|
Version 1.0 = the Version 0.6 code, declared stable after bench tests (boot
|
||||||
|
marker, deliberate hang test with watchdog recovery) and a run-down test on one
|
||||||
|
charge down to a supercap voltage below 0.6 V ahead of the DC/DC converter.
|
||||||
|
Not yet confirmed: behaviour on warm/hot (25-40 C) summer nights, see darkSteps.
|
||||||
|
|
||||||
|
Key changes Version 0.6 (goal: stable, unattended running for years):
|
||||||
|
|
||||||
|
- Watchdog now runs in interrupt AND reset mode (WDE = 1). If the main code
|
||||||
|
does not reach the next sleepWdt() within one watchdog timeout, the chip
|
||||||
|
resets instead of hanging forever. Every awake stretch is only microseconds
|
||||||
|
long and every sleepWdt() call re-arms the watchdog, so this never triggers
|
||||||
|
in normal operation. After such a reset the normal recovery wait applies.
|
||||||
|
|
||||||
Key changes Version 0.5 (goal: lowest possible average current):
|
Key changes Version 0.5 (goal: lowest possible average current):
|
||||||
|
|
||||||
- No delay(), no millis(): Timer0 and Timer1 are not needed any more and
|
- No delay(), no millis(): Timer0 and Timer1 are not needed any more and
|
||||||
@@ -32,15 +45,16 @@ Key changes Version 0.5 (goal: lowest possible average current):
|
|||||||
- Startup code saves MCUSR and disables the watchdog early (.init3), avoiding
|
- Startup code saves MCUSR and disables the watchdog early (.init3), avoiding
|
||||||
a watchdog-reset loop before setup() can execute.
|
a watchdog-reset loop before setup() can execute.
|
||||||
- Optional: BOD disable during sleep (only useful if BOD fuse is enabled).
|
- Optional: BOD disable during sleep (only useful if BOD fuse is enabled).
|
||||||
But found out that also BOD Fuse for 1.8V shorten unnecessary blinking time,
|
But found out that the BOD fuse for 1.8V shortens the useful blinking time:
|
||||||
will still work ~1V, meaning ~20 min longer blinking time.
|
without BOD the chip still works down to ~1V, meaning ~20 min longer
|
||||||
|
blinking time. So the BOD fuse stays disabled.
|
||||||
- Field Test: After a sunny day in Winter, outdoor -1 ... 8°C, with a payload
|
- Field Test: After a sunny day in Winter, outdoor -1 ... 8°C, with a payload
|
||||||
of 10 signs) it blinks for >> 12h.
|
of 10 signs) it blinks for >> 12h.
|
||||||
|
|
||||||
Timing note: the watchdog oscillator is not precise (changes with Vcc and
|
Timing note: the watchdog oscillator is not precise (changes with Vcc and
|
||||||
temperature). All Morse timing comes from the same clock, so dit/dah/gap
|
temperature). All Morse timing comes from the same clock, so dit/dah/gap
|
||||||
ratios stay correct; only the absolute speed drifts a little.
|
ratios stay correct; only the absolute speed drifts a little.
|
||||||
The HW actual allowes 5V and 3.3V, standard is 3.3V. So don't expec exact timing.
|
The HW actually allows 5V and 3.3V, standard is 3.3V. So don't expect exact timing.
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -130,6 +144,9 @@ const uint8_t sleepCycles = 5;
|
|||||||
// The window costs almost no energy (CPU sleeps), so it is only a threshold.
|
// The window costs almost no energy (CPU sleeps), so it is only a threshold.
|
||||||
// Calibrate at real dusk. Old threshold 17000 loops: measure the old
|
// Calibrate at real dusk. Old threshold 17000 loops: measure the old
|
||||||
// sensDarkness() time with micros() at your dusk level and divide it by 16 ms.
|
// sensDarkness() time with micros() at your dusk level and divide it by 16 ms.
|
||||||
|
// LED leakage rises with temperature: the discharge time in real darkness
|
||||||
|
// gets shorter when warm. If it blinks in winter but not on warm summer
|
||||||
|
// nights, lower this value.
|
||||||
const uint8_t darkSteps = 40; // ~640 ms
|
const uint8_t darkSteps = 40; // ~640 ms
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
@@ -290,6 +307,11 @@ ISR(WDT_vect)
|
|||||||
// Sleep in POWER-DOWN until the watchdog interrupt fires after timeout code ii
|
// Sleep in POWER-DOWN until the watchdog interrupt fires after timeout code ii
|
||||||
// (0=16 ms ... 9=8 s). Reconfigures the watchdog on every call, so the full
|
// (0=16 ms ... 9=8 s). Reconfigures the watchdog on every call, so the full
|
||||||
// interval always starts fresh.
|
// interval always starts fresh.
|
||||||
|
//
|
||||||
|
// The watchdog runs in interrupt AND reset mode (WDE = 1, WDIE = 1):
|
||||||
|
// the first timeout raises the interrupt (and hardware clears WDIE), a second
|
||||||
|
// timeout without a new sleepWdt() call resets the chip. So a hang anywhere
|
||||||
|
// in the main code ends in a reset instead of a dead firefly.
|
||||||
static void sleepWdt(uint8_t ii)
|
static void sleepWdt(uint8_t ii)
|
||||||
{
|
{
|
||||||
if (ii > 9) ii = 9;
|
if (ii > 9) ii = 9;
|
||||||
@@ -297,8 +319,8 @@ static void sleepWdt(uint8_t ii)
|
|||||||
uint8_t bb = ii & 7;
|
uint8_t bb = ii & 7;
|
||||||
if (ii > 7) bb |= (1 << WDP3);
|
if (ii > 7) bb |= (1 << WDP3);
|
||||||
|
|
||||||
// Interrupt-only mode (WDE = 0). WDIF written as 1 clears a stale flag.
|
// Interrupt + system reset mode. WDIF written as 1 clears a stale flag.
|
||||||
const uint8_t cfg = bb | (1 << WDIE) | (1 << WDIF);
|
const uint8_t cfg = bb | (1 << WDIE) | (1 << WDE) | (1 << WDIF);
|
||||||
|
|
||||||
f_wdt = false;
|
f_wdt = false;
|
||||||
cli();
|
cli();
|
||||||
@@ -483,7 +505,7 @@ void morse(int LED_N, int LED_P)
|
|||||||
case '&': dit(LED_P); dah(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); symbolSent = true; break; // .-...
|
case '&': dit(LED_P); dah(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); symbolSent = true; break; // .-...
|
||||||
case '-': dah(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); dah(LED_P); symbolSent = true; break; // -....-
|
case '-': dah(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); dah(LED_P); symbolSent = true; break; // -....-
|
||||||
case '/': dah(LED_P); dit(LED_P); dit(LED_P); dah(LED_P); dit(LED_P); symbolSent = true; break; // -..-.
|
case '/': dah(LED_P); dit(LED_P); dit(LED_P); dah(LED_P); dit(LED_P); symbolSent = true; break; // -..-.
|
||||||
case '\'': dit(LED_P); dah(LED_P); dah(LED_P);dah(LED_P); dah(LED_P); dit(LED_P); symbolSent = true; break; // .----.
|
case '\'': dit(LED_P); dah(LED_P); dah(LED_P); dah(LED_P); dah(LED_P); dit(LED_P); symbolSent = true; break; // .----.
|
||||||
case '+': dit(LED_P); dah(LED_P); dit(LED_P); dah(LED_P); dit(LED_P); symbolSent = true; break; // .-.-.
|
case '+': dit(LED_P); dah(LED_P); dit(LED_P); dah(LED_P); dit(LED_P); symbolSent = true; break; // .-.-.
|
||||||
case '=': dah(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); dah(LED_P); symbolSent = true; break; // -...-
|
case '=': dah(LED_P); dit(LED_P); dit(LED_P); dit(LED_P); dah(LED_P); symbolSent = true; break; // -...-
|
||||||
case '_': dit(LED_P); dit(LED_P); dah(LED_P); dah(LED_P); dit(LED_P); dah(LED_P); symbolSent = true; break; // ..--.-
|
case '_': dit(LED_P); dit(LED_P); dah(LED_P); dah(LED_P); dit(LED_P); dah(LED_P); symbolSent = true; break; // ..--.-
|
||||||
|
|||||||
Reference in new issue
Block a user