|
Post by jackroffel on Sept 29, 2015 18:04:13 GMT -8
Hello everyone - my first port, so go easy on me! I am using a FT800B board connected to a Arduino Mega2560. Stacked on the Mega is a Data Logger Shield. After some CS pin adjustments, and jumper wires from the Data Logger shields SPI pins to the Mega2560 SPI pins, everything appears to be working with the FT800 Library, or at least the vast majority of the example code compiles and runs fine. Audio works as expected via the FT800B built in speaker. I would much rather use the GD2 library with the FT800B as I prefer its command structure, and find it much easier to utilize. I have made only CS pin changes to the GD2 code simply so it uses the same pins as the FTDI code. Display CS is pin #8, SD CS is pin # 9. Everything except audio is working with the GD2 library. The 'Self Test' sketch fails with an "Audio Fail" message, and even though most of the audio enabled example sketches (such as Frogger) run ok, there is no audio. Any SD data required is working fine being loaded from the SD card on the Data Logger shield. I have yet to test if the Logger Shield RTC is working with the GD2 library, since the lack of audio is a greater concern. Any suggestions? Is the FT800B audio even compatible with the GD2 library? Jack
|
|
|
Post by jamesbowman on Sept 30, 2015 7:12:13 GMT -8
Hi Jack, Yes it is totally compatible. On the FT800B there is a signal called AUDIO_SHDN# that is hooked up to FT800 signal GPIO1: www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_VM800B.pdfAUDIO_SHDN# is a shutdown control for audio, active low. So to *not* shutdown audio, it needs to be driven high. So I *think* that if you do this after GD.begin(), the signal should be pulled high, and audio should be enabled. GDTR.wr(REG_GPIO, 0x82); Please let me know if this works - it would be good to add a "FT800B" switch to the library. Thanks!
|
|
|
Post by jackroffel on Sept 30, 2015 13:41:25 GMT -8
Works! Self Test sketch still has the "audio fail", but all of the other example sketches that I compiled worked just fine!
And yes I agree - an "FT800B" audio switch would be a good addition to the library.
Thanks ... now on to adding an Ethernet shield ... any plans to add SPI Transaction support to the library?
Jack
|
|
|
Post by jamesbowman on Oct 1, 2015 6:54:40 GMT -8
Awesome, thanks.
For SPI transactions, support is in the library but not very well named. If you do:
GD._end(); ... other SPI transactions ... GD.resume(); then everything should behave properly. I guess 'releaseSPI' and 'acquireSPI' would be better names?
|
|