--- a/led7seg.s Sat May 08 14:55:35 2010 +0300
+++ b/led7seg.s Sat May 08 15:13:45 2010 +0300
@@ -106,6 +106,9 @@
.db 0b01100110, 0b01101101 ; 4, 5
.db 0b01111101, 0b00000111 ; 6, 7
.db 0b01111111, 0b01100111 ; 8, 9
+.db 0b01110111, 0b01111100 ; A, b
+.db 0b00111001, 0b01011110 ; C, d
+.db 0b01111001, 0b01110001 ; E, f
.db 0b10000000, 0b00000000 ; .,
;.db 0b00111111, ; 0
@@ -131,8 +134,14 @@
.equ LCD_7 = 7
.equ LCD_8 = 8
.equ LCD_9 = 9
-.equ LCD_DOT = 10
-.equ LCD_EMPTY = 11
+.equ LCD_A = 10
+.equ LCD_B = 11
+.equ LCD_C = 12
+.equ LCD_D = 13
+.equ LCD_E = 14
+.equ LCD_F = 15
+.equ LCD_DOT = 16
+.equ LCD_EMPTY = 17
;; Initialize LCD to empty, and enable
LCD_Init:
@@ -263,8 +272,8 @@
;; Count down from 9
; Returns once we've hit zero
Main_Countdown:
- ; init from 9
- ldi r24, LCD_9
+ ; init from F
+ ldi r24, LCD_F
_count_loop:
; display
@@ -363,11 +372,11 @@
; Run
; spin!
- rcall Main_Spin
+ ;rcall Main_Spin
; count!
- ; rcall Main_Countdown
- ; rcall Main_Blink
+ rcall Main_Countdown
+ rcall Main_Blink
end:
rjmp end