I have a code to play some sound from arduino. The song was encoded from numerical values. but how do I get him to play louder with arduino?
#include <PCM.h> int switchPin = 8; const unsigned char sample[] PROGMEM = { 140, 124, 130, 126, 129, 126, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 127, 128, 128, 128, 128, }; void setup() { pinMode(switchPin, INPUT); } void loop() { if(digitalRead(switchPin) == HIGH) { startPlayback(sample, sizeof(sample)); } }