
Originally Posted by
Alektric
This is the subroutine for 2 digit 7 segment display that I used to make a similar thing:
DIGIT:
B11 = B10 / 10
B12 = B10 // 10
LookUp B11, ( 119, 36, 107, 109, 60, 93, 95, 100, 127, 124 ), B13
LookUp B12, ( 119, 36, 107, 109, 60, 93, 95, 100, 127, 124 ), B14
Poke PORTC, B13
Poke PORTB, B14
Return
The idea is that the number you want to display is in variable B10 when you call DIGIT. It's then split in two and sent to port c and port b. This means that 7 pins from both port b and port c are used up but it's very simple to wire up and leaves you with RB7 to run the POT command on your thermistor.
I put this in comments:
' ---6
' ¦4 ¦5
' ---3
' ¦1 ¦2
' ---0
to remind me which pin goes to which segment. The numbers in the lookup command are calculated according to which pin is connected to which segment. If you change a pin - segment connection, you will have to calculate new values for the LOOKUP command.
Bookmarks