Started working on LCD module.
This commit is contained in:
10
avr/main.asm
10
avr/main.asm
@@ -91,6 +91,7 @@
|
||||
.include "led.asm"
|
||||
.include "com.asm"
|
||||
.include "twimaster.asm"
|
||||
.include "lcd.asm"
|
||||
|
||||
|
||||
|
||||
@@ -145,8 +146,8 @@ main:
|
||||
ldi yh, HIGH(ledA3Sram)
|
||||
rcall Led_SetPattern
|
||||
|
||||
ldi r16, 1
|
||||
sts twiMasterScanEnabled, r16
|
||||
; ldi r16, 1
|
||||
; sts twiMasterScanEnabled, r16
|
||||
|
||||
main_loop:
|
||||
rcall runModulesUntilIdle
|
||||
@@ -190,6 +191,7 @@ initModules:
|
||||
|
||||
rcall Com_Init
|
||||
rcall TWI_Master_Init
|
||||
rcall LCD_Init
|
||||
ret
|
||||
|
||||
|
||||
@@ -263,9 +265,7 @@ onEvery100ms:
|
||||
; USED: depending on called routines
|
||||
|
||||
onEverySecond:
|
||||
sbi DDRA, PORTA2 ; debug
|
||||
sbi PINA, PORTA2 ; debug (toggle)
|
||||
rcall TWI_Master_ScanNext
|
||||
; rcall TWI_Master_ScanNext
|
||||
ret
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user