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.
Dependents: BufferedSoftSerial 09_PT1000 10_PT1000 11_PT1000 ... more
Homepage
Example¶
#include "mbed.h"
#include "Buffer.h"
Buffer <char> buf;
int main()
{
buf = 'a';
buf.put('b');
char *head = buf.head();
puts(head);
char whats_in_there[2] = {0};
int pos = 0;
while(buf.available())
{
whats_in_there[pos++] = buf;
}
printf("%c %c\n", whats_in_there[0], whats_in_there[1]);
buf.clear();
error("done\n\n\n");
}