mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
fix spi test (again)
This commit is contained in:
parent
5e4dc9ae51
commit
a26e6786ee
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue