diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-10 13:32:22 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-10 13:32:22 (GMT) |
| commit | 3bcda8d5464e707490184bb92c102f4fe42a511e (patch) | |
| tree | 5951798f2101438cf46056bac1cc052d187626c9 /wasp | |
| parent | fd64abe882a2064bad0131424835c169e365d83f (diff) | |
| parent | 74511a1e1cdb655276aed2b85c953830db3cdfe7 (diff) | |
Merge branch 'master' of https://github.com/daniel-thompson/wasp-os
Diffstat (limited to 'wasp')
| -rw-r--r-- | wasp/boards/pinetime/watch.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wasp/boards/pinetime/watch.py b/wasp/boards/pinetime/watch.py index e4c4106..1caeea5 100644 --- a/wasp/boards/pinetime/watch.py +++ b/wasp/boards/pinetime/watch.py @@ -68,6 +68,12 @@ i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA') touch = CST816S(i2c) 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 flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),)) try: |
