My simple code for music making on the Smart Inventor Board.
-
Just thought Id share with you guys my simple and easy code for making music on the Smart Inventor!
I made this video to explain how it works:
Video (Watch me first before using!)#include <CoDrone.h> int Pitch = 0; int Length = 0; void setup() { } void loop() { if(analogRead(21) > 800) { Length = 0; } else { Length = analogRead(21)/100; } CoDrone.Buzz(analogRead(19)*3, Length); }
It's nothing special but I hope you enjoy
-
@loui2 This is sweet! Thanks for sharing!