DDRE and DDRJ not declared within the scope

I am using ADB to communicate with android app to arduino uno board..

But when i compile the program its giving DDRE AND DDRJ not declared within the scope..

http://english.cxem.net/arduino/arduino1.php I am using the code from this site and i feel the problem is with adb library... Please help

DDRx usually means Direct Data Register for port x. Uno only has ports A,B,C,D. Arduino Mega ADK has higher letter ports, up to L or M I think, have to check the '2560 data sheet.

this is how my problem looks

Do you have the correct board selected?

Yup...I am using Arduino Uno with WiFi shield....

ssprasad1992: I am using the code from this site and i feel the problem is with adb library...

It is. The Uno does not have a DDRE or a DDRJ register.

Try the MicroBridge library from here... http://code.google.com/p/microbridge/

The problem persists....Same error

DDRE &= ~ 0x40; DDRJ &= ~ 0x08; DDRJ |= 0x04;

The error is with this in function void max3421e_init()...How can i modify this for my uno

You are trying to run software intended for a device with more hardware on microprocessor with less hardware. UNO pin map - DDRA, DDRB, DDRC, DDRD supported http://www.arduino.cc/en/Reference/Atmega8Hardware

Mega/ADK pin map - DDRA, DDRB, DDRC, DDRD, DDRE, DDRF, DDRG, DDRH, DDRI, DDRJ, DDRK, DDRL supported http://arduino.cc/en/Hacking/PinMapping2560

DDRE 0x40 refers to Port E bit 6 DDRJ 0x08 refers to Port J bit 3 DDRJ 0x04 refers to Port J bit 2

So you need to move those IO pins to pins that your Uno supports within Ports A,B,C,D and change the the DDRE & DDRJ references accordingly.