diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-27 10:45:01 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-27 10:45:01 -0500 |
commit | a26e6786eea417e73ba09b857a1a6718651a3eb9 (patch) | |
tree | 2a5fb75a5ff705098837cfe0b4d1f5923dd3110d /apps/spi-test | |
parent | 5e4dc9ae5103ecec068c4e3fc4baec3d76bd05a4 (diff) | |
download | Sensor-Watch-a26e6786eea417e73ba09b857a1a6718651a3eb9.tar.gz Sensor-Watch-a26e6786eea417e73ba09b857a1a6718651a3eb9.tar.bz2 Sensor-Watch-a26e6786eea417e73ba09b857a1a6718651a3eb9.zip |
fix spi test (again)
Diffstat (limited to 'apps/spi-test')
-rw-r--r-- | apps/spi-test/app.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/spi-test/app.c b/apps/spi-test/app.c index b2ed436f..fc78bbc5 100644 --- a/apps/spi-test/app.c +++ b/apps/spi-test/app.c @@ -10,7 +10,9 @@ void app_init(void) { spi_flash_init(); uint8_t buf[3] = {1, 2, 3}; + watch_set_pin_level(A3, false); spi_flash_command(CMD_ENABLE_WRITE); + watch_set_pin_level(A3, true); // note that you will need to erase the sector to write different values later spi_flash_write_data(0, buf, 3); } |