Today, I experimented with my new TI Innovator Hub and specifically, the 7 segment display. However, I soon discovered that drawing numbers on the display required quite a few lines of code (my counting program was 74 lines long). I then wrote a library to make such things simpler.
For example, drawing an 8:
Without Library:
Code:
With library:
Code:
Download available soon (I will post when I get to my computer)
EDIT: Forgot to add 0, I will add before posting download link
EDIT 2: Added 0 but computer died, will have to post later today
For example, drawing an 8:
Without Library:
Code:
Send “DIGITAL.OUT eval(1) ON”
Send “DIGITAL.OUT eval(2) ON”
Send “DIGITAL.OUT eval(3) ON”
Send “DIGITAL.OUT eval(4) ON”
Send “DIGITAL.OUT eval(5) ON”
Send “DIGITAL.OUT eval(6) ON”
Send “DIGITAL.OUT eval(7) ON”
With library:
Code:
numdrawseg\numdrawseg(8)
Download available soon (I will post when I get to my computer)
EDIT: Forgot to add 0, I will add before posting download link
EDIT 2: Added 0 but computer died, will have to post later today