This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 { |