modified: .vscode/arduino.json

modified:   spi_test.ino
second
YUNLEI 2022-09-02 19:34:04 +08:00
parent b6a85e1a67
commit 5e1b53b291
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"configuration": "PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none",
"board": "esp32:esp32:esp32",
"configuration": "PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=min_spiffs,CPUFreq=240,UploadSpeed=921600,DebugLevel=none",
"board": "esp32:esp32:esp32s3",
"sketch": "spi_test.ino",
"port": "COM4"
"port": "COM10"
}

View File

@ -7,8 +7,8 @@ void setup() {
Serial.setRxBufferSize(256);
Serial.onReceive(SerialRe,true);
W25QXX_Init();
W25QXX_Write((uint8_t*)"my name is lei yun\0",1000,strlen("my name is lei yun"));
W25QXX_Read(table,1000,strlen("my name is lei yun"));
W25QXX_Write((uint8_t*)"my name is lei kkk",1000,strlen("my name is lei yun"));
W25QXX_Read(table,1001,strlen("my name is lei yun"));
// Serial.printf("%04X\n",W25QXX_TYPE);
Serial.printf("%s\n",table);
delay(3000);