rename ShowADC -> ShowValue, and use DIP
authorTero Marttila <terom@fixme.fi>
Sat, 08 May 2010 21:27:44 +0300
changeset 28 51344df466ca
parent 27 359c1771c366
child 29 453550e69e07
rename ShowADC -> ShowValue, and use DIP
led7seg.s
--- a/led7seg.s	Sat May 08 21:27:32 2010 +0300
+++ b/led7seg.s	Sat May 08 21:27:44 2010 +0300
@@ -27,6 +27,9 @@
 ;; LCD
 .include "led7seg.inc"
 
+;; DIPs
+.include "dip.inc"
+
 ;; ADC
 .include "adc.inc"
 
@@ -49,10 +52,10 @@
 
         rjmp       Timer_Sleep
 
-;; Show ADC value
-Main_ShowADC:
+;; Show value
+Main_ShowValue:
         ; load value to r16
-        mov         r16, r10
+        rcall       DIP_Read8
         ; rcall       ADC_Read8
 
         ; display from r16
@@ -64,7 +67,7 @@
         rcall       Timer_Sleep
 
         ; continue
-        rjmp        Main_ShowADC
+        rjmp        Main_ShowValue
 
 ;; Count down from F
 ; Returns once we've hit zero
@@ -198,11 +201,11 @@
         rcall       LED7_Init    
     
     ; Run
-        ; rcall       Main_ShowADC
+        rcall       Main_ShowValue
         ; rcall       Main_Spin
-        rcall       Main_Countup
+        ; rcall       Main_Countup
         ; rcall       Main_Countdown
-        rcall       Main_Blink
+        ; rcall       Main_Blink
 
 end:
         rjmp        end