File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -162,22 +162,22 @@ void OutputSound()
162162 int n = GetBufferLength () / 50 ;
163163 char *s = GetBuffer ();
164164
165- // fnSystem.dac_output_enable(SystemManager::dac_channel_t::DAC_CHAN_0 );
166- // fnSystem.dac_output_voltage(SystemManager::dac_channel_t::DAC_CHAN_0 , 100);
165+ // fnSystem.dac_output_enable(SystemManager::dac_channel_t::DAC_CHANNEL_1 );
166+ // fnSystem.dac_output_voltage(SystemManager::dac_channel_t::DAC_CHANNEL_1 , 100);
167167
168- dac_output_enable (DAC_CHAN_0 );
168+ dac_output_enable (DAC_CHANNEL_1 );
169169
170170 for (int i = 0 ; i < n; i++)
171171 {
172172 // dacWrite(DAC1, s[i]);
173173 // fnSystem.dac_write(PIN_DAC1, s[i]);
174- dac_output_voltage (DAC_CHAN_0 , s[i]);
174+ dac_output_voltage (DAC_CHANNEL_1 , s[i]);
175175 // delayMicroseconds(40);
176176 fnSystem.delay_microseconds (40 );
177177 }
178178
179179 // fnSystem.dac_output_disable(SystemManager::dac_channel_t::DAC_CHANNEL_1);
180- dac_output_disable (DAC_CHAN_0 );
180+ dac_output_disable (DAC_CHANNEL_1 );
181181
182182 FreeBuffer ();
183183#endif
You can’t perform that action at this time.
0 commit comments