Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ctboard:peripherals:lcd_bg [2022/12/27 16:35] ruanctboard:peripherals:lcd_bg [2026/06/25 15:11] (current) – [Programming Example] scbj
Line 27: Line 27:
 \\ \\
  
-<code asm+<code text
-ADDR_LCD_BG     EQU      0x60000340 +.equ ADDR_LCD_BG,    0x60000340 
-                 +  
-                LDR      r0, =ADDR_LCD_BG +        ldr     r0,  =ADDR_LCD_BG 
-                LDR      r1, =0xffff +        ldr     r1,  =0xffff 
-                STRH     r1, [r0, #0]             ; Set PWM value for red background light. +        strh    r1,  [r0, #0]          // PWM value for red background light. 
-                STRH     r1, [r0, #2]             ; Set PWM value for green background light. +        strh    r1,  [r0, #2]          // PWM value for green background light. 
-                STRH     r1, [r0, #4]             ; Set PWM value for blue background light.+        strh    r1,  [r0, #4]          // PWM value for blue background light.
 </code> </code>
 \\ \\
  • ctboard/peripherals/lcd_bg.txt
  • Last modified: 2026/06/25 15:11
  • by scbj