Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HEPTA_SENSOR mbed HEPTA_EPS HEPTA_COM HEPTA_CDH
main.cpp
- Committer:
- HeptaSatTraining2019
- Date:
- 2019-08-21
- Revision:
- 25:ccc5ff675e0c
- Parent:
- 24:3659e0c223c8
- Child:
- 26:220e5f95168a
File content as of revision 25:ccc5ff675e0c:
#include "mbed.h"
#include "HEPTA_CDH.h"
#include "HEPTA_EPS.h"
Serial pc(USBTX,USBRX);
int main()
{
pc.baud(9600);
float bt;
char str[100];
mkdir("/sd/mydir", 0777);
FILE *fp = fopen("/sd/mydir/test.txt","w");
if(fp == NULL) {
error("Could not open file for write\r\n");
}
for(int i = 0; i < 10; i++) {
}
fclose(fp);
fp = fopen("/sd/mydir/test.txt","r");
for(int j = 0; j < 10; j++) {
}
fclose(fp);
pc.printf("Goodbye!!\r\n");
}