Skip to content

Commit

Permalink
add timeout to R3 I2C setup #800
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gardner-Stephen committed Apr 21, 2024
1 parent 644d278 commit 4879631
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/hyppo/targetsetup.asm
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,29 @@ mps3_loop:
lda mega65r3_i2c_settings,y
iny

ldx #$ff

;; Keep writing it until it gets written
-
-
sta [<zptempv32],z

inc $d020
cmp [<zptempv32],z
bne -
beq mps3_loop
jsr i2c_job_delay
dex
bne -

jmp mps3_loop

i2c_job_delay:
phx
ldx #$00
-
dex
bne -

rts
megaphone_r1_i2c_setup:

Expand Down

0 comments on commit 4879631

Please sign in to comment.