Skip to content
Discussion options

You must be logged in to vote

OK, this was caused by my messing with Muxing, and having both GPIO set zero...

        # force pins 9 & 10 to mux to PIO
        mem32[0x40014000 + 0x04c] = (mem32[0x40014000 + 0x04c] & 0xFFFFFFE0) + 0x6
        mem32[0x40014000 + 0x054] = (mem32[0x40014000 + 0x054] & 0xFFFFFFE0) + 0x6
        if high_output_level:
            # pin 10 : force muxing to use GPIO block (ie force low)
            mem32[0x40014000 + 0x054] = (mem32[0x40014000 + 0x054] & 0xFFFFFFE0) + 0x5

            print("HIGH level selected")
        else:
            print("MIC level selected")

Now they are set high/low and I don't see the problem.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mungewell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant