amirtebyan / slide-33

Automatically exported from code.google.com/p/slide-33
0 stars 0 forks source link

Code doesn't compile on ATmega32U4 Arduino Based #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dynamixel_Serial.cpp: In member function 'void 
DynamixelClass::transmitInstructionPacket()':
Dynamixel_Serial.cpp:94: error: 'UCSR0A' was not declared in this scope

To reproduce bug you don't need actually have ATmega32U4 
just select in Tools->Board->Arduino Micro/Leonardo/Esplora ...
And click compile

Please fix it. It will be very awesome if your library will work on ATmega32U4 
based Arduino because of Serial1 port.

Thank you.

Original issue reported on code.google.com by Chlen.Ni...@gmail.com on 12 Jun 2013 at 9:38

GoogleCodeExporter commented 8 years ago
As ATmega32U4 datasheet, USART Control and Status Register is "UCSRA".
However, "UCSRA" had defined "UCSR1A" on Arduino IDE (iom32u4.h). 
Please fix attach this file, you will compile and go.

Original comment by miura.t...@gmail.com on 20 Apr 2014 at 12:57

Attachments:

GoogleCodeExporter commented 8 years ago
thank you very much, can you read data (angle/position) from servo with this 
fix on ATmega32U4?

Original comment by Chlen.Ni...@gmail.com on 20 Apr 2014 at 2:39