There's an example of this on the arduino playground (also open source prototyping). Not sure if you could figure out how to use it with basic stamp. I've never heard of it before, but I bet the programming would be pretty close. Is this written in C++?