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: mbed HEPTA_CDH_lite LPS25HB_I2C
main.cpp
- Committer:
- heptasat2021
- Date:
- 2021-08-23
- Revision:
- 3:f64ab3adcac5
- Parent:
- 2:e181e5c64233
- Child:
- 4:36a7b7878738
File content as of revision 3:f64ab3adcac5:
#include "mbed.h"
#include "HEPTA_EPS.h"
#include "HEPTA_CDH.h"
Serial pc(USBTX,USBRX,9600);
int main()
{
float btvol;
char str[100];
mkdir("/sd/mydir", 0777);
FILE *fp = fopen("/sd/mydir/data.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/data.txt","r");
for(int i=0;i<10;i++) {
}
fclose(fp);
pc.printf("Goodbye!\r\n");
}