Example #1
0
static void sound(uint8_t b){
	b = (b & 15);

#ifdef _LOG_
	loggerSnd((char)(b+'0'));
#endif

#if !defined(_WINDOWS_)
	// Update PWM volume
	_speech_set_volume(b);
#endif

}
Example #2
0
static void sound(uint8_t b){
	b = (b & 15);

#ifdef _LOG_
	loggerSnd((char)(b+'0'));
#endif

#if !defined(_WINDOWS_)
	// Update PWM volume
	if(channel){
		compareSetThreshold(channel,Volume[b]);
	}
#endif

}