P.Copper
Member level 5
- Joined
- Mar 18, 2013
- Messages
- 82
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,807
Hi all,
I recently bought a 16x4 LCD, can anyone post an LCD code snippet for dspic30f so that i can test whether it is working or not. thanks
i got the below code from microelectronika but when i paste it in my compiler my previous code (for other function) becomes all errors
I recently bought a 16x4 LCD, can anyone post an LCD code snippet for dspic30f so that i can test whether it is working or not. thanks
i got the below code from microelectronika but when i paste it in my compiler my previous code (for other function) becomes all errors
Code:
[B]program LCD8bitTest[/B][B]
[B]dim txt [B]as string[10]
main:
ADPCFG = $FFFF [I]' PORTB to be digital
Lcd8_Init(PORTB, 7, 6, 5, 4, 3, 2, 1, 0, PORTD, 0, 1, 2)
Lcd8_Cmd(LCD_CURSOR_OFF)
Lcd8_Cmd(LCD_CLEAR)
Lcd8_Out(1, 1, "mikroElektronika")
Lcd8_Out(2, 1, "2x16 LCD Testing") [/I][/B][/B][/B][B][B][B][I][B]end.
[/B][/I][/B][/B][/B]