add two-sid example + move some folders to /extras

master
Frank Bösing 9 years ago
parent 7d05958338
commit 395a1372ea
  1. 105
      examples/reSID2/reSID2.ino
  2. 0
      extras/SDCARD/1942.dmp
  3. 0
      extras/SDCARD/AHSDF.dmp
  4. 0
      extras/SDCARD/AWMonty.dmp
  5. 0
      extras/SDCARD/Arkanoid_PSID.dmp
  6. 0
      extras/SDCARD/Auf_Wiedersehen_Monty.dmp
  7. 0
      extras/SDCARD/Autumn_Symphony.dmp
  8. 0
      extras/SDCARD/Aviewtoakill.dmp
  9. 0
      extras/SDCARD/AxelfF.dmp
  10. 0
      extras/SDCARD/Aztec_Challenge.dmp
  11. 0
      extras/SDCARD/Batman_The_Movie.dmp
  12. 0
      extras/SDCARD/Batman_The_Movie2.dmp
  13. 0
      extras/SDCARD/Batman_The_Movie3.dmp
  14. 0
      extras/SDCARD/Batman_The_Movie4.dmp
  15. 0
      extras/SDCARD/Batman_The_Movie5.dmp
  16. 0
      extras/SDCARD/Batman_The_Movie6.dmp
  17. 0
      extras/SDCARD/Bionic_Commando.dmp
  18. 0
      extras/SDCARD/Bionic_Commando2.dmp
  19. 0
      extras/SDCARD/Bionic_Commando3.dmp
  20. 0
      extras/SDCARD/Boulder_Dash.dmp
  21. 0
      extras/SDCARD/Bruce_Lee.dmp
  22. 0
      extras/SDCARD/Bubble_Bobble.dmp
  23. 0
      extras/SDCARD/California_Games.dmp
  24. 0
      extras/SDCARD/Castle_of_Terror.dmp
  25. 0
      extras/SDCARD/Castlevania_64_Mixes.dmp
  26. 0
      extras/SDCARD/Cauldron_II.dmp
  27. 0
      extras/SDCARD/Chimera.dmp
  28. 0
      extras/SDCARD/Cobra.dmp
  29. 0
      extras/SDCARD/Comic_Bakery.dmp
  30. 0
      extras/SDCARD/Commando.dmp
  31. 0
      extras/SDCARD/Cool_World.dmp
  32. 0
      extras/SDCARD/CrazyComet.dmp
  33. 0
      extras/SDCARD/Crazy_Comets.dmp
  34. 0
      extras/SDCARD/Cybernoid.dmp
  35. 0
      extras/SDCARD/Cybernoid_II.dmp
  36. 0
      extras/SDCARD/Daley_Thompsons_Decathlon.dmp
  37. 0
      extras/SDCARD/Delta.dmp
  38. 0
      extras/SDCARD/Dragons_Legend.dmp
  39. 0
      extras/SDCARD/Drop_The_Girl.dmp
  40. 0
      extras/SDCARD/Eleminator.dmp
  41. 0
      extras/SDCARD/Enforcer.dmp
  42. 0
      extras/SDCARD/EnloaGay.dmp
  43. 0
      extras/SDCARD/Firefly.dmp
  44. 0
      extras/SDCARD/Flashback.dmp
  45. 0
      extras/SDCARD/Flimbos_Quest.dmp
  46. 0
      extras/SDCARD/Fly_Around_the_World.dmp
  47. 0
      extras/SDCARD/Forbidden_Forest.dmp
  48. 0
      extras/SDCARD/Foundations.dmp
  49. 0
      extras/SDCARD/Gauntlet_III.dmp
  50. 0
      extras/SDCARD/Geir_Tjelta-11.dmp
  51. 0
      extras/SDCARD/Ghostbusters.dmp
  52. 0
      extras/SDCARD/Ghosts_n_Goblins.dmp
  53. 0
      extras/SDCARD/Ghouls_n_Ghosts.dmp
  54. 0
      extras/SDCARD/GianaHighScore.dmp
  55. 0
      extras/SDCARD/GianaSistersBoss.dmp
  56. 0
      extras/SDCARD/GianaSistersDieNext.dmp
  57. 0
      extras/SDCARD/GianaSistersLevel.dmp
  58. 0
      extras/SDCARD/GianaSistersPressFire.dmp
  59. 0
      extras/SDCARD/Golden_Axe.dmp
  60. 0
      extras/SDCARD/Goodbye.dmp
  61. 0
      extras/SDCARD/Great_Giana_Sisters.dmp
  62. 0
      extras/SDCARD/Head_Over_Heels.dmp
  63. 0
      extras/SDCARD/Hobbit.dmp
  64. 0
      extras/SDCARD/IK_plus.dmp
  65. 0
      extras/SDCARD/Ice_Age.dmp
  66. 0
      extras/SDCARD/Illmatic_end.dmp
  67. 0
      extras/SDCARD/Illumination.dmp
  68. 0
      extras/SDCARD/International_Karate.dmp
  69. 0
      extras/SDCARD/Intro.dmp
  70. 0
      extras/SDCARD/IntroFinal.dmp
  71. 0
      extras/SDCARD/Jabdah.dmp
  72. 0
      extras/SDCARD/Jackal.dmp
  73. 0
      extras/SDCARD/Jazzy.dmp
  74. 0
      extras/SDCARD/Kikstart_II.dmp
  75. 0
      extras/SDCARD/Krakout.dmp
  76. 0
      extras/SDCARD/Krakout1.dmp
  77. 0
      extras/SDCARD/Krakout2.dmp
  78. 0
      extras/SDCARD/Krakout3.dmp
  79. 0
      extras/SDCARD/Krakow.dmp
  80. 0
      extras/SDCARD/L_E_D_Storm.dmp
  81. 0
      extras/SDCARD/Lambada2.dmp
  82. 0
      extras/SDCARD/Lamebada.dmp
  83. 0
      extras/SDCARD/Last_Ninja.dmp
  84. 0
      extras/SDCARD/Last_Ninja2.dmp
  85. 0
      extras/SDCARD/Last_Ninja_3.dmp
  86. 0
      extras/SDCARD/Lax_Up.dmp
  87. 0
      extras/SDCARD/Lightforce.dmp
  88. 0
      extras/SDCARD/Mario_v2.dmp
  89. 0
      extras/SDCARD/Master_of_Magic.dmp
  90. 0
      extras/SDCARD/Midnight_Resistance.dmp
  91. 0
      extras/SDCARD/Monday.dmp
  92. 0
      extras/SDCARD/Monty_on_the_Run.dmp
  93. 0
      extras/SDCARD/More_Human.dmp
  94. 0
      extras/SDCARD/Motorway_4.dmp
  95. 0
      extras/SDCARD/Mr_Marvellous.dmp
  96. 0
      extras/SDCARD/Mysteries.dmp
  97. 0
      extras/SDCARD/Myth_mix.dmp
  98. 0
      extras/SDCARD/Nemesis_the_Warlock.dmp
  99. 0
      extras/SDCARD/Never_Ending_Story.dmp
  100. 0
      extras/SDCARD/Night_Breed.dmp
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,105 @@
//#include "tower.h"
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#include "reSID.h"
#define DMP "/dmp/GHOSTB~1.DMP"
#define DMP2 "/dmp/pp_ham~1.DMP"
// GUItool: begin automatically generated code
AudioPlaySID playSID; //xy=189,110
AudioPlaySID playSID1; //xy=189,110
AudioOutputI2S i2s1; //xy=366,111
AudioConnection patchCord1(playSID, 0, i2s1, 0);
AudioConnection patchCord2(playSID1, 0, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=354,176
// GUItool: end automatically generated code
const int SDchipSelect = 10;
File myfile;
File myfile2;
char buffer[26];
char oldbuffer[26];
char oldbuffer2[26];
void setup() {
#if USETOWER
initTower();
#endif
AudioMemory(4);
SPI.setSCK(14);
SPI.setMOSI(7);
SPI.setMISO(12);
SPI.begin();
sgtl5000_1.enable();
sgtl5000_1.volume(0.8);
sgtl5000_1.enhanceBassEnable();
sgtl5000_1.enhanceBass(0.5, 2.5);
memset(oldbuffer,0,sizeof(oldbuffer));
int ml = millis();
while (!Serial && (millis()-ml < 1000)) ; // wait for Arduino Serial Monitor
Serial.print("Initializing SD card...");
if (!SD.begin(SDchipSelect)) {
Serial.println("initialization failed!");
return;
}
Serial.println("initialization done.");
myfile = SD.open(DMP, FILE_READ);
myfile2 = SD.open(DMP2, FILE_READ);
}
void loop() {
static int m = millis();
if (millis()-m < 20) return;
m = millis();
//Play first file
if (myfile.available()) {
myfile.read(buffer, 25);
for(int i=0;i<25;i++) {
if(buffer[i] != oldbuffer[i]) {
playSID.setreg(i, buffer[i]);
oldbuffer[i] = buffer[i];
}
}
} else {
if (playSID.isPlaying()) playSID.stop();
}
//Play second file
if (myfile2.available()) {
myfile2.read(buffer, 25);
for(int i=0;i<25;i++) {
if(buffer[i] != oldbuffer2[i]) {
playSID1.setreg(i, buffer[i]);
oldbuffer2[i] = buffer[i];
}
}
} else {
if (playSID1.isPlaying()) playSID1.stop();
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save