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
Diff: main.cpp
- Revision:
- 0:0ef2fb2bea82
- Child:
- 1:3f0c5242bc32
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 15 08:43:15 2019 +0000 @@ -0,0 +1,27 @@ +#include "mbed.h" +#include <stdio.h> +#include <base64.h> + +LocalFileSystem local("local"); + +Serial pc(USBTX,USBRX); +Serial xbee(p13, p14); +int main(void){ + FILE *fp; + base64 *bs; + int c; + + xbee.printf("charizard!!!\r\n"); + bs = new base64(); + bs->Encode("/local/PICT000.jpg","/local/d.txt"); + + + if((fp=fopen("/local/d.txt","r"))!=NULL) + { + while ((c=fgetc(fp))!=EOF){ + xbee.printf("%c",c); + } + fclose(fp); + } + return 0; +}