Guys, I had posted that example in the wrong thread. So I will place a link here for it.
You will also want to read the posts on that thread about using tbdi_init in case you have problems with multiple devices hooked up.

http://community.thinbasic.com/index...sg3592#msg3592