HDAudio_ADCtoDAC_Demo - ES control don´t communicate with the Demo
masselon
Posts: 51
I have run the jm_p2-es_matrix_control_demo and the "jm_p2-es_control" work great but in the HDAudio object it didn´t work. I would like know how it can be solved.
Thanks in advance.
Comments
?
Make sure in the demo main() function you have selected (ie. Uncommented) the demo that uses the control buttons. It's the last demo.
That is explained in the video and also in the code comments, so read ALL the comments at the main function, and shout back if you need any more help.
I am using this version: Updated.... 18 OCT 2022
pub DemoWithLoopEffects(channel) | ct, delay, delay_mS, c, f, left, right, i, volume, vlu, vld
hid.start(BASEPIN_CONTROL)
ak5704.startx(BASEPIN_ADC, BASEPIN_DAC, P_DAC_75R_2V, 2)
f := 0
c := 0
delay := (BUF_SIZE / 2) - 2
...
Are your basepin settings correct?
That code certainly works. If you need help with your version of the code, please use the PropellerTool file menu to create a code archive (without tool) and post it here.
Could just be you have something nudged out of place.
@VonSzarvas Posts: 2,942 2023-01-15 19:42 Flag
Are your basepin settings correct?
Yes!
Hi ! I've added three backticks around your code post above, so it's displayed as code.
To enable the demo with the control pad, do this....
Refer to this line in the main() function:
DemoLineIn(BUF_SIZE)
Add a single quote to comment out that demo, ie.
'DemoLineIn(BUF_SIZE)
Then find this a few lines down:
'DemoWithLoopEffects(ak5704.INPUT_LINE)
Remove the tick to uncomment (and thus enable) that demo, ie.
DemoWithLoopEffects(ak5704.INPUT_LINE)
Also, unrelated, near the top, this line:
com { general settings }
should be:
con { general settings }
@VonSzarvas
Great! Worked very well.
Thank very much.