ok
I connect my lcd to the arduino bt in this way:
arduino bt <-> LCD
2 -> pin6
3 -> pin11 db4
4 -> pin12 db5
5 -> pin13 db6
6 -> pin14 db7
7 -
8 -
9 -
10 -
11 -> pin5
12 -> pin4
I also use a poten (1k) to regulare contrast
Now I changed this code:
- Code: Select all
//RS, RW and Enable can be set to whatever you like
int RS = 12;
int RW = 11;
int Enable = 2;
//DB should be an unseparated group of pins - because of lazy coding in pushNibble()
int DB[] = {7, 8, 9, 10}; //wire these to DB4~7 on LCD.
in this:
- Code: Select all
[code]//RS, RW and Enable can be set to whatever you like
int RS = 12;
int RW = 11;
int Enable = 2;
//DB should be an unseparated group of pins - because of lazy coding in pushNibble()
int DB[] = {3, 4, 5, 6}; //wire these to DB4~7 on LCD.[/code]
I upload and the led is ok, it blinks as in the code, but lcd is all with black blocks!
ps. every time I upload I have to reset my arduino bt. Then the commands are sent. Anyway there's always this errors: avrdude: stk500_paged_load(): (a) protocol error, expect=0x14, resp=0xcf
avrdude: stk500_cmd(): programmer is out of sync
what's wrong?
Thanks a lot