Nokia LCD on Arduino Mini Pro:SDATA has to be PWM or not?

hi fellas,
im working on a bluetooth wrist watch project.
here you can see some photos:
http://www.flickr.com/photos/mclightning/

It is almost finished but i have one problem left…
I tested Nokia LCD(Sparkfun Nok.Lcd) with Arduino Duemilenova it was working just fine…

Then i soldered circuit onto veroboard of my watch. But LCD didnt display :confused: It just lights up but no display what so ever…

Here how i connected LCD to Arduino Mini Pro:
#define CS 9
#define CLK 8
#define SDA 10
#define RESET 7

and here is the code :
http://pastebin.com/Sw13wdz5

I can't open the code file (proxy thing), but CLK & SDA sound like I2C lines - if so, those have to come from specific hardware pins, A4 & A5. How were they connected on the Duemilanove? If they worked with D7,8,9,10 there, they would work with D7,8,9,10 on the Promini as well.

on Arduino Duemilenova it was working as:

define CS 4

define CLK 5

define SDA 6

define RESET 7

on Pro Mini it is [u]not[/u] working (just powers up backlight) as :

define CS 9

define CLK 8

define SDA 10

define RESET 7

I tested those pins on Pro Mini. there is no misconnection :/ tested led blink by connecting 2 leds to 8-9 & 7-10 it worked just fine so i guess there is nothing wrong with soldering

none have an idea???

In void setup,

427. void setup() 
428.{ 
429.  DDRD |= B01111100;   // Set SPI pins as output 
430.  PORTD |= B01111100;  // Set SPI pins HIGH
 431. lcd_init();
 432.   delay(500);
 433.   lcd_clear(BLACK,0,0,131,131);
 434.   pinMode(1,OUTPUT);
 435.   pinMode(3,OUTPUT);
 436.   digitalWrite(1,LOW);
 437.   digitalWrite(3,HIGH);
 438. }

One usually uses pinMode to declare pins as inputs or outputs. You have nothing here for these pins, which may only mean I don't know much about cryptic C code. One of the reasonsI like the Arduino IDE, much easier to follow.

#define CS    9
#define CLK   8
#define SDA   10
#define RESET 7

Somehow the signals are tied in here also

#define CS0 cbi(PORTD,CS);
#define CS1 sbi(PORTD,CS);
#define CLK0 cbi(PORTD,CLK);
#define CLK1 sbi(PORTD,CLK);
#define SDA0 cbi(PORTD,SDA);
#define SDA1 sbi(PORTD,SDA);
#define RESET0 cbi(PORTD,RESET);
#define RESET1 sbi(PORTD,RESET);
#define BL0 cbi(PORTD,BL);
#define BL1 sbi(PORTD,BL);

So maybe thats the clue:

on Arduino Duemilenova it was working as:

define CS 4

define CLK 5

define SDA 6

define RESET 7

4-5-6-7 are all PortD pins

on Pro Mini it is not working (just powers up backlight) as :

define CS 9

define CLK 8

define SDA 10

define RESET 7

and 8-9-1 are PortB pins.

i guess you are right sir :slight_smile:
i did same pin connection on arduino duemilenova and it didnt work on duemilenova too :slight_smile:
i’ll change the pin connections on pro mini to the working combination asap and i’ll let you know the result :slight_smile:
Thank you so much for the help :slight_smile:

Glad to help.

thank you so much again :) i just tested on Arduino Mini Pro and it worked :)