Skip to content

A RTTTL (RingTone Text Transfer Language) player for floppy drive music

License

Notifications You must be signed in to change notification settings

technobly/rtttl-floppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtttl-floppy

A RTTTL (RingTone Text Transfer Language) player for floppy drive music

Youtube

Usage

// see library and examples for full wiring description

#include "rtttl-floppy.h"

char *song = (char *)"The Simpsons:d=4,o=2,b=168:c.3,e3,f#3,8a3,g.3,e3,c3,8a,8f#,8f#,8f#,2g,8p,8p,8f#,8f#,8f#,8g,a#.,8c3,8c3,8c3,c3";

RTTTL_Floppy floppy(D2, D3, song);

void setup() {
    floppy.start();
    floppy.play();
}

void loop() {
    floppy.cycle(); // this needs to be called regularly or the song will stall
    Particle.process();
}

See a complete example in the examples directory.

License

Copyright 2016 Brett Walach Released under the MIT license

About

A RTTTL (RingTone Text Transfer Language) player for floppy drive music

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages