Can't do first tutorial please help


#1

I’m trying to do the first tutorial where you make sparki move forward but when I type the code from the tutorial it says “Sparki_program_test1:6: error: ‘class SparkiClass’ has no member named ‘moveFoward’”

I tried copying it straight from the tutorial but then it said “stray ‘/302’ in program”

What am I doing wrong? Any help is greatly appreciated! :smiley: :smiley: :smiley:


#2

Have you made you’re selecting Sparki as your Board before you compile?
arcbotics.com/lessons/uploading- … arkiduino/

Have you tried using the ‘Download Code’ files directly, rather than copy-pasting? There might be a part you’re accidentally leaving out in the copy-paste process:
github.com/ArcBotics/Sparki/blo … p?raw=true
github.com/ArcBotics/Sparki/blo … p?raw=true

Try using the ‘Wheels’ example in SparkiDuino - that code is known to work, so it’s a good place to see if the problem is the code, or maybe something else with how SparkiDuino is set up.