#include <16F877A.h>
#device adc=8
#use delay(clock=10000000)
#fuses WDT,HS, NOPUT, NOPROTECT, NODEBUG, NOBROWNOUT, NOLVP, NOCPD, NOWRT
// uncomment the following line to enable debug mode, which will output
// an ascii-art representation of the display out of the TX port
// when disp_sendarray() is called, instead of the bits to actually
// set the display. this is useful for plugging a terminal to debug output
// or to use simulator software such as PIC Simulator IDE
// #define SIMDISPLAY_DEBUG
#include "simdisplay_drive.h"
void main() {
  int i,nextisscan=0,ewritep=0;
  char q[32];
  char b;
  setup_adc_ports(NO_ANALOGS);
  setup_adc(ADC_OFF);
  setup_psp(PSP_DISABLED);
  setup_counters(RTCC_INTERNAL,RTCC_DIV_1);
  setup_timer_1(T1_INTERNAL|T1_DIV_BY_4);
  setup_timer_2(T2_DISABLED,0,1);
  setup_comparator(NC_NC_NC_NC);
  setup_vref(FALSE);
  setup_wdt(WDT_2304MS);
  while(1) {
    disp_clear();
    disp_sendarray();
    strcpy(q,"WELCOME TO THE SPOOK INSTITUTE");
    scrolltext(q);
    strcpy(q," OF TECH - CALLING ALL WITCHCR");
    scrolltext(q);
    strcpy(q,"AFT MAJORS - RESEARCHERS WANTE");
    scrolltext(q);
    strcpy(q,"ED FOR MAGIC POTION LABORATORY");
    scrolltext(q);
    strcpy(q," - ARCHITECTS NEEDED TO DESIGN");
    scrolltext(q);
    strcpy(q," SCARIER BUILDINGS - HAPPY HAL");
    scrolltext(q);
    strcpy(q,"LOWEEN - ");
    scrolltext(q);
  }
}
