Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

technobly / rtttl Public

A RTTTL (RingTone Text Transfer Language) song player for Particle devices

License

Notifications You must be signed in to change notification settings

technobly/rtttl

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Go to file

Folders and files

Last commit message Last commit date

Latest commit

History

View all files

Repository files navigation

RTTTL Library for Particle devices

To play the output on a small speaker (i.e. 8 Ohms or higher), simply connect a 220 - 1k ohm resistor from the output pin (D0) to the speaker, and connect the other side of the speaker to ground. Or use a Particle Internet Button which has an on-board tiny speaker already connected to D0.

You can get more RTTTL songs from: http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation or just search google for "your song RTTTL" or "your song RTTL".

Compile and flash to a Particle Internet Button with a Photon

Simple start/pause/stop player

particle compile photon examples/demo1/demo1.cpp src/RTTTL.cpp src/RTTTL.h --target 3.3.1 --saveTo play.bin; particle usb dfu; particle flash --usb play.bin 

Full featured player takes new song requests via Particle function or publish, plays several songs in a loop on boot

particle compile photon examples/demo2/demo2.cpp src/RTTTL.cpp src/RTTTL.h --target 3.3.1 --saveTo play.bin; particle usb dfu; particle flash --usb play.bin 

Full featured player takes new song requests via Particle function or publish, does not play anything on boot

particle compile photon examples/demo3/demo3.cpp src/RTTTL.cpp src/RTTTL.h --target 3.3.1 --saveTo play.bin; particle usb dfu; particle flash --usb play.bin 

About

A RTTTL (RingTone Text Transfer Language) song player for Particle devices