Category : arduino-c++

#define RXD 16 #define TXD 17 #include <stdio.h> /* Standard input/output definitions */ #include <string.h> /* String function definitions */ #include <unistd.h> /* UNIX standard function definitions */ #include <fcntl.h> /* File control definitions */ //PROTOCOL SYNTAX const String PREFIX_REQUEST = "#"; //Symbol(s) beginning a query const String PREFIX_ANSWER = "[email protected]"; //Symbol(s) beginning an answer ..

Read more

I have a lot of variables (3×12) that I have set up under a structure: struct Tracking { String Title; BoolArray n24hr; bool State; unsigned char Days, Weeks; uint16_t Minutes, TotalMinutes, Daily, Weekly, Monthly, n7d[7], n4w[4]; } Components[3]; I also have code that performs basically the same thing 3 times but on different "levels", e.g. ..

Read more

I declared a 2D array and a pointer to it in the header file and defined them in the .cpp file as follows. my header file: extern byte GeneralBitmap[][Heigth]; extern byte (*GeneralBitmap_ptr)[][Heigth]; and my cpp file: byte GeneralBitmap[Width][Heigth]; byte (*GeneralBitmap_ptr)[Width][Heigth] = &GeneralBitmap; But the compiler returns this error: error: conflicting declaration ‘byte (* GeneralBitmap_ptr)[320][4]’ byte ..

Read more