// If PC is defined then it compiles for the PC ...
// If RASPBERRY is defined then it compiles for the RASPBERRY ...
// else compile for the Arudino
#ifdef PC
#include <tchar.h>
#include <stdio.h>
#include <string.h>
#include <tchar.h>
#endif
#include "GEColorEffects.pde"
#ifdef PC
int _tmain(int argc, _TCHAR* argv[])
{
// zero out the file name
for (int i = 0; i < MAXSTRINGS; i++)
{
strcpy_s(&_programfile[i][0], 2, "");
}
// get the names of the files from the command line
size_t i;
for (int k = 1; k < argc; k++)
{
wcstombs_s(&i, &_programfile[k-1][0], 1024, argv[k], 1024);
}
// run setup
setup();
// run program
while(TRUE)
{
loop();
}
// return success
return 0;
}
#elif defined(RASPBERRY)
int main(int argc, char *argv[])
{
// zero out the file name
for (int i = 0; i < MAXSTRINGS; i++)
{
strcpy(_programfile[i], "");
}
// get the names of the files from the command line
for (int k = 1; k < argc; k++)
{
strcpy(_programfile[k-1], argv[k]);
}
// run setup
setup();
// run program
while(TRUE)
{
loop();
}
// return success
return 0;
}
#endif