Gast
#11643
Hallo
Mit dem Code Vision Compiler einen Text am LCD anzeigen zu lassen
schaff' mittlerweile sogar ich, aber wie kann ich z. Bsp einen String
von der sereillen Schnittstelle als Dezimalzahl ans Display senden????
Bisher schaut das Programm so aus (ist nur das Beispielprogramm von code
vision)
// the LCD is connected to PORTC outputs
// see the file lcd.h in the ..\inc directory
#asm
.equ __lcd_port=0x18 ;PORTD
#endasm
#include <lcd.h> // LCD driver routines
#include <delay.h>
#include <math.h>
#include <stdio.h>
void main(void)
{
unsigned char i;
// initialize the LCD for
// 2 lines & 16 columns
lcd_init(16);
// go on the second LCD line
lcd_gotoxy(0,1);
sprintf(lcd_buffer,"Device #%-u ROM\nCode is:",i+1);
lcd_clear();
lcd_puts(lcd_buffer);
// display the message
lcd_putsf("Hello world");
// stop here
while (1);
}
Wär's uper wenn ihr mir auf die Sprünge helfen könnt!!
Danke
Christian