| Author |
Message |
hakan
Joined: 20 Feb 2002 Posts: 50
|
22 Mar 2003 21:39 hitech picc question |
|
|
|
|
hi,
i use hitec picc
when i have only one device (like lcd) i can use printf function. but when i have two device how can i select the device? i want to use printf function with bouth of them.
|
|
| Back to top |
|
 |
Google AdSense

|
22 Mar 2003 21:39 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
year
Joined: 21 Feb 2002 Posts: 101
|
23 Mar 2003 4:44 |
|
|
|
|
Make a global vairiable to decide what device. (or Add routine to printf and export...)
You may edit printf routine to reference this.
You will set and reset this variable in caller routine...
PS: Printf routine is very heavy. Do not try make "printf"....
|
|
| Back to top |
|
 |
neuralc
Joined: 06 Nov 2001 Posts: 274 Helped: 6
|
23 Mar 2003 13:00 |
|
|
|
|
HI,
Before of all I think that you must consider if you really need to use printf (need lot of code and time to execute). So, if you need only to print text on the LCD (without formating values) you can use the lcd.c library (found easly on the web, if you whant it, let me know).
The functions inside are simple and you can make easly a function to write values.
Hope Help
NeuralC
|
|
| Back to top |
|
 |
nebisman
Joined: 13 Apr 2002 Posts: 291 Helped: 1
|
10 Dec 2003 1:34 Re: hitech picc question |
|
|
|
|
| Could you explain me how to setup the printf function for display on LCD. My need is to visualice floating and integer numbers , please help
|
|
| Back to top |
|
 |