home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 20 / 020.d81 / t.coffee < prev    next >
Text File  |  2022-08-26  |  3KB  |  163 lines

  1.  
  2.            Morning Coffee
  3.  
  4.  
  5.  
  6. Written by: Jerry Houston
  7.  
  8.  
  9.   This program is a good example of
  10.  
  11. how simple it really is to accomplish
  12.  
  13. useful tasks with your Commodore 64
  14.  
  15. and an Analog/Digital Data
  16.  
  17. Acquisition and Control System.
  18.  
  19. Fortunately, the latter shortens to
  20.  
  21. "ADC."  With an ADC and your C-64,
  22.  
  23. you have the ability to communicate
  24.  
  25. with the "real world" which gives you
  26.  
  27. real and useful computing power.
  28.  
  29.   This program only actually uses one
  30.  
  31. feature of an ADC -- the ability to
  32.  
  33. send commands to the popular BSR
  34.  
  35. series of AC line-carrier remote
  36.  
  37. control modules. Ordinarily, these
  38.  
  39. modules are used with timer or
  40.  
  41. control devices to operate lights and
  42.  
  43. appliances around the house by
  44.  
  45. sending radio-frequency signals over
  46.  
  47. the AC lines. These modules are easy
  48.  
  49. to find as they are sold at many
  50.  
  51. stores.
  52.  
  53.   Prior to running Morning Coffee,
  54.  
  55. you will need to get some hardware
  56.  
  57. that is capable of turning on and off
  58.  
  59. a coffee machine and a bedroom's
  60.  
  61. lights.  When all systems are go, RUN
  62.  
  63. the program.
  64.  
  65.   At the start of the program, you
  66.  
  67. will notice a ten second delay that
  68.  
  69. might seem that the computer is
  70.  
  71. locked-up doing nothing. Don't worry,
  72.  
  73. first the program must set up the
  74.  
  75. communications channel, which takes
  76.  
  77. a little time.
  78.  
  79.   After the short delay, you will be
  80.  
  81. prompted with "ENTER TIME NOW, SUCH
  82.  
  83. AS HH,MM ?." What this means is --
  84.  
  85. enter the current time using the
  86.  
  87. HH,MM format. Please note that on the
  88.  
  89. C-64 time is represented as a julian
  90.  
  91. clock. For example, 11:00p.m. is 2300
  92.  
  93. hrs. on a julian clock and 12 O'clock
  94.  
  95. midnight is 0000 hours.
  96.  
  97.   Next, you will be prompted to
  98.  
  99. "ENTER TIME TO TURN ON COFFEE ?"
  100.  
  101. followed by "ENTER TIME TO TURN ON
  102.  
  103. LIGHTS ?."  Respond to these prompts
  104.  
  105. with julian time and be sure to make
  106.  
  107. sure that the numbers you enter are
  108.  
  109. correct because the C-64 will accept
  110.  
  111. strings whose values exceed 2400
  112.  
  113. hours, however when this happens the
  114.  
  115. system's clock will be reset to
  116.  
  117. 00:00:00.
  118.  
  119.   If you do err, just press
  120.  
  121. STOP/RESTORE and then RUN the program
  122.  
  123. again. To be sure you have entered
  124.  
  125. the times correctly, note that the
  126.  
  127. program will print the times that you
  128.  
  129. have entered for each appliance.
  130.  
  131.   Because of the nature of this
  132.  
  133. program, you cannot run it from the
  134.  
  135. LOADSTAR environment.
  136.  
  137.  
  138.  
  139.               ------
  140.  
  141.    This program is copyrighted by
  142.  
  143.  Commodore Microcomputers magazine.
  144.  
  145.    All rights to it are reserved.
  146.  
  147.  LOADSTAR has relieved you from the
  148.  
  149.   burden of keying in this program.
  150.  
  151.  For more complete information about
  152.  
  153.  this program, refer to the February
  154.  
  155.        1986 issue of Commodore
  156.  
  157.             Microcomputers.
  158.  
  159.  
  160. >Files used: COFFEE
  161.  
  162. --------< end of article >------------
  163.