I am making the Snake on LED matrix http://www.instructables.com/id/Snake-on-LED-MATRIX-BT/?ALLSTEPS But when I upload your code into my arduino uno r3, it return the errors :
sketch\main.c: In function 'main':
main.c:358: error: '__UBRR' undeclared (first use in this function)
uart_init(__UBRR);
^
sketch\main.c:358:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:358: error: too many arguments to function 'uart_init'
uart_init(__UBRR);
^
In file included from sketch\main.c:13:0:
sketch\uart.h:15:6: note: declared here
void uart_init(void);
^
exit status 1 '__UBRR' undeclared (first use in this function)
Super projekty. Gratuluję pomysłów i realizacji.
OdpowiedzUsuńHi there,
OdpowiedzUsuńI am making the Snake on LED matrix http://www.instructables.com/id/Snake-on-LED-MATRIX-BT/?ALLSTEPS
But when I upload your code into my arduino uno r3, it return the errors :
sketch\main.c: In function 'main':
main.c:358: error: '__UBRR' undeclared (first use in this function)
uart_init(__UBRR);
^
sketch\main.c:358:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:358: error: too many arguments to function 'uart_init'
uart_init(__UBRR);
^
In file included from sketch\main.c:13:0:
sketch\uart.h:15:6: note: declared here
void uart_init(void);
^
exit status 1
'__UBRR' undeclared (first use in this function)
Please help.