Skip to content

Instantly share code, notes, and snippets.

#define map_size 64
#define traceback_buf_size 16
//char traceback_buf[traceback_buf_size];
int freeRam () {
extern int __heap_start, *__brkval;
int v;
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
}
class robot {
#define map_size 64
#define traceback_buf_size 16
//char traceback_buf[traceback_buf_size];
int freeRam () {
extern int __heap_start, *__brkval;
int v;
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
}
class robot {
@Menginventor
Menginventor / linked list example
Last active July 1, 2017 12:07
C++ linked list example (base on Arduino environment)
/*
C++ linked list example (base on Arduino environment)
by Dhmadhawach Horesuwan
1/7/2560 , Bangkok , Thailand
*/
class linked_list {
struct node {
char data;// you can change this to datatype which you want.
node* next;
node* previous;