Started working on LCD module.

This commit is contained in:
Martin Preuss
2023-01-28 15:29:58 +01:00
parent 02b09e9ff7
commit aac3c16b29
2 changed files with 154 additions and 5 deletions

View File

@@ -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