예제 #1
0
파일: sound2noise.c 프로젝트: bechu/hexapod
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

}
예제 #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

}