I downloaded the zip sketch files and installed the Arduino 0018. I go to the sketch button then add file and loaded the Makefile file. Press play and it asked for main.c file and tried to compile it. It said it needed one of the other files. :roll: After awhile I figured it out that I needed to load them all. :idea: Then when I press the play button it gives me am error in the for loop in the ADXL345.c file stating :?
"In function āadxl345_readā:
error: āforā loop initial declaration used outside C99 mode In function āadxl345_writeā:".
So I found help files saying that you canāt declare a variable inside a function. :shock: So I move the āint bit=7ā on line 45 before the āforā and fix the adxl345_write function too. 8)
So now it compiles further and hangs up in āfat.cā with a :?:
In function āfat_append_clustersā:
error: āforā loop initial declaration used outside C99 mode In function āfat_interpret_dir_entryā:
In function āfat_write_dir_entryā:
In function āfat_get_fs_free_16_callbackā:
In function āfat_get_fs_free_32_callbackā:
Now this for loop is much more complex and Iām starting to think I must have something set up wrong but cant find it. I know the Eval board works. I just cant compile the code that was associated with it.
Will this code work with an older version? :x
Do i need to apply the files in a certain way or place? :oops:
Please help! I keep reading and reading to figure this out but I canāt. If I could just compile the files that came with it I would feel free to experiment but If I burn blink to this board and cant reload the accelerometer function I wont do it. :lol: