Help! Clock not working.....

Discussion in 'Embedded Systems and Microcontrollers' started by PIYUSH SONI, Feb 3, 2014.

  1. PIYUSH SONI

    Thread Starter Member

    Nov 15, 2013
    32
    1
    Hello everyone.
    I am working with ds1307 RTC and pic 18f4520 mcu.
    Compiler - MikroC Pro for PIC. Oscillator - 20 MHz & 32kHz(for driving RTC).
    My clock is not working & also not displaying given time & date value.
    It's showing some random values & sometimes week is also displaying but not everytime. Also "seconds" value doesn't increments & i have also connected battery for RTC. I have attached my code , Kindly Help me.:)


    Code ( (Unknown Language)):
    1.  
    2. // Lcd module connections
    3. sbit LCD_RS at LATB0_bit;
    4. sbit LCD_EN at LATB1_bit;
    5. sbit LCD_D4 at LATB2_bit;
    6. sbit LCD_D5 at LATB3_bit;
    7. sbit LCD_D6 at LATB4_bit;
    8. sbit LCD_D7 at LATB5_bit;
    9.  
    10. sbit LCD_RS_Direction at TRISB0_bit;
    11. sbit LCD_EN_Direction at TRISB1_bit;
    12. sbit LCD_D4_Direction at TRISB2_bit;
    13. sbit LCD_D5_Direction at TRISB3_bit;
    14. sbit LCD_D6_Direction at TRISB4_bit;
    15. sbit LCD_D7_Direction at TRISB5_bit;
    16.  
    17. // Lcd constants
    18. char txt1[] = "Hellow";
    19. char txt2[] = "RTC2 click";
    20. char txt3[] = "DATE:";
    21. char txt4[] = "TIME:";
    22.  
    23. // Module variables
    24. unsigned char hour, minute, second, days, weeks, months, years,hours, minutes, seconds,day,week, month, year,*txt;    // Global date/time variables
    25. char oldstate = 0;
    26.  
    27.  
    28.  
    29. // RTC Definitions
    30. #define RTC_ADDR  0xD0
    31.  
    32. /**************************************************************************************************
    33. * DS1307 Functions
    34. **************************************************************************************************/
    35.  
    36. /**************************************************************************************************
    37. * Read data from RTC DS1307
    38. * input : addres of RTC register
    39. * output: value of of RTC register
    40. **************************************************************************************************/
    41. unsigned char RTC_Read(unsigned char addr){
    42.   unsigned char value;
    43.  
    44.   I2C1_Start();                   // Issue start signal
    45.   I2C1_Wr(RTC_ADDR);              // Address DS1307, see DS1307 datasheet
    46.   I2C1_Wr(addr);                  // Start from address
    47.   I2C1_Start();                   // Issue repeated start signal
    48.   I2C1_Wr(RTC_ADDR);              // Address DS1307 for reading R/W=1
    49.  
    50.   value = I2C1_Rd(0);             // Read seconds byte
    51.   I2C1_Stop();                    // Issue stop signal
    52.  
    53.   return value;
    54. }
    55.  
    56. /**************************************************************************************************
    57. * Write data from DS1307
    58. * input : addres of RTC register, value of of RTC register
    59. **************************************************************************************************/
    60. void RTC_Write(unsigned char addr, unsigned char value){
    61.   I2C1_Start();         // Issue start signal
    62.   I2C1_Wr(RTC_ADDR);    // Address DS1307
    63.   I2C1_Wr(addr);        // Start from address
    64.   I2C1_Wr(value);       // Write value to RTC register
    65.   I2C1_Stop();          // Issue stop signal
    66. }
    67.  
    68. /**************************************************************************************************
    69. * Read time from RTC DS1307
    70. * input : pointer to variables where RTC data will be stored
    71. * output: variables with RTC data
    72. **************************************************************************************************/
    73. void Read_Time(char *seconds,char *minutes,char *hours,char *week,char *day,char *month,char *year){
    74.   I2C1_Start();                // Issue start signal
    75.   I2C1_Wr(RTC_ADDR);           // Address DS1307, see DS1307 datasheet
    76.   I2C1_Wr(2);                  // Start from address 0
    77.   I2C1_Repeated_Start();       // Issue repeated start signal
    78.   I2C1_Wr(0xD1);       // Address DS1307 for reading R/W=1
    79.  
    80.   *seconds = I2C1_Rd(1);     // Read seconds byte
    81.   *minutes = I2C1_Rd(1);     // Read minutes byte
    82.   *hours = I2C1_Rd(1);       // Read hours byte
    83.   *week =I2C1_Rd(1);
    84.   *day =I2C1_Rd(1);
    85.   *month =I2C1_Rd(1);
    86.   *year =I2C1_Rd(0);
    87.  
    88.   I2C1_Stop();                 // Issue stop signal
    89. }
    90.  
    91. /**************************************************************************************************
    92. * Write time to RTC DS1307
    93. * input : variables with RTC data
    94. **************************************************************************************************/
    95. void Write_Time(unsigned char c_hours, unsigned char c_minutes, unsigned char c_seconds,
    96.                 unsigned char c_day, unsigned char c_week, unsigned char c_month, unsigned char c_year){
    97.    I2C1_Start();                     // issue start signal
    98.    I2C1_Wr(RTC_ADDR);                // address DS1307
    99.    I2C1_Wr(2);                       // start from word at address (REG0)
    100.    I2C1_Wr(0x80);                    // write $80 to REG0. (pause counter + 0 sec)
    101.  
    102.    I2C1_Wr(c_minutes);               // write 0 to minutes word to (REG1)
    103.    I2C1_Wr(c_hours);                 // write 17 to hours word (24-hours mode)(REG2)
    104.    I2C1_Wr(c_week);                  // write 2 - Monday (REG3)
    105.    I2C1_Wr(c_day);                   // write 4 to date word (REG4)
    106.    I2C1_Wr(c_month);                 // write 5 (May) to month word (REG5)
    107.    I2C1_Wr(c_year);                  // write 01 to year word (REG6)
    108.    I2C1_Stop();                      // issue stop signal
    109.  
    110.    I2C1_Start();                     // issue start signal
    111.    I2C1_Wr(RTC_ADDR);                // address DS1307
    112.    I2C1_Wr(0);                       // start from word at address 0
    113.    I2C1_Wr(0 | c_seconds);           // write 0 to REG0 (enable counting + 0 sec)
    114.    I2C1_Stop();                      // issue stop signal
    115. }
    116. /**************************************************************************************************
    117. * Show on the LCD display
    118. * input : variables with RTC data
    119. **************************************************************************************************/
    120. void Transform_Time(char *seconds,char *minutes,char *hours,char *week,char *day,char *month,char *year){
    121.  
    122.  
    123.   *seconds  =  ((*seconds & 0xF0) >> 4)*10 + (*seconds & 0x0F);
    124.   *minutes  =  ((*minutes & 0xF0) >> 4)*10 + (*minutes & 0x0F);
    125.   *hours    =  ((*hours & 0xF0) >> 4)*10 + (*hours & 0x0F);
    126.   *week     =  (*week & 0x0F);
    127.   *day      =  ((*day & 0xF0) >> 4)*10 + (*day & 0x0F);
    128.   *month    =  ((*month & 0xF0) >> 4)*10 + (*month & 0x0F);
    129.   *year     =  ((*year & 0xF0)>>4)*10+(*year & 0x0F);
    130.  
    131.  
    132.   }
    133.   void Show_Time()
    134.   {
    135.   switch(weeks)
    136.   {
    137.       char *txt;
    138.     case 1: txt="Sun"; break;
    139.     case 2: txt="Mon"; break;
    140.     case 3: txt="Tue"; break;
    141.     case 4: txt="Wed"; break;
    142.     case 5: txt="Thu"; break;
    143.     case 6: txt="Fri"; break;
    144.     case 7: txt="Sat"; break;
    145. }
    146.  
    147.     LCD_Out(2,14, txt);
    148.   Lcd_Chr(1, 6, (day / 10)   + 48);    // Print tens digit of day variable
    149.   Lcd_Chr(1, 7, (day % 10)   + 48);    // Print oness digit of day variable
    150.   Lcd_Chr(1, 9, (month / 10) + 48);
    151.   Lcd_Chr(1,10, (month % 10) + 48);
    152.   Lcd_Chr(1,14, (year / 10)  + 48);
    153.   Lcd_Chr(1,15, (year % 10)  + 48);
    154.  
    155.  
    156.   Lcd_Chr(2, 6, (hours / 10)   + 48);
    157.   Lcd_Chr(2, 7, (hours % 10)   + 48);
    158.   Lcd_Chr(2, 9, (minutes / 10) + 48);
    159.   Lcd_Chr(2,10, (minutes % 10) + 48);
    160.   Lcd_Chr(2,12, (seconds / 10) + 48);
    161.   Lcd_Chr(2,13, (seconds % 10) + 48);
    162. }
    163.  void Init_main()
    164.  {
    165.  ADRESL = 0;
    166. ADRESH = 0;
    167. ADCON0=0;
    168. ADCON1=0x0F;
    169. ADCON2=0x00;
    170. PORTC =0;
    171. TRISC =0XFF;
    172.  
    173.   CMCON =7;
    174.   PORTA = 0;
    175.  
    176.   TRISA2_bit = 1;
    177.  
    178.   I2C1_Init(100000);                 // Initialize I2C bus for communication with RTC
    179.   Lcd_Init();                        // Initialize Lcd
    180.  
    181.   Lcd_Cmd(_LCD_CLEAR);               // Clear display
    182.   Lcd_Cmd(_LCD_CURSOR_OFF);          // Cursor off
    183.   Lcd_Out(1,1,txt1);                 // Write text in first row
    184.   Lcd_Out(2,4,txt2);                 // Write text in second row
    185.  
    186.   Delay_ms(2000);                    // delay 2 sec
    187.  
    188.   Lcd_Cmd(_LCD_CLEAR);               // Prepare and output static text on LCD
    189.   LCD_Chr(1,8,'.');
    190.   LCD_Chr(1,11,'.');
    191.   LCD_Out(1,1,txt3);
    192.   LCD_Out(2,1,txt4);
    193.   LCD_Chr(2,8,':');
    194.   LCD_Chr(2,11,':');
    195.   LCD_Out(1,12,"20");
    196.  }
    197. /**************************************************************************************************
    198. * MAIN PROGRAM
    199. **************************************************************************************************/
    200. void main()
    201. {
    202.  
    203.     Delay_ms(200);
    204.     Init_main();
    205.     Write_Time(0x00,0x11,0x00,0x02,0x01,0x02,0x14);
    206.      while(1)
    207.      {
    208.      Transform_Time(&seconds,&minutes,&hours,&week,&day,&month,&year);
    209.      Show_Time();
    210.   Read_Time(&seconds,&minutes,&hours,&week,&day,&month,&year);
    211.  
    212.      }
    213.      
    214.    }
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,392
    1,606
    1. Fill seconds, minutes, hours, week, day, month, and year with dummy data you believe to be correct.

    2. comment out the Read_Time() function in main().

    3. ADD A DELAY OF 1 SECOND inside the very tight while(1) loop inside main().

    4. Run modified program, come back and report results.
     
    PIYUSH SONI likes this.
  3. PIYUSH SONI

    Thread Starter Member

    Nov 15, 2013
    32
    1
    I am not getting your 1st point that you are telling about "Fill seconds, minutes, hours, week, day, month, and year with dummy data you believe to be correct".
    I have commented Read_Time in main and also gave 1 second delay in while loop, but after doing this no value displays in time and date row. I am getting fuzzy at this, Help me.
     
  4. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    He is suggesting that you attempt to verify the functionality of the rest of the system by processing known values (hard code the values fort second, minutes, hours, etc.) and attempt to display them before making the circuit more complicated (adding the RTC).
     
  5. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,015
    Set those values to some value and don't read the clock:


    example:

    seconds = 0;
    minutes = 03;
    hours = 1;
    week = 1;
    day = 1;
    month = 10;
    year = 2014;

    I did not look close at your code, these might not be the exact variable but hopefull you get the idea.

    What Ernie is trying to do is to help you determine if the issue is with reading the clock or just displaying the value. So just forget about the clock for now and just display something.
     
  6. PIYUSH SONI

    Thread Starter Member

    Nov 15, 2013
    32
    1
    Actually I am getting the display of text (Time & Date), But not getting the value which i want to display..??
    Now Tell me what to do???
     
  7. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    The question is whether or not you are getting the expected text when a known value is to be displayed...are you?
     
  8. PIYUSH SONI

    Thread Starter Member

    Nov 15, 2013
    32
    1
    No I didn't get the known value. It display ''0" in all the positions.
     
  9. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    So, you have a problem with your display functionality...now you know where to look to fix a known error...
     
  10. PIYUSH SONI

    Thread Starter Member

    Nov 15, 2013
    32
    1
    But if i am doing any other program my display(LCD) is working fine. My display is working fine bro..
    Is any other error u can find & help me bro...
     
  11. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Bro?:confused:

    Were your LCD interface working properly, you could display hard coded data...

    Comment everything else out and verify its operation - process of elimination.
     
  12. Ian Rogers

    Member

    Dec 12, 2012
    158
    29
    Code ( (Unknown Language)):
    1.  
    2. I2C1_Wr(2);                  // Start from address 0
    3.  
    I don't get this bit???
     
  13. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,015
    Well Bro :eek:.

    You are on the right track but I would advise creating a brand new test program. One that displays a numerical value that was set in a variable. Bonus points for a for loop.

    OP,

    I suspect that for starters there is something wrong with your code that displays numeric variables. And Hello does not have a w on the end. :)
     
  14. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,015
    Something like this:

    Code ( (Unknown Language)):
    1.  
    2.  
    3. void main()
    4. {
    5. int i;
    6.  
    7. while(1)
    8. {
    9.     for(i=0; i<=10; i++)  
    10.        Lcd_Chr(1, 6, (day / 10)   + 48);
    11. }
    12. }
    13.  
     
  15. PIYUSH SONI

    Thread Starter Member

    Nov 15, 2013
    32
    1
    hello guys, I have tried a lot but still my clock is not running. Once again i am posting my code. I have done some modification , Please go through it & Help me in all possible way.
    Code ( (Unknown Language)):
    1.  
    2. // Lcd module connections
    3. sbit LCD_RS at LATB0_bit;
    4. sbit LCD_EN at LATB1_bit;
    5. sbit LCD_D4 at LATB2_bit;
    6. sbit LCD_D5 at LATB3_bit;
    7. sbit LCD_D6 at LATB4_bit;
    8. sbit LCD_D7 at LATB5_bit;
    9.  
    10. sbit LCD_RS_Direction at TRISB0_bit;
    11. sbit LCD_EN_Direction at TRISB1_bit;
    12. sbit LCD_D4_Direction at TRISB2_bit;
    13. sbit LCD_D5_Direction at TRISB3_bit;
    14. sbit LCD_D6_Direction at TRISB4_bit;
    15. sbit LCD_D7_Direction at TRISB5_bit;
    16.  
    17. // Lcd constants
    18. char txt1[] = "Hello";
    19. char txt2[] = "RTC2 click";
    20. char txt3[] = "DATE:";
    21. char txt4[] = "TIME:";
    22.  
    23. // Module variables
    24. //unsigned char hours, minutes, seconds, day, date, month, year,*txt;    // Global date/time variables
    25. char oldstate = 0;
    26.  
    27.  
    28.  
    29.  
    30. // RTC Definitions
    31. #define RTC_ADDR  0xD0
    32.  
    33. /**************************************************************************************************
    34. * DS1307 Functions
    35. **************************************************************************************************/
    36.  
    37. /**************************************************************************************************
    38. * Read data from RTC DS1307
    39. * input : addres of RTC register
    40. * output: value of of RTC register
    41. **************************************************************************************************/
    42. unsigned char RTC_Read(unsigned char addr){
    43.   unsigned char value;
    44.  
    45.   I2C1_Start();                   // Issue start signal
    46.   I2C1_Wr(RTC_ADDR);              // Address DS1307, see DS1307 datasheet
    47.   I2C1_Wr(addr);                  // Start from address
    48.   I2C1_Start();                   // Issue repeated start signal
    49.   I2C1_Wr(RTC_ADDR);              // Address DS1307 for reading R/W=1
    50.  
    51.   value = I2C1_Rd(0);             // Read seconds byte
    52.   I2C1_Stop();                    // Issue stop signal
    53.  
    54.   return value;
    55. }
    56.  
    57. /**************************************************************************************************
    58. * Write data from DS1307
    59. * input : addres of RTC register, value of of RTC register
    60. **************************************************************************************************/
    61. void RTC_Write(unsigned char addr, unsigned char value){
    62.   I2C1_Start();         // Issue start signal
    63.   I2C1_Wr(RTC_ADDR);    // Address DS1307
    64.   I2C1_Wr(addr);        // Start from address
    65.   I2C1_Wr(value);       // Write value to RTC register
    66.   I2C1_Stop();          // Issue stop signal
    67. }
    68.  
    69. /**************************************************************************************************
    70. * Read time from RTC DS1307
    71. * input : pointer to variables where RTC data will be stored
    72. * output: variables with RTC data
    73. **************************************************************************************************/
    74. void Read_Time(char seconds,char minutes,char hours,char day,char date,char month,char year)
    75. {
    76.   I2C1_Start();                // Issue start signal
    77.   I2C1_Wr(RTC_ADDR);           // Address DS1307, see DS1307 datasheet
    78.   I2C1_Wr(0);                  // Start from address 0
    79.   I2C1_Repeated_Start();       // Issue repeated start signal
    80.   I2C1_Wr(0xD1);       // Address DS1307 for reading R/W=1
    81.  
    82.   seconds = I2C1_Rd(1);     // Read seconds byte
    83.   minutes = I2C1_Rd(1);     // Read minutes byte
    84.   hours = I2C1_Rd(1);       // Read hours byte
    85.   day =I2C1_Rd(1);
    86.   date =I2C1_Rd(1);
    87.   month =I2C1_Rd(1);
    88.   year =I2C1_Rd(0);
    89.  
    90.   I2C1_Stop();                 // Issue stop signal
    91. }
    92.  
    93. /**************************************************************************************************
    94. * Write time to RTC DS1307
    95. * input : variables with RTC data
    96. **************************************************************************************************/
    97. void Write_Time(unsigned char seconds, unsigned char c_minutes, unsigned char hours,
    98.                 unsigned char day, unsigned char date, unsigned char month, unsigned char year){
    99.    I2C1_Start();                     // issue start signal
    100.    I2C1_Wr(RTC_ADDR);                // address DS1307
    101.    I2C1_Wr(0);                       // start from word at address (REG0)
    102.    I2C1_Wr(0x00);                    // write $80 to REG0. (pause counter + 0 sec)
    103.  
    104.    I2C1_Wr(0x00);               // write 0 to minutes word to (REG1)
    105.    I2C1_Wr(0x01);                 // write 17 to hours word (24-hours mode)(REG2)
    106.    I2C1_Wr(0x02);
    107.    I2C1_Wr(0x03);                  // write 2 - Monday (REG3)
    108.    I2C1_Wr(0x04);                   // write 4 to date word (REG4)
    109.    I2C1_Wr(0x05);                 // write 5 (May) to month word (REG5)
    110.    I2C1_Wr(0x06);                  // write 01 to year word (REG6)
    111.    I2C1_Stop();                      // issue stop signal
    112.  
    113.    I2C1_Start();                     // issue start signal
    114.    I2C1_Wr(RTC_ADDR);                // address DS1307
    115.    I2C1_Wr(0);                       // start from word at address 0
    116.    I2C1_Wr(0 | seconds);           // write 0 to REG0 (enable counting + 0 sec)
    117.    I2C1_Stop();                      // issue stop signal
    118. }
    119. /**************************************************************************************************
    120. * Show on the LCD display
    121. * input : variables with RTC data
    122. **************************************************************************************************/
    123. void Transform_Time(char seconds,char minutes,char hours,char day,char date,char month,char year){
    124.  
    125.  
    126.   seconds  =  ((seconds & 0xF0) >> 4)*10 + (seconds & 0x0F);
    127.   minutes  =  ((minutes & 0xF0) >> 4)*10 + (minutes & 0x0F);
    128.   hours    =  ((hours & 0xF0) >> 4)*10 + (hours & 0x0F);
    129.   day      =  (day & 0x07);
    130.   date     =  ((date & 0xF0) >> 4)*10 + (day & 0x0F);
    131.   month    =  ((month & 0xF0) >> 4)*10 + (month & 0x0F);
    132.   year     =  ((year & 0xF0)>>4)*10+(year & 0x0F);
    133.  
    134.  
    135.   }
    136.   void Show_Time()
    137.   {
    138.   switch(day)
    139.   {
    140.       char *txt;
    141.     case 1: txt="Sun"; break;
    142.     case 2: txt="Mon"; break;
    143.     case 3: txt="Tue"; break;
    144.     case 4: txt="Wed"; break;
    145.     case 5: txt="Thu"; break;
    146.     case 6: txt="Fri"; break;
    147.     case 7: txt="Sat"; break;
    148. }
    149.  
    150.     LCD_Out(2,14, txt);
    151.   Lcd_Chr(1, 6, (date / 10)   + 48);    // Print tens digit of day variable
    152.   Lcd_Chr(1, 7, (date % 10)   + 48);    // Print oness digit of day variable
    153.    Lcd_Chr(1, 9, (month / 10) + 48);
    154.   Lcd_Chr(1,10, (month % 10) + 48);
    155.   Lcd_Chr(1,14, (year / 10)  + 48);
    156.   Lcd_Chr(1,15, (year % 10)  + 48);
    157.  
    158.  
    159.   Lcd_Chr(2, 6, (hours / 10)   + 48);
    160.   Lcd_Chr(2, 7, (hours % 10)   + 48);
    161.   Lcd_Chr(2, 9, (minutes / 10) + 48);
    162.   Lcd_Chr(2,10, (minutes % 10) + 48);
    163.   Lcd_Chr(2,12, (seconds / 10) + 48);
    164.   Lcd_Chr(2,13, (seconds % 10) + 48);
    165. }
    166.  void Init_main()
    167.  {
    168.  ADRESL = 0;
    169.  ADRESH = 0;
    170.  ADCON0=0;
    171.  ADCON1=0x0F;
    172.  ADCON2=0x00;
    173.  SMP_bit = 1;
    174.  PORTC =0;
    175.  TRISC =0XFF;
    176.  
    177.   CMCON =7;
    178.   PORTA = 0;
    179.  
    180.   TRISA2_bit = 1;
    181.  
    182.   I2C1_Init(100000);                 // Initialize I2C bus for communication with RTC
    183.   Lcd_Init();                        // Initialize Lcd
    184.  
    185.   Lcd_Cmd(_LCD_CLEAR);               // Clear display
    186.   Lcd_Cmd(_LCD_CURSOR_OFF);          // Cursor off
    187.   Lcd_Out(1,1,txt1);                 // Write text in first row
    188.   Lcd_Out(2,4,txt2);                 // Write text in second row
    189.  
    190.   Delay_ms(2000);                    // delay 2 sec
    191.  
    192.   Lcd_Cmd(_LCD_CLEAR);               // Prepare and output static text on LCD
    193.   LCD_Chr(1,8,'.');
    194.   LCD_Chr(1,11,'.');
    195.   LCD_Out(1,1,txt3);
    196.   LCD_Out(2,1,txt4);
    197.   LCD_Chr(2,8,':');
    198.   LCD_Chr(2,11,':');
    199.   LCD_Out(1,12,"20");
    200.  }
    201. /**************************************************************************************************
    202. * MAIN PROGRAM
    203. **************************************************************************************************/
    204. void main()
    205. {
    206.     Delay_ms(1000);
    207.     Init_main();
    208.     Write_Time(seconds, minutes, hours,day, date, month, year);
    209.      while(1)
    210.      {          
    211.       Delay_ms(1000);
    212.        Transform_Time(seconds,minutes,hours,day,date,month,year);
    213.        Show_Time();
    214.        Read_Time(&seconds,&minutes,&hours,&day,&date,&month,&year);
    215.  
    216.      }
    217.  
    218.    }
     
  16. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    What kind of a programmer do you have. If it is a PICKIT 2 or 3. Then it is time to do some debugging. The person most close to help you is your self. It is hard for others just by looking at some code to pinpoint your error
     
  17. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,015
    I missed the part where you confirmed that your number display code is working correctly. Do you try to write hard coded numbers to the display by setting a variable to a number and then try writing that number to the display?

    If you did that what happened?

    If you did not then why have you not tried it?
     
    tshuck likes this.
Loading...