Home › Forums › Game Frame › Technical Support › Struggling to compile arduino sketch
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by jamesbovey333.
-
AuthorPosts
-
July 18, 2016 at 7:17 pm #2717jamesbovey333Participant
Hi all, hoping someone can help me. I’m trying to build the original game frame and am trying to upload the game sketch to my arduino but I get this error, ‘inifile’ has not been declared. I get the same error trying to compile either sketch and as you have probably guessed, I can’t code! I am using ide 1.0.1, have all the libraries installed via Jeremy’s zip file from a post on these forums. Any suggestions are very welcome! Thank you
July 18, 2016 at 8:00 pm #2718jamesbovey333ParticipantOk, so I have got past that error but now it’s saying my sketch is too big. The clock sketch fits fine but not the game sketch. Am using Jeremy’s link to adafruit library as in a previous post someone was having the same issues but it’s still saying it’s too big 🙁 please help
July 24, 2016 at 6:00 am #2725Jeremy WilliamsKeymasterSorry for the delay. Any progress? Can you link to the exact libraries you’re using?
July 24, 2016 at 1:27 pm #2726jamesbovey333ParticipantThanks for the reply Jeremy, yes I managed to get the script compiled in the end, I messed up with the adafruit library and used the wrong one! Just waiting for the rest of my LED strips before I can put it all together. Not entirely confident on the wiring of sd module, buttons and rtc but I’m guessing it’s the same as in adafruit tutorials for those modules. I see you have used pins 4/5 for buttons and pin 9 for cs on sd module. Do I need resistors for those or do they use resistors onboard? And do I need specific buttons for this? Sorry for all the questions, relatively new to programming and electronics so apologies if my questions are really simple. Once powered, and with game sketch loaded onto arduino, will the matrix display anything before I push in the loaded sd card. Many thanks for your support, genuinely appreciate it greatly
July 25, 2016 at 1:58 am #2728Jeremy WilliamsKeymasterBefore connecting an SD the display should show an SD error message, and you can also hold down both MENU and NEXT buttons when powering on to show some test colors.
Any buttons should work. As for the resistors, it’s probably easiest to just use the Adafruit SD adapter here:
https://www.adafruit.com/product/254
…and connect its pins directly to the appropriate pins on the Uno.
July 25, 2016 at 8:06 am #2729jamesbovey333ParticipantThanks Jeremy. Yes I have ordered and received the exact sd module from adafruit and also have the rtc module you suggested so I’m hoping it will all go together easily. I have some momentary buttons so planning to use them. Hopefully LEDs should arrive this week and I can get on with this 🙂 will purchase sd files ready. Thanks for all the help sir.
-
AuthorPosts
- The forum ‘Technical Support’ is closed to new topics and replies.