having trouble with Arduino
Posted: Fri Nov 04, 2011 3:59 pm
I can't seem to get the logging to work. I just got one of the USB cables you suggested, I have arduino set at 9600 baud, and for board, I am not sure which one to pick. Here is a copy of messages I am getting: Do I need to make adjustments to the sketch? Part of it is highlighted in yellow: not sure what I am suppose to do with that.
if (count < UINT16_MAX) // check for overflow, if we do overflow just cap the counts at max possible
sketch_oct28b_MightyOhm.cpp: In function 'void __vector_1()':
sketch_oct28b_MightyOhm:226: error: 'UINT16_MAX' was not declared in this scope
sketch_oct28b_MightyOhm.cpp: In function 'void __vector_17()':
sketch_oct28b_MightyOhm:306: error: 'UINT8_MAX' was not declared in this scope
sketch_oct28b_MightyOhm.cpp: In function 'void uart_putchar(char)':
sketch_oct28b_MightyOhm:370: error: 'UCSRA' was not declared in this scope
sketch_oct28b_MightyOhm:370: error: 'UDRE' was not declared in this scope
sketch_oct28b_MightyOhm:372: error: 'UDR' was not declared in this scope
sketch_oct28b_MightyOhm.cpp: In function 'int main()':
sketch_oct28b_MightyOhm:594: error: 'UBRRH' was not declared in this scope
sketch_oct28b_MightyOhm:596: error: 'UBRRL' was not declared in this scope
sketch_oct28b_MightyOhm:602: error: 'UCSRB' was not declared in this scope
sketch_oct28b_MightyOhm:602: error: 'RXEN' was not declared in this scope
sketch_oct28b_MightyOhm:602: error: 'TXEN' was not declared in this scope
sketch_oct28b_MightyOhm:630: error: 'GIMSK' was not declared in this scope
sketch_oct28b_MightyOhm:652: error: 'TIMSK' was not declared in this scope
if (count < UINT16_MAX) // check for overflow, if we do overflow just cap the counts at max possible
sketch_oct28b_MightyOhm.cpp: In function 'void __vector_1()':
sketch_oct28b_MightyOhm:226: error: 'UINT16_MAX' was not declared in this scope
sketch_oct28b_MightyOhm.cpp: In function 'void __vector_17()':
sketch_oct28b_MightyOhm:306: error: 'UINT8_MAX' was not declared in this scope
sketch_oct28b_MightyOhm.cpp: In function 'void uart_putchar(char)':
sketch_oct28b_MightyOhm:370: error: 'UCSRA' was not declared in this scope
sketch_oct28b_MightyOhm:370: error: 'UDRE' was not declared in this scope
sketch_oct28b_MightyOhm:372: error: 'UDR' was not declared in this scope
sketch_oct28b_MightyOhm.cpp: In function 'int main()':
sketch_oct28b_MightyOhm:594: error: 'UBRRH' was not declared in this scope
sketch_oct28b_MightyOhm:596: error: 'UBRRL' was not declared in this scope
sketch_oct28b_MightyOhm:602: error: 'UCSRB' was not declared in this scope
sketch_oct28b_MightyOhm:602: error: 'RXEN' was not declared in this scope
sketch_oct28b_MightyOhm:602: error: 'TXEN' was not declared in this scope
sketch_oct28b_MightyOhm:630: error: 'GIMSK' was not declared in this scope
sketch_oct28b_MightyOhm:652: error: 'TIMSK' was not declared in this scope