fix spi test (again)
This commit is contained in:
		
							parent
							
								
									5e4dc9ae51
								
							
						
					
					
						commit
						a26e6786ee
					
				| @ -10,7 +10,9 @@ void app_init(void) { | |||||||
|     spi_flash_init(); |     spi_flash_init(); | ||||||
| 
 | 
 | ||||||
|     uint8_t buf[3] = {1, 2, 3}; |     uint8_t buf[3] = {1, 2, 3}; | ||||||
|  |     watch_set_pin_level(A3, false); | ||||||
|     spi_flash_command(CMD_ENABLE_WRITE); |     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
 |     // note that you will need to erase the sector to write different values later
 | ||||||
|     spi_flash_write_data(0, buf, 3); |     spi_flash_write_data(0, buf, 3); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user