No changes between revisions
/Designs/Data_loggers/GPSRL01B/SW/gpsrl.c |
---|
0,0 → 1,139 |
/**** GPS skrysohledac ****/ |
#define ID "$Id: gps.c 984 2008-01-06 23:41:31Z kakl $" |
#include "gpsrl.h" |
#include <math.h> |
#include <stdlib.h> |
#include <stdlibm.h> |
#define SCINTILAK 1 //kanal adc pro scintilacni detektor NB3201 |
#define RANGE PIN_A4 // vystup detektoru urcujici rozsah mereni. |
#define LCD_RS PIN_B1 // LCD control |
#define LCD_E PIN_B2 // LCD enable |
#define LCD_DATA_LSB PIN_B4 // LSB data bit LCD |
#include "MYLCD.C" |
#define TL1 PIN_C0 |
#define TL2 PIN_C1 |
#define TL3 PIN_C2 |
//$GPRMC,105815.503,V,4915.5877,N,01442.3896,E,0.0,0.00,060108,,,N*44 |
//$GPGGA,000415.000,4915.6225,N,01442.3608,E,1,03,50.0,409.6,M,45.2,M,0.0,0000*48 |
void main() |
{ |
setup_adc_ports(AN0); |
setup_adc(ADC_CLOCK_INTERNAL); |
setup_spi(FALSE); |
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
setup_timer_1(T1_DISABLED); |
setup_timer_2(T2_DISABLED,0,1); |
setup_comparator(NC_NC_NC_NC); |
setup_vref(VREF_LOW|-2); |
lcd_init(); |
delay_ms(100); |
lcd_gotoxy(5,1); |
printf(lcd_putc,"GPSRL01B \n"); |
printf(lcd_putc,"(c) Kaklik 2008"); |
delay_ms(300); |
printf(lcd_putc,"\f"); |
set_adc_channel(SCINTILAK); |
while(TRUE) |
{ |
char tab1[20]; |
char tab2[20]; |
char tab3[20]; |
char tab4[20]; |
char tab5[20]; |
int8 n; |
int16 intensity; |
char c; |
tab1[19]=0; |
tab2[19]=0; |
tab3[19]=0; |
tab4[19]=0; |
tab5[19]=0; |
while(fgetc(NMEA)!='$'); // Waiting for start character |
intensity=read_adc(); |
tab1[0]='$'; |
for(n=1;n<(19);n++) |
{ |
tab1[n]=fgetc(NMEA); |
}; |
for(n=0;n<(19);n++) |
{ |
tab2[n]=fgetc(NMEA); |
}; |
for(n=0;n<(19);n++) |
{ |
tab3[n]=fgetc(NMEA); |
}; |
for(n=0;n<(19);n++) |
{ |
c=fgetc(NMEA); |
if(c=='*') |
{ |
tab4[n]=0; |
tab5[0]=c; |
tab5[1]=fgetc(NMEA); |
tab5[2]=fgetc(NMEA); |
tab5[3]=0; |
goto tisk; |
}; |
tab4[n]=c; |
}; |
for(n=0;n<(19);n++) // Read line up to checksum |
{ |
c=fgetc(NMEA); |
if(c=='*') |
{ |
tab5[n]=c; |
tab5[n+1]=fgetc(NMEA); |
tab5[n+2]=fgetc(NMEA); |
tab5[n+3]=0; |
break; |
}; |
tab5[n]=c; |
}; |
tisk: |
printf(lcd_putc,"\f"); |
if(!input(TL1)) |
{ |
lcd_gotoxy(1,1); |
printf(lcd_putc,"%s\n",tab1); |
printf(lcd_putc,"%s",tab2); |
} |
else |
{ |
lcd_gotoxy(1,1); |
printf(lcd_putc,"%s\n",tab3); |
printf(lcd_putc,"%s",tab4); |
} |
puts(strcat(tab1,strcat(tab2,tab3)),PC); |
puts(strcat(tab4,tab5),PC); |
printf(" /%u/%Lu\n\r",input(RANGE), intensity); |
} |
} |
/Designs/Data_loggers/GPSRL01B/SW/gpsrl.hex |
---|
0,0 → 1,151 |
:1000000000308A00642A00000A108A100A11820750 |
:1000100028340C34013406340A108A100A1182077D |
:1000200047345034533452344C3430343134423405 |
:1000300020340A3400340A108A100A118207283446 |
:100040006334293420344B3461346B346C34693478 |
:100050006B342034323430343034383400340A10C5 |
:100060008A100A1182070C340034CE308400000854 |
:10007000031949280130F800F701F70B3D28F80B68 |
:100080003C284A30F700F70B432800000000800BA3 |
:100090003A28003406080F398316D500540EF700AD |
:1000A000F030F7057708F0395504831286000615FD |
:1000B000831606112130F700F70B5C288312061116 |
:1000C00083160611831200348316D208031D6C2890 |
:1000D000831286106E288316831286148316861068 |
:1000E000D30E5308D40083124A208316D30E53082C |
:1000F000D40083124A204230F700F70B7D2800001D |
:10010000003414308316CE00831235200F3083164E |
:1001100086058312861083168610831206118316B5 |
:100120000611CC014C08023C031CA2280230CE0070 |
:100130008312352003308316D40083124A2083169D |
:10014000CC0A92280D30F700F70BA4280230D40017 |
:1001500083124A200D30F700F70BAC288316CC0130 |
:100160004C08023C031CC6284C088312042083164A |
:10017000CD00D2014D08D3008312642002308316D3 |
:10018000CE00831235208316CC0AB02883128A1140 |
:100190000A12C72A013083164F02FC3E0318E328D7 |
:1001A000043E8312EF288316D001E32840308316E3 |
:1001B000D000E32814308316D000E328543083168F |
:1001C000D000E328831601304E02D0075008803853 |
:1001D000D100D2015108D3008312642000340A10E8 |
:1001E0008A100A118207D328D628DA28DE28831637 |
:1001F0004D080C3A831203190729063A03191329EB |
:10020000073A03191B29053A0319222929298316BC |
:10021000D2010130D3008312642002308316CE0055 |
:1002200083123520372901308316CE000230CF00EB |
:100230008312CA20372901308316CE00CF008312E3 |
:10024000CA2037298316D2011030D30083126420CC |
:10025000372983164D081F3C031C30290730CD0574 |
:100260000130D2004D08D3008312642037290034B6 |
:100270000830F70020172008831687008312071F15 |
:10028000432983163E298316CF01F7175729F71301 |
:10029000572903108312071B03148316CF0C7717FB |
:1002A00057297713F70B49294F08F80062293F3087 |
:1002B000F71B1130F800F80B5B29F71B4729771B58 |
:1002C000512949298312003483164D08CF004F0865 |
:1002D0008400800803196E29CF0A67294E0884001C |
:1002E000800803197E294E0884000008D1004F08B9 |
:1002F000840051088000CF0ACE0A6E294F0884007E |
:1003000080014D08F80083120034A01320088316E2 |
:100310008700831287130830F800000000000000F7 |
:10032000F817A329F8138316D50C8312031887171F |
:10033000031C87137817A3297813F80B932900005F |
:100340000000000087171C308400840BA5290000E2 |
:100350000000F81B9229781B9C2900348316500852 |
:10036000F8014F020318B7294F08F700C329F70116 |
:100370000830D100CF0DF70D500877020318F700B1 |
:10038000F80DD10BBA2983120034780883164D0872 |
:10039000CF006430D0008312AE2177088316CD00E1 |
:1003A00078083030031DDB29CE1CE429CE19E4295E |
:1003B0004E1A2030DE29CE114E124E14F80778085E |
:1003C000D5008312852183164D08CF000A30D00056 |
:1003D0008312AE2177088316CD0078083030031DD4 |
:1003E000F729CE19FD294E1CFD294E1A2030F80799 |
:1003F0007808D5008312852183163030CD074D084B |
:10040000D500831285218A110A12822C04088316D2 |
:10041000D4004E0EF038D000D007E23ED100323E7C |
:10042000D3004E080F39D107D107D307E93ED200D8 |
:10043000D207D2074D0E0F39D207D307D20DD30DF5 |
:10044000D309D30D4D080F39D307D00D0730CF0096 |
:100450000A30D307D203031C292AD207D103031C75 |
:100460002D2AD107D003031C312AD007CF03031C48 |
:10047000352ACF3084000730540554138407D33015 |
:100480000402031954170008F700031D4F2A541BD8 |
:100490004F2A541A5D2AD4194F2A2030522AD415D3 |
:1004A00054123030F707CE010408CD007708D5008C |
:1004B0008312852183164D088400840A541F3F2A25 |
:1004C00083128A110A12922CA701D730A600163087 |
:1004D0008316D700D901D801831284011F30830508 |
:1004E0008316051083120514A013200883168700B5 |
:1004F0008312871783161F149F141F159F1107302F |
:100500009C00FF308312A000A1010130A200A301D2 |
:10051000A401A50183161F109F141F159F151F13FB |
:1005200083121F179F1783169F1783121F1494128D |
:10053000A012200883168700831220162008831635 |
:1005400087008312A01120088316870000308312D1 |
:100550009400831694000108C7390838810083127B |
:1005600090010030F80092000030831692000730AE |
:100570009C0005080330F700F70BBC2A1C08831207 |
:100580000D13FE3083169D000515831281286430FB |
:100590008316CE008312352005308316CE0001303D |
:1005A000CF008312CA20E80168080C200038031924 |
:1005B000DF2AE80A8316CD008312F720D42AE80147 |
:1005C00068081B2000380319EB2AE80A8316CD00BF |
:1005D0008312F720E02A0230E80096308316CE001E |
:1005E00083123520E80BED2AE80168082F20003837 |
:1005F0000319002BE80A8316CD008312F720F52A91 |
:100600000830F8001F08C73978049F00BB01CF01EC |
:10061000E3018316B301C701831238217808243C13 |
:100620000319142B83160C2B1F151F19152B83165A |
:100630001E088312E5001E08E6002430A8000130E1 |
:10064000E4006408123C031C302B2830640784004B |
:10065000E90038216908840078088000E40A212B29 |
:10066000E4016408123C031C402B3C306407840006 |
:10067000E90038216908840078088000E40A312BF9 |
:10068000E4016408123C031C502B503064078400C2 |
:10069000E90038216908840078088000E40A412BC9 |
:1006A000E4016408123C031C772B38217808E7002A |
:1006B00067082A3C031D702BA0306407840080016A |
:1006C00067088316B4008312382178088316B500B2 |
:1006D0008312382178088316B600B701AA2B83123B |
:1006E000A0306407840067088000E40A512BE4010D |
:1006F0006408123C031CA92B38217808E70067081E |
:100700002A3C031DA22BB4306407840067088000D4 |
:1007100001306407B43E8400EA0038216A0884008E |
:100720007808800002306407B43E8400EA00382173 |
:100730006A0884007808800003306407B43E8400AF |
:100740008001A92BB4306407840067088000E40AA4 |
:10075000782B83168312E80168082F2000380319CC |
:10076000B72BE80A8316CD008312F720AC2B201498 |
:1007700020088316870083120718EC2B013083169C |
:10078000CE00CF008312CA2028308400003000043D |
:100790000319D52B0408E80000088316CD00831246 |
:1007A000F72068088400840AC62B0A308316CD001F |
:1007B0008312F7203C308400003000040319EB2B37 |
:1007C0000408E80000088316CD008312F7206808AB |
:1007D0008400840ADC2B192C01308316CE00CF0054 |
:1007E0008312CA2050308400003000040319032C07 |
:1007F0000408E80000088316CD008312F72068087B |
:100800008400840AF42B0A308316CD008312F7206B |
:10081000A0308400003000040319192C0408E800FB |
:1008200000088316CD008312F72068088400840A2C |
:100830000A2C3C308316CD005030CE008312642148 |
:100840007808E80028308316CD00831278088316D4 |
:10085000CE00831264217808E9008400003000048F |
:1008600003193D2C0408EA0000088316D500831202 |
:1008700085216A088400840A2E2C0D308316D50049 |
:10088000831285210A308316D50083128521A0307A |
:100890008316CD00B430CE00831264217808E800BE |
:1008A0008400003000040319602C0408E9000008EB |
:1008B0008316D5008312852169088400840A512C8F |
:1008C0000D308316D500831285210A308316D5009A |
:1008D000831285218316051600308312051A013014 |
:1008E000E80020308316D500831285212F3083162F |
:1008F000D5008312852168088316CD001B30CE00F9 |
:100900008312C5292F308316D5008312852110301C |
:10091000840066088316CE00831265088316CD0016 |
:100920008312062A0A308316D500831285210D30E2 |
:0C0930008316D50083128521062B63007E |
:02400E00393F38 |
:00000001FF |
;PIC16F876A |
/Designs/Data_loggers/GPSRL01B/SW/gpsrl.h |
---|
0,0 → 1,16 |
#include <16F876A.h> |
#device adc=10 |
#FUSES NOWDT //No Watch Dog Timer |
#FUSES XT //Osc (= 4mhz) |
#FUSES NOPUT //No Power Up Timer |
#FUSES NOPROTECT //Code not protected from reading |
#FUSES NODEBUG //No Debug mode for ICD |
#FUSES NOBROWNOUT //No brownout reset |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
#FUSES NOCPD //No EE protection |
#FUSES NOWRT //Program memory not write protected |
#use delay(clock=4000000) |
#use rs232(stream=NMEA,baud=4800,parity=N,rcv=PIN_C6,bits=8) |
#use rs232(stream=PC,baud=9600,parity=N,xmit=PIN_C7,bits=8) |
/Designs/Data_loggers/GPSRL01B/SW/MYLCD.C |
---|
0,0 → 1,278 |
// LCD modul pro ovladani dvouradkoveho LCD modulu se standardnim Hitachi radicem |
// (c)miho 2002 |
// |
// Historie: |
// |
// 0.0 Uvodni verze se snadnou definici portu LCD displeje |
// |
// |
// Funkce: |
// |
// lcd_init() inicializuje LCD displej a porty, nutno volat jako prvni |
// |
// lcd_putc(c) zapis snaku do lcd displeje, zpracovava nasledujici ridici znaky |
// \f = \x0C - nova stranka - smazani displeje |
// \n = \x0A - odradkovani (prechod na druhou radku) |
// \b = \x08 - backspace - posunuti kurzoru o 1 pozici zpet |
// \r = \x0D - goto home to position 1,1 |
// \0 .. \7 - definovatelne znaky v pozicich 0 az 7 v CGRAM |
// \20 .. \27 - alternativne zapsane znaky (oktalove) v pozicich 0 az 7 CGRAM |
// Pozor na to, ze funkce printf konci tisk pokud narazi na \0 (konec retezce) |
// |
// lcd_gotoxy(x,y) presune kurzor na uvedenou adresu |
// nekontroluje parametry |
// |
// lcd_cursor_on zapne kurzor |
// lcd_cursor_off vypne kurzor |
// |
// lcd_define_char(Index, Def) Makro, ktere definuje znaky od pozice Index obsahem definicniho |
// retezce Def. Kazdych 8 znaku retezce Def definuje dalsi znak v CGRAM. |
// Kapacita CGRAM je celkem 8 znaku s indexem 0 az 7. |
// Na konci se provede lcd_gotoxy(1,1). |
// Na konci teto knihovny je priklad pouziti definovanych znaku |
// |
// Definice portu: |
// |
// #DEFINE LCD_RS PIN_B2 // rizeni registru LCD displeje |
// #DEFINE LCD_E PIN_B1 // enable LCD displeje |
// #DEFINE LCD_DATA_LSB PIN_C2 // pripojeni LSB bitu datoveho portu LCD displeje (celkem 4 bity vzestupne za sebou) |
// Privatni sekce, cist jen v pripade, ze neco nefunguje |
// Generovane defince portu pro ucely teto knihovny aby kod generoval spravne IO operace a soucasne |
// bylo mozne jednoduse deklarovat pripojene piny LCD displeje pri pouziti teto knihovny. Problem spociva |
// v tom, ze se musi spravne ridit smery portu a soucasne datovy port zabira jen 4 bity ze zadaneho portu |
// |
#DEFINE LCD_SHIFT (LCD_DATA_LSB&7) // pocet bitu posuvu dataoveho kanalu v datovem portu |
#DEFINE LCD_PORT (LCD_DATA_LSB>>3) // adresa LCD datoveho portu |
#DEFINE LCD_TRIS (LCD_PORT+0x80) // adresa prislusneho TRIS registru |
#DEFINE LCD_MASK (0xF<<LCD_SHIFT) // maska platnych bitu |
// |
#IF LCD_SHIFT>4 // kontrola mezi |
#ERROR LCD data port LSB bit not in range 0..4 |
#ENDIF |
// Definice konstant pro LCD display |
// |
#define LCD_CURSOR_ON_ 0x0E // kurzor jako blikajici radka pod znakem |
#define LCD_CURSOR_OFF_ 0x0C // zadny kurzor |
#define LCD_LINE_2 0x40 // adresa 1. znaku 2. radky |
// Definice rezimu LCD displeje |
// |
BYTE const LCD_INIT_STRING[4] = |
{ |
0x28, // intrfejs 4 bity, 2 radky, font 5x7 |
LCD_CURSOR_OFF_, // display on, kurzor off, |
0x01, // clear displeje |
0x06 // inkrement pozice kurzoru (posun kurzoru doprava) |
}; |
// Odesle nibble do displeje (posle data a klikne signalem e) |
// |
void lcd_send_nibble( BYTE n ) |
{ |
*LCD_PORT = (*LCD_PORT & ~LCD_MASK) | ((n << LCD_SHIFT) & LCD_MASK); // nastav datove bity portu a ostatni zachovej |
output_bit(LCD_E,1); // vzestupna hrana |
delay_us(100); // pockej alespon 450ns od e nebo alespon 195ns od dat |
output_bit(LCD_E,0); // sestupna hrana (minimalni perioda e je 1us) |
} |
// Odesle bajt do registru LCD |
// |
// Pokud je Adr=0 .. instrukcni registr |
// Pokud je Adr=1 .. datovy registr |
// |
void lcd_send_byte( BOOLEAN Adr, BYTE n ) |
{ |
output_bit(LCD_RS,Adr); // vyber registr |
swap(n); |
lcd_send_nibble(n); // posli horni pulku bajtu |
swap(n); |
lcd_send_nibble(n); // posli spodni pulku bajtu |
delay_us(200); // minimalni doba na provedeni prikazu |
} |
// Provede inicializaci LCD displeje, smaze obsah a nastavi mod displeje |
// |
// Tato procedura se musi volat pred pouzitim ostatnich lcd_ procedur |
// |
void lcd_init() |
{ |
int i; // pocitadlo cyklu |
delay_ms(20); // spozdeni pro provedeni startu displeje po zapnuti napajeni |
*LCD_TRIS = *LCD_TRIS & ~LCD_MASK; // nuluj odpovidajici bity tris registru datoveho portu LCD |
output_bit(LCD_RS,0); // nastav jako vystup a nastav klidovy stav |
output_bit(LCD_E,0); // nastav jako vystup a nastav klidovy stav |
for (i=0; i<3; i++) // nastav lcd do rezimu 8 bitu sbernice |
{ |
delay_ms(2); // muze byt rozdelany prenos dat (2x 4 bity) nebo pomaly povel |
lcd_send_nibble(3); // rezim 8 bitu |
} |
delay_us(40); // cas na zpracovani |
lcd_send_nibble(2); // nastav rezim 4 bitu (plati od nasledujiciho prenosu) |
delay_us(40); // cas na zpracovani |
for (i=0;i<3;i++) // proved inicializaci (nastaveni modu, smazani apod) |
{ |
lcd_send_byte(0,LCD_INIT_STRING[i]); |
delay_ms(2); |
} |
} |
// Proved presun kurzoru |
// |
// Pozice 1.1 je domu |
// |
#separate |
void lcd_gotoxy( BYTE x, BYTE y) |
{ |
BYTE Adr; |
switch(y) |
{ |
case 1: Adr=0; break; |
case 2: Adr=0x40; break; |
case 3: Adr=0x14; break; |
case 4: Adr=0x54; break; |
} |
Adr+=x-1; |
lcd_send_byte(0,0x80|Adr); |
} |
// Zapis znaku na displej, zpracovani ridicich znaku |
// |
#separate |
void lcd_putc( char c) |
{ |
switch (c) |
{ |
case '\f' : lcd_send_byte(0,1); // smaz displej |
delay_ms(2); |
break; |
case '\n' : lcd_gotoxy(1,2); break; // presun se na 1. znak 2. radky |
case '\r' : lcd_gotoxy(1,1); break; // presun home |
case '\b' : lcd_send_byte(0,0x10); break; // posun kurzor o 1 zpet |
default : if (c<0x20) c&=0x7; // preklopeni definovatelnych znaku na rozsah 0 az 0x1F |
lcd_send_byte(1,c); break; // zapis znak |
} |
} |
// Zapni kurzor |
// |
void lcd_cursor_on() |
{ |
lcd_send_byte(0,LCD_CURSOR_ON_); |
} |
// Vypni kurzor |
// |
void lcd_cursor_off() |
{ |
lcd_send_byte(0,LCD_CURSOR_OFF_); |
} |
// Definice vlastnich fontu |
// |
// Vlastnich definic muze byt jen 8 do pozic 0 az 7 pameti CGRAM radice lcd displeje |
// Pro snadne definovani jsou pripraveny nasledujici definice a na konci souboru je uveden |
// priklad pouziti definovanych znaku. |
// Pomocna procedura pro posilani ridicich dat do radice displeje |
// |
void lcd_putc2(int Data) |
{ |
lcd_send_byte(1,Data); |
} |
// Pomocne definice pro programovani obsahu CGRAM |
// |
#DEFINE lcd_define_start(Code) lcd_send_byte(0,0x40+(Code<<3)); delay_ms(2) |
#DEFINE lcd_define_def(String) printf(lcd_putc2,String); |
#DEFINE lcd_define_end() lcd_send_byte(0,3); delay_ms(2) |
// Vlastni vykonne makro pro definovani fontu do pozice Index CGRAM s definicnim retezcem Def |
// |
#DEFINE lcd_define_char(Index, Def) lcd_define_start(Index); lcd_define_def(Def); lcd_define_end(); |
// Pripravene definice fontu vybranych znaku |
// V tabulce nesmi byt 00 (konec retezce v printf()), misto toho davame 80 |
// |
#DEFINE LCD_CHAR_BAT100 "\x0E\x1F\x1F\x1F\x1F\x1F\x1F\x1F" /* symbol plne baterie */ |
#DEFINE LCD_CHAR_BAT50 "\x0E\x1F\x11\x11\x13\x17\x1F\x1F" /* symbol polovicni baterie */ |
#DEFINE LCD_CHAR_BAT0 "\x0E\x1F\x11\x11\x11\x11\x11\x1F" /* symbol vybite baterie */ |
#DEFINE LCD_CHAR_LUA "\x04\x0E\x11\x11\x1F\x11\x11\x80" /* A s carkou */ |
#DEFINE LCD_CHAR_LLA "\x01\x02\x0E\x01\x1F\x11\x0F\x80" /* a s carkou */ |
#DEFINE LCD_CHAR_HUC "\x0A\x0E\x11\x10\x10\x11\x0E\x80" /* C s hackem */ |
#DEFINE LCD_CHAR_HLC "\x0A\x04\x0E\x10\x10\x11\x0E\x80" /* c s hackem */ |
#DEFINE LCD_CHAR_HUD "\x0A\x1C\x12\x11\x11\x12\x1C\x80" /* D s hackem */ |
#DEFINE LCD_CHAR_HLD "\x05\x03\x0D\x13\x11\x11\x0F\x80" /* d s hackem */ |
#DEFINE LCD_CHAR_LUE "\x04\x1F\x10\x10\x1E\x10\x1F\x80" /* E s carkou */ |
#DEFINE LCD_CHAR_LLE "\x01\x02\x0E\x11\x1F\x10\x0E\x80" /* e s carkou */ |
#DEFINE LCD_CHAR_HUE "\x0A\x1F\x10\x1E\x10\x10\x1F\x80" /* E s hackem */ |
#DEFINE LCD_CHAR_HLE "\x0A\x04\x0E\x11\x1F\x10\x0E\x80" /* e s hackem */ |
#DEFINE LCD_CHAR_LUI "\x04\x0E\x04\x04\x04\x04\x0E\x80" /* I s carkou */ |
#DEFINE LCD_CHAR_LLI "\x02\x04\x80\x0C\x04\x04\x0E\x80" /* i s carkou */ |
#DEFINE LCD_CHAR_HUN "\x0A\x15\x11\x19\x15\x13\x11\x80" /* N s hackem */ |
#DEFINE LCD_CHAR_HLN "\x0A\x04\x16\x19\x11\x11\x11\x80" /* n s hackem */ |
#DEFINE LCD_CHAR_LUO "\x04\x0E\x11\x11\x11\x11\x0E\x80" /* O s carkou */ |
#DEFINE LCD_CHAR_LLO "\x02\x04\x0E\x11\x11\x11\x0E\x80" /* o s carkou */ |
#DEFINE LCD_CHAR_HUR "\x0A\x1E\x11\x1E\x14\x12\x11\x80" /* R s hackem */ |
#DEFINE LCD_CHAR_HLR "\x0A\x04\x16\x19\x10\x10\x10\x80" /* r s hackem */ |
#DEFINE LCD_CHAR_HUS "\x0A\x0F\x10\x0E\x01\x01\x1E\x80" /* S s hackem */ |
#DEFINE LCD_CHAR_HLS "\x0A\x04\x0E\x10\x0E\x01\x1E\x80" /* s s hackem */ |
#DEFINE LCD_CHAR_HUT "\x0A\x1F\x04\x04\x04\x04\x04\x80" /* T s hackem */ |
#DEFINE LCD_CHAR_HLT "\x0A\x0C\x1C\x08\x08\x09\x06\x80" /* t s hackem */ |
#DEFINE LCD_CHAR_LUU "\x02\x15\x11\x11\x11\x11\x0E\x80" /* U s carkou */ |
#DEFINE LCD_CHAR_LLU "\x02\x04\x11\x11\x11\x13\x0D\x80" /* u s carkou */ |
#DEFINE LCD_CHAR_CUU "\x06\x17\x11\x11\x11\x11\x0E\x80" /* U s krouzkem */ |
#DEFINE LCD_CHAR_CLU "\x06\x06\x11\x11\x11\x11\x0E\x80" /* u s krouzkem */ |
#DEFINE LCD_CHAR_LUY "\x02\x15\x11\x0A\x04\x04\x04\x80" /* Y s carkou */ |
#DEFINE LCD_CHAR_LLY "\x02\x04\x11\x11\x0F\x01\x0E\x80" /* y s carkou */ |
#DEFINE LCD_CHAR_HUZ "\x0A\x1F\x01\x02\x04\x08\x1F\x80" /* Z s hackem */ |
#DEFINE LCD_CHAR_HLZ "\x0A\x04\x1F\x02\x04\x08\x1F\x80" /* z s hackem */ |
// Priklad pouziti definovanych znaku |
// |
// |
//void lcd_sample() |
//{ |
// lcd_define_char(0,LCD_CHAR_BAT50); // Priklad definice znaku baterie do pozice 0 |
// lcd_define_char(2,LCD_CHAR_HLE LCD_CHAR_LUI); // Priklad definice znaku e s hackem a I s carkou od pozice 2 |
// // vsimnete si, ze neni carka mezi retezci s definici (oba retezce definuji |
// // jediny definicni retezec) |
// printf(lcd_putc,"\fZnaky:\20\22\23"); // priklad vypisu znaku z pozice 0, 2 a 3 |
// delay_ms(1000); |
// lcd_define_char(0,LCD_CHAR_BAT0); // Predefinovani tvaru znaku v pozici 0 |
// delay_ms(1000); |
//} |
/Designs/Data_loggers/GPSRL01B/SW |
---|
Property changes: |
Added: svn:ignore |
+*.lst |
+*.sta |
+*.tre |
+*.sym |
+*.BAK |
+*.err |