1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

mikroc lcd program

Discussion in 'Microcontrollers' started by einton, Jul 23, 2009.

  1. rajbex

    rajbex Member

    Joined:
    Sep 17, 2009
    Messages:
    174
    Likes:
    5
    Location:
    Williamsburg, VA
    What happens when you change the LED definitions as sbit led0 at RD0_bit; and so on?
     
  2. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,800
    Likes:
    134
    Location:
    morristown,tn
    You want to
    Code (text):
     #define led0 PORTD.F0
    and the for loop is missing a ; at the end
    Code (text):
    for(count=0;count<10;count++);
    sbit does just that sets a bit
     
    Last edited: May 11, 2012

Share This Page