Merge pull request #7 from salcedo/master
wasp: pinetime: Release SPI NOR from deep power-down
This commit is contained in:
commit
74511a1e1c
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,12 @@ i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA')
|
||||||
touch = CST816S(i2c)
|
touch = CST816S(i2c)
|
||||||
vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)
|
vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)
|
||||||
|
|
||||||
|
# Release flash from deep power-down
|
||||||
|
nor_cs = Pin('NOR_CS', Pin.OUT, value=1)
|
||||||
|
nor_cs(0)
|
||||||
|
spi.write('\xAB')
|
||||||
|
nor_cs(1)
|
||||||
|
|
||||||
# Mount the filesystem
|
# Mount the filesystem
|
||||||
flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),))
|
flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),))
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue