Skip to content
Discussion options

You must be logged in to vote

Affirm!
Even the Pin class misses some things:
['__class__', '__name__', 'value', 'ALT', 'ALT_GPCK', 'ALT_I2C', 'ALT_PIO0', 'ALT_PIO1', 'ALT_PWM', 'ALT_SIO', 'ALT_SPI', 'ALT_UART', 'ALT_USB', 'IN', 'IRQ_FALLING', 'IRQ_RISING', 'OPEN_DRAIN', 'OUT', 'PULL_DOWN', 'PULL_UP', '__bases__', '__dict__', 'board', 'cpu', 'high', 'init', 'irq', 'low', 'off', 'on', 'toggle']
Note that there's no 'ALT_PIO2' and manually setting Pin.alt_mode to 8 (for PIO2) does not work either.
Manually forcing mem32[IO_BANK0_BASE+GPIO25_CTRL] = 8 mem32[PADS_BANK0_BASE+pads_GPIO25] = 1<<4 won't help either.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@IntergalacticMicrosystems
Comment options

@IntergalacticMicrosystems
Comment options

@IntergalacticMicrosystems
Comment options

@peterhinch
Comment options

@GitHubsSilverBullet
Comment options

Answer selected by IntergalacticMicrosystems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants