I'm stuffing my code here for all to see and learn.
TS7400 Development
Baracoda Pencil2 Bluetooth Scanner Development