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 [2026/06/25 14:21] – [Programming Example] scbjctboard:peripherals:button [2026/06/25 14:52] (current) – [Programming Example] scbj
Line 29: Line 29:
 \\ \\
  
-<code asm>+<code text>
 .equ ADDR_BUTTON,   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.1782397287.txt.gz
  • Last modified: 2026/06/25 14:21
  • by scbj