Thread Device::SerialPort und lcd programmierung (Ezio) (17 answers)
Opened by mark05 at 2011-11-03 16:44

GwenDragon
 2011-11-03 18:18
#153836 #153836
User since
2005-01-17
14746 Artikel
Admin1
[Homepage]
user image
Statt
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
my $ezio = {
                cmd=> chr hex ( '0xFE' ),
                init=> chr hex ( '0x28' ),
                stopsend=>chr hex ( '0x37' ),
                cls=> chr ( 1 ) ,
                home=> chr ( 2 ),
                blank=> chr  ( 8 ),
                hide=>chr hex ( '0x0C' ),
};
kannst du so schreiben:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
my $ezio = {
                cmd=>      "\xFE",
                init=>     "\x28",
                stopsend=> "\x37",
                cls=>      "\x01",
                home=>     "\x02",
                blank=>    "\x08",
                hide=>     "\x0C",
};

View full thread Device::SerialPort und lcd programmierung (Ezio)