Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#define BUFFER_SIZE 10
unsigned char buffer[BUFFER_SIZE];
signed char index = 0; /* Max buffer size 127 */
void put_byte(unsigned char data)
{
buffer[index++] = data;
index = index > BUFFER_SIZE ? 0 : index;
}
unsigned char get_byte(void)
{
--index;
index = index < 0 ? BUFFER_SIZE : index;
return buffer[index];
}