ggoraa / MorsDuino

The lightweight Arduino Library for generating Morse code on LEDs, light strips, and speakers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MorsDuino

arduino-library-badge

The lightweight Arduino Library for generating Morse code on LEDs, light strips, and speakers. Every Arduino board is supported(library uses standart Wiring functions).

This repo was not updated for a long time, bugs expected. I will update the repo later, and also move to AVR functions instead of Arduino ones.

What it can do

Usage

#include "MorsDuino.h"

MorsDuino led(13); // Make new instance of MarsDuinoLed class with name 'led'

void setup() {
  Serial.begin(9600); // Start serial on 9600 baud rate
}

void loop() {
  while(!Serial.available()); // Wait until serial has some data
  char data = Serial.read(); // Read data
  led.displayChar(data); // Draw morse on 13 LED
}

About

The lightweight Arduino Library for generating Morse code on LEDs, light strips, and speakers

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%