Question about controlling 7-Segment display on Turing
Author |
Message |
Fawkes
|
Posted: Wed May 28, 2008 9:04 pm Post subject: Question about controlling 7-Segment display on Turing |
|
|
For my final project in Engineering, my friends and I have to build a city with a "at war" theme to it. I had the idea of using a 7-segment display as a countdown for something. I was wondering if in Turing you could use parallelput and enclose brackets around a binary number and it would appear as a decimal number on the 7-segment display. And to initiate a countdown, you could use a loop and keep on delaying it. But can you actually do this? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
apomb
|
Posted: Thu May 29, 2008 12:28 am Post subject: Re: Question about controlling 7-Segment display on Turing |
|
|
if i remember how parallelput works, no you cant just send one number, you'd have to send the right binary number to the parallel port, therefore sending the correct "1" or "on" signal to the leds in the 7 seg. display.
For example, to display a "1" lets say the two segments to be on are 1 and 2, and the display is 1-indexed, you would then send a binary "0000011" to the parallel port.
code: | _
|_|<--segment "1"
|_|<--segment "2" |
|
|
|
|
|
|
|
|