daily_automated

This commit is contained in:
paolo.iocco
2023-03-13 09:05:51 +00:00
parent ab2532ebf2
commit 4da858fb92
515 changed files with 226616 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
#include <stdio.h>
#if defined(__MINGW32__ )
#include <dirent.h>
#include <sys/stat.h>
#endif
#ifdef __APPLE__
#include <dirent.h>
#include <sys/stat.h>
#endif
/* these are used in the .ino */
void outchar( char ch )
{
printf( "%c", ch );
}
/* other helpers */
int cmd_Files( void )
{
DIR * theDir;
theDir = opendir( "." );
if( !theDir ) return -2;
struct dirent *theDirEnt = readdir( theDir );
while( theDirEnt ) {
printf( " %s\n", theDirEnt->d_name );
theDirEnt = readdir( theDir );
}
closedir( theDir );
return 0;
}
void setup( void );
void loop( void );
int main( int argc, char ** argv )
{
printf( "Starting up TinyBasic Plus...\n\n" );
setup();
loop();
}