Skip to content
Budi Prakosa edited this page Jul 21, 2017 · 7 revisions

Code Snippets

See our growing collection of dedicated code to be used with the 8Bit Mixtape NEO.

and many more examples on Chris AttinySound repo: https://github.com/ChrisMicro/AttinySound

notes: ascii made here

Useful Mixtape code-snippets

Reading the buttons

we need to improve the check button fumction. so we don't ready the button1 after release of button2. maybe also pre-make better release / push function

Reading the Potentiometers

Cos we don't go all the way up to Vcc, it's good to scale your ADC readout and make sure you don't get over the 10bit value of 1023. To be able that we always get the lower and upper limits better to increase the multiplyer a bit.

maybe we should only ready 8but values anyway... 10bit is sooo the future!

Geeking with the LEDs

Seems that Adafruit libary works great.

Making Sound

See other pages on Libraries

Clone this wiki locally