Skip to content

Commit 2aa7baf

Browse files
kwagyemanclaude
andcommitted
docs: Fix AE3 Battery Shield microSD baudrate
Set the 20 MHz clock on the sdcard.SDCard constructor (the driver re-inits the SPI clock itself) instead of hard-coding 10 MHz on machine.SPI. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9137df7 commit 2aa7baf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/openmvcam/shields/ae3-battery-shield.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ The microSD socket is exposed on the AE3's SPI bus through
8585

8686
machine.Pin("P11", machine.Pin.OUT, value=1) # enable card power
8787

88-
spi = machine.SPI(0, baudrate=10_000_000)
88+
spi = machine.SPI(0)
8989
cs = machine.Pin("P3", machine.Pin.OUT, value=1)
9090

91-
sd = sdcard.SDCard(spi, cs)
91+
sd = sdcard.SDCard(spi, cs, baudrate=20_000_000)
9292
os.mount(os.VfsFat(sd), "/sdcard")
9393
print(os.listdir("/sdcard"))
9494

0 commit comments

Comments
 (0)