mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	running setup
This commit is contained in:
		| @@ -10,8 +10,6 @@ namespace i2s_audio { | ||||
| static const char *const TAG = "i2s_audio"; | ||||
|  | ||||
| void I2SAudioComponent::setup() { | ||||
|   ESP_LOGCONFIG(TAG, "Running setup"); | ||||
|  | ||||
|   static i2s_port_t next_port_num = I2S_NUM_0; | ||||
|   if (next_port_num >= SOC_I2S_NUM) { | ||||
|     ESP_LOGE(TAG, "Too many components"); | ||||
|   | ||||
| @@ -119,10 +119,7 @@ void I2SAudioMediaPlayer::set_volume_(float volume, bool publish) { | ||||
|     this->volume = volume; | ||||
| } | ||||
|  | ||||
| void I2SAudioMediaPlayer::setup() { | ||||
|   ESP_LOGCONFIG(TAG, "Running setup"); | ||||
|   this->state = media_player::MEDIA_PLAYER_STATE_IDLE; | ||||
| } | ||||
| void I2SAudioMediaPlayer::setup() { this->state = media_player::MEDIA_PLAYER_STATE_IDLE; } | ||||
|  | ||||
| void I2SAudioMediaPlayer::loop() { | ||||
|   switch (this->i2s_state_) { | ||||
|   | ||||
| @@ -40,7 +40,6 @@ enum MicrophoneEventGroupBits : uint32_t { | ||||
| }; | ||||
|  | ||||
| void I2SAudioMicrophone::setup() { | ||||
|   ESP_LOGCONFIG(TAG, "Running setup"); | ||||
| #ifdef USE_I2S_LEGACY | ||||
| #if SOC_I2S_SUPPORTS_ADC | ||||
|   if (this->adc_) { | ||||
|   | ||||
| @@ -61,8 +61,6 @@ static const std::vector<int16_t> Q15_VOLUME_SCALING_FACTORS = { | ||||
|     19508, 20665, 21891, 23189, 24565, 26022, 27566, 29201, 30933, 32767}; | ||||
|  | ||||
| void I2SAudioSpeaker::setup() { | ||||
|   ESP_LOGCONFIG(TAG, "Running setup"); | ||||
|  | ||||
|   this->event_group_ = xEventGroupCreate(); | ||||
|  | ||||
|   if (this->event_group_ == nullptr) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user