i wanted simplify wiring 5110. i have been using 5110 years , modified library @ outset i'm not sure did. new wiring is
8 9 10 11 12
clk din dc ce rst
and have lines 28 32:-
i nothing on display. don't know if have missed or have mental block. first assumed wiring wasn't kosher have installed little clock programme not use library, , works ok know shield fine.
8 9 10 11 12
clk din dc ce rst
and have lines 28 32:-
code: [select]
class pcd8544: public print {
public:
// pins can changed default values...
pcd8544(unsigned char sclk = 8, /* clock (display pin 5) */
unsigned char sdin = 9, /* data-in (display pin 4) */
unsigned char dc = 10, /* data select (display pin 3) */
unsigned char sce = 11, /* enable (display pin 2) */
unsigned char reset = 12); /* reset (display pin 1) */
i nothing on display. don't know if have missed or have mental block. first assumed wiring wasn't kosher have installed little clock programme not use library, , works ok know shield fine.
ok, delete if knew how. problem, interested, order of pin assigment. last 2 lines of above code should swapped to
code: [select]
unsigned char reset = 12); /* reset (display pin 1) */
unsigned char sce = 11, /* enable (display pin 2) */
Arduino Forum > Using Arduino > Displays > Editing PCD8544.h (Solved)
arduino
Comments
Post a Comment