lab1infogathering.c

来自「使用PIC24 16位单片机 读写SD卡 支持FAT32」· C语言 代码 · 共 27 行

C
27
字号
#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 + =
减小字号Ctrl + -
显示快捷键?