7 Segment Display driver code for cc3200