Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ctboard:peripherals:button [2022/12/23 11:00] ruanctboard:peripherals:button [2026/06/25 14:52] (current) – [Programming Example] scbj
Line 29: Line 29:
 \\ \\
  
-<code asm+<code text
-ADDR_BUTTON     EQU      0x60000210+.equ ADDR_BUTTON,   0x60000210
                                  
-                LDR      r0, =ADDR_BUTTON +        ldr         r0, =ADDR_BUTTON 
-                LDRB     r1, [r0, #0]       Read all buttons into the lower nibble of a byte.+        ldrb        r1, [r0, #0]       // Read all buttons into the lower nibble of a byte.
 </code> </code>
 \\ \\
  
  • ctboard/peripherals/button.1671793246.txt.gz
  • Last modified: 2022/12/23 11:00
  • by ruan