Hey there, I am doing a mini project on led cube, which makes use of atmel atmega 16 IC. So the programming part is getting difficult on my side, as there are some errors shown in the program and i am unable to solve those.
I compiled this program (which i have attached along with this forum as program.docx) on ARDUINO software. The errors shown to me are as follows:-
sketch_oct06a:5: error: ‘::main’ must return ‘int’
sketch_oct06a:4: error: ‘::main’ must return ‘int’
sketch_oct06a.ino: In function ‘int main()’:
sketch_oct06a:7: error: ‘DDRA’ was not declared in this scope
sketch_oct06a:16: error: ‘PORTA’ was not declared in this scope
sketch_oct06a:79: error: ‘PORTA’ was not declared in this scope
sketch_oct06a:103: error: ‘PORTA’ was not declared in this scope
sketch_oct06a:149: error: ‘PORTA’ was not declared in this scope
sketch_oct06a:182: error: ‘PORTA’ was not declared in this scope
So please help me out solve the following errors.
And please suggest me how do i burn my atmel atmega 16 IC. As i searched on net it said that there is no specific arduino kit available for burning of IC atmel atmega 16.
My local electronic component provider said that there is some kit available known as SP-200. Should i buy it or is there some other procedure to burn IC atmel atmega 16 ? please do suggest. Thankyou
At least some of the errors, those concerning ports and registers is probably caused by the fact that the micro that you are using does not have those ports and registers.