From 312bc018a05911df8b578ebf2564eb5b766f8b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20B=C3=B6sing?= Date: Sat, 19 Dec 2015 22:55:27 +0100 Subject: [PATCH] add ino --- examples/reSID.ino | 120 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 examples/reSID.ino diff --git a/examples/reSID.ino b/examples/reSID.ino new file mode 100644 index 0000000..6ec63e0 --- /dev/null +++ b/examples/reSID.ino @@ -0,0 +1,120 @@ + +//#include "tower.h" +#include +#include +#include +#include +#include +#include "reSID.h" + + +#define DMPDIR "/dmp" + +//#define DMP "/dmp/GHOSTB~1.DMP" +//#define DMP "/dmp/LAX_UP.DMP" +#define DMP "/dmp/MR_MAR~1.DMP" + + +// GUItool: begin automatically generated code +AudioPlaySID playSID; //xy=189,110 +AudioOutputI2S i2s1; //xy=366,111 +AudioConnection patchCord1(playSID, 0, i2s1, 0); +AudioConnection patchCord2(playSID, 0, i2s1, 1); +AudioControlSGTL5000 sgtl5000_1; //xy=354,176 +// GUItool: end automatically generated code + + +const int SDchipSelect = 10; +File directory; +File myfile; + +char buffer[26]; +char oldbuffer[26]; + + +void printDirectory(File dir, int numTabs) { + while(true) { + + File entry = dir.openNextFile(); + if (! entry) { + // no more files + //Serial.println("**nomorefiles**"); + break; + } + for (uint8_t i=0; i