⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lab1infogathering.c

📁 使用PIC24 16位单片机 读写SD卡 支持FAT32
💻 C
字号:
#include "fileio.h"

extern unsigned long dataAddress;
extern unsigned long rootAddress;
extern unsigned long FATAddress;

int main (void)
{
	
	FILE * myfile;
	
	char buffer[20] = "Hello, world";
	
	const char name[] = "Hello.txt";
	const char write[] = "w";

	FAT16Init();
	
	myfile = fopen (name, write);

	fwrite (buffer, 1, 12, myfile);
	
	fclose (myfile);

	while(1);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -