Changeset 847 for branches

Show
Ignore:
Timestamp:
10/17/07 22:35:04 (13 months ago)
Author:
volker
Message:

added new display 128x32 (CW12832)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/volker_dev/drv_Cwlinux.c

    r808 r847  
    8484 
    8585static MODEL Models[] = { 
     86    /* type, name, rows, cols, xres/char, yres/char, gpo's, gpi's, definable chars, protocol */ 
    8687    {0x01, "CW1602", 2, 16, 5, 7, 2, 2, 8, 1}, 
    8788    {0x02, "CW12232", 4, 20, 6, 8, 2, 2, 16, 2}, 
     89    {0x03, "CW12832", 4, 21, 6, 8, 2, 2, 16, 2}, 
    8890    {0xff, "Unknown", -1, -1, -1, -1, -1, -1, -1, -1} 
    8991}; 
     
    174176{ 
    175177    int i, j; 
    176     char cmd[10] = "\376Nn123456\375"; 
     178    char cmd[10] = "\376Nn123456\375";  /* 0xfe 'N' [1..16] (6 Bytes Data) 0xfd */ 
    177179 
    178180    cmd[2] = (char) ascii; 
     
    320322  return -1; 
    321323 
    322     /* read firmware version */ 
     324    /* read firmware version: 0xfe '1' 0xfd */ 
    323325    drv_generic_serial_write("\3761\375", 3); 
    324326    usleep(100000); 
     
    329331    } 
    330332 
    331     /* read model mumber */ 
     333    /* read model mumber: 0xfe 0x30 0xfd */ 
    332334    drv_generic_serial_write("\3760\375", 3); 
    333335    usleep(100000);