To use this file copy and paste this:
// #URL-lib "http://pin1.org/forthlib/flb/IASI/BV4103.fth" into BV Terminal 3
or here to download.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// BV4103 LCD. This device is the same form a software point
// of view as the BV4108, the BV103 is a BV4108 with an LCD
// already attached.
// LCD are slow devixces and so expect to see delays in the
// software.
// This is a demonstartion of using the library NOTE: There are
// no public words <0> for the BV4103 library so use the same SID
// to extend it and provide <0> for your application if required.
// 1) use set-lcd ONCE to set up IASI or do this manualy
// 2) use go-time
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// HISTORY:
// Mar 2008 * replaced [char] : ba with 58 ba, limitation on BVT
// REQUIRES:
// #URL-lib "http://pin1.org/forthlib/flb/General/soft1.flb" sid=98
// #URL-lib "http://pin1.org/forthlib/flb/General/rtc.flb" sid=99
// #URL-lib "http://pin1.org/forthlib/flb/IASI/IASI-L-a.flb" sid=100
// #URL-lib "http://pin1.org/forthlib/flb/IASI/BV4103.flb" sid=100
//
// CONSTANTS:
Full Contents of File
 
: set-lcd
    1  0  setup
;   
: init
    1  =>  address           
    i-cbuff
    2  bn       
    16  br     
;   
: l264  bp  ; 
: hello
    dh       
    s"  Hello"  bt   
    l2       
    s"  World"  bt   
;
 
: dayss"  MonTueWedThuFriSatSun"  ;
: monthss"  JanFebMarAprMayJunJulAugSepOctNovDec"  ;
: p3
    3  for
        dup  i  +  c@  ba
    next
    drop
;       
     
: pday
        0  bp       
        3  *         
        days       
        +
        p3       
;
: pmonth
        7  bp       
        1-           
        3  *  months  +   
        p3       
;
: c-dayrtc.dow  @  pday  ;
: c-dom
        4  bp
        rtc.date   
        pnum 
        2drop 
;
: c-mon
    rtc.date  drop  swap  drop 
    pmonth
;
: c-year
    11  bp         
    rtc.date  2drop       
    pnum4     
;
: topline  c-day  c-dom  c-mon  c-year  ; 
: c-hour 
    64  bp     
    rtc.time  2drop  pnum2
    58  ba     
;
   
: c-min 
    67  bp     
    rtc.time  drop  pnum2
    drop   
    58  ba     
;
: c-sec 
    70  bp     
    rtc.time  pnum2
    2drop 
;
: bottomline  c-hour  c-min  c-sec  ; 
: go-time
    init
    dh
    begin
        topline
        bottomline
        100  ms   
        key?
    until
;