avr: work on simple GUI module to be used by node c02.
This commit is contained in:
@@ -7,6 +7,11 @@
|
||||
; * Please see toplevel file COPYING of that project for license details. *
|
||||
; ***************************************************************************
|
||||
|
||||
#ifndef AQH_AVR_ILI9341_MAIN_ASM
|
||||
#define AQH_AVR_ILI9341_MAIN_ASM
|
||||
|
||||
|
||||
|
||||
; generally we use the following parameters here:
|
||||
; @param r1:r0 background color
|
||||
; @param r3:r2 foreground color
|
||||
@@ -14,6 +19,8 @@
|
||||
; @param r7:r6 Y0
|
||||
; @param r9:r8 X1/W
|
||||
; @param r11:r10 Y1/H
|
||||
; @param r13:r12 source data width in bytes (for bit blit, i.e. byte offset from
|
||||
; one source data line to the next)
|
||||
|
||||
|
||||
; ***************************************************************************
|
||||
@@ -65,7 +72,7 @@ ILI9341_Fini:
|
||||
; Z=byte pointer to command list (as for LPM)
|
||||
|
||||
ili9341SendCommands:
|
||||
rcall ili9341BeginSpi
|
||||
rcall ili9341BeginSpi ; (R16, R17)
|
||||
ili9341SendCommands_loop1:
|
||||
lpm r16, Z+ ; read command
|
||||
lpm r18, Z+ ; read number of args
|
||||
@@ -229,3 +236,6 @@ ili9341InitCommands:
|
||||
.db 0xff, 0xff
|
||||
|
||||
|
||||
#endif ; AQH_AVR_ILI9341_MAIN_ASM
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user