format

Writes formatted values to output device

Author Stef Mientki, Copyright (c) 2002 .. 2006, all rights reserved.
Adapted-by Joep Suijs
Compiler >=2.2

Description

Outputs variables to output device.
Writes formatted signed/unsiged bytes/words to the specified output device.
Decimal (with fraction), Hex and Time formats available.


  
Example:


     
var sword BHL = -684


     
; send the signed word to the LCD display
; total field width 6 chars, including sign and decimal
; with 2 digits behind the decimal point
format_sword_dec(LCD_char,BHL,6,2)


     
; and now send the same signed word to the serial port
format_sword_dec(Serial_HW_data,BHL,6,2)  


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Private

Functions


API details

Global variables/contants

Procedures

Private

Functions


Related samples

Here are the list of samples which use this library:

sample16f877a_print_serial_numbers.jal
sample16f876a_tc77.jal
sample16f877a_lcd_format.jal
sample16f877a_serial_print.jal
sample16f876a_sht.jal
sample16f876a_rtc_lcd.jal
sample16f648a_serial_print.jal
sample16f88_serial_print.jal
sample16f88_print_serial_numbers.jal
sample16f877a_rtc_lcd.jal