Counting led blinks..


Results 1 to 40 of 93

Threaded View

  1. #34
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Counting led blinks..

    Okay I missed this line of code in the main loop "GOTO SD_WRITE".
    The modified mainloop..
    Code:
    mainloop:           
       Gosub READ_RTC        ' Read the time from the RTC 
       ' Display time on LCD
        Lcdout $fe, 128,"Date:", CRON_D[1],CRON_D[2],CRON_D[3],CRON_D[4],CRON_D[5],CRON_D[6],CRON_D[7],CRON_D[8]
        Lcdout $fe, $c0, "Time:", CRON[1], CRON[2],CRON[3],CRON[4],CRON[5],CRON[6],CRON[7],CRON[8]
        Pause 500        
        GOSUB USB_DISPLAY
        IF (SD_WE = 0) AND (SD_CD = 0)  THEN
        GOTO SD_WRITE
        ELSE
        PWM LED,25,250
        USBOUT 3, TEXT_NO_CARD, 10, mainloop
        PAUSE 500
        ENDIF   
        
    Goto mainloop
    But this time even the rtc output is not displaying in the communication terminal and freezed on the lcd as well...I'm lost with the sdcard code part.

    tacbanon
    Last edited by tacbanon; - 23rd October 2011 at 14:50.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts