Pushing binary functions from the Arduino Rx port.
so i'm trying use arduino push binary commands mp3trigger via serial, have simple stuff working can't seem volume changes need. think it's issue code, , fact can't seem volume data out unsigned single byte.
i've been discussing on makerjam forum here too:
http://makerjam.com/forum/mp3-trigger/volume-fade-on-mp3trigger/
this i'm @ code.
i've been discussing on makerjam forum here too:
http://makerjam.com/forum/mp3-trigger/volume-fade-on-mp3trigger/
this i'm @ code.
code: [select]
int duration = 10000;
int increment = duration/100;
int volume = 0;
void setup(){
serial.begin(38400);
serial.write('t');
serial.write(1);
}
void loop()
{
if (volume < 40) {
turndownvolume();
delay(increment);
}
}
void turndownvolume() {
volume += (40/40);
char vol[10];
itoa(volume, vol, 10);
serial.write('v');
serial.write(volume);
}
quote
i can't seem volume data out unsigned single byte
code: [select]
int volume = 0;maybe if unsigned byte begin with?
quote
can't seem volume changes need.
this doesn't tell changes do need, , how ones obtain differ ideal.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Pushing binary functions from the Arduino Rx port.
arduino
Comments
Post a Comment