Audio playback for Arduino, with compression.
This project is generally the hardware part of Thomas Grill's
Compressed audio output for Arduino,
with a few improvements. Many thanks for Thomas' thoughts of Huffman encoding and hardware PWM playback.
Copyright information can be found in the header of Yusaino.Board.ino
.
This repository contains the code running on Arduino. For sound data generation please see yusaino-audio.
This project is developed using Arduino IDE for Visual Studio. The vanilla Arduino IDE may work, but I didn't test it.
If you are also using AIVS, please open the solution, focus on project Yusaino.Board
, and choose
an Arduino board configuration from the Arduino Board Manager dropdown. After that, simply compile and
upload it to the Arduino.
The code and provided audio data is for Arduino Pro Mini, which uses ATmega 328 (32KiB flash memory). For those using ATmega 168, please replace the sound data with data from an audio file with fewer samples.
sounddata.h
and sounddata.ino
contained are generated by yusaino-audio with
following arguments:
node yusaino-audio/bin/cli -o sounddata eva_fate.wav
The usage of yusaino-audio can be found here.
The name comes from Kozue Yusa. But no I am not a lolicon, faithfully. I just happened to win a card of her. ☺
Another introduction from Moegirl wiki (originally in Chinese):
Kozue Yusa is a loli idol appearing in The Idolmaster Cinderella Girls.
She was introduced on July 17, 2013, when a new region Okinawa opened.
As a loli idol aged 11, her figure data is still below that of an average 9-year-old Japanese girl. She is one of the smallest characters in the whole game.
Her inner attributes are unexpectedly immature. She doesn't speak fluently, and she doesn't understand the meaning of words like "idol" and "interest" at the first appearance. She isn't even sure about her age. So she shows a strong dependency towards others: she needs help to change her clothes
, a bliss for lolicons; she doesn't feel wrong when changing clothes in front of the public, a bliss for lolicons; she takes sitting, leaning and sleeping on the producer for granted, a heaven for lolicons.On the contrary, she has a great talent in memorizing the scripts.
GPLv3