Copy 144 LED console for my school project


Closed Thread
Results 1 to 39 of 39

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mtripoli View Post
    Though I haven't "been on"' this site in months ....
    Hi, MTripoli

    As I fully do understand your point of view, as I am surprised by it's violence may I say INNOCENCE ...

    What you describe have been observed for years in many specialities , and of course in workplaces and universities.

    Some kind of Internet spread desease ??? ... may be ...

    Everyone ( not exactly everyone ... Thanks to god ! ) " copies and Pastes " , ask for Instructables, Videos and , of course a touch of customization ... just to be able to tell bar-friends " I DID IT " ... or pass their exams !!!

    One of our greatest actor ( Jean Gabin ) was saying, 40 years ago, in " Les tontons flingueurs " , famous comic film about papies ripping off :

    " Bloody stupid people dare to do anything ... thats also how one can recognize them. "
    ... yeah, your right, sad world.

    I gently would answer you ...

    As you are not paid in any way here ... you're not to answer any query ...

    Just keep in mind everything placed on the Web can be " stolen " ...
    Copyright ??? ... just a view of mind !!!


    Regards
    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    C_Beginner's Avatar
    C_Beginner Guest


    Did you find this post helpful? Yes | No

    Default The death of competency

    MTripoli is correct.

    I recall reading a paper not so long ago written by a UNI professor regarding his concerns with all of this. Copy & paste to do assignments. Where's the world headed?

    Anyhow here's a glimpse at some C code:

    Code:
    /*
       8-LED Knight Rider Scanner    
       MCU: PIC16f877a
       
       Requirements:
          1. Connect 8 leds to portC
          2. 1 x push button to RB1 with pull up resistor
          3. 4MHz XTAL
       
       Usage:
         Pressing the switch causes the leds to chase back & forth   
    */
    
    // Global scope variables
    char i = 0; // Direction of scan
    char j = 1; // Gen working var
    char k = 0; // Gen working var
    
    void main()
    {
      TRISA = 0x00;      // PortA as output
      TRISB = 0x02;      // RB1 to as input rest as out
      TRISC = 0x00;      // PortC as output
      TRISD = 0x00;      // PortD as output
      TRISE = 0x00;      // PortE as output
      PORTC = 0x00;     // Init port, all pins low
    
       // Infinite loop
       while(1)
       {
          if (PORTB == 0)        // Button pressed?
          {
    
             PORTC = j;            // Write to port
             delay_ms(100);      // 100mS delay
             
             // Scan dir forward //
    
             if (i == 0)
             {
                j = (j << 1);       // Shift bits left
             }
             
             // Scan backward //
    
             else
             {
                j = (j >> 1);    // Shift right
             }
    
             // Toggle direction //
    
             k ++;                   // Inc counter
             
             if (k == 7)           // Counter reached n val?
             {
                k = 0;              // Reset
                i = ~i;             // Toggle dir
             }
          }
       }
    }
    Not much more involved than BASIC. The help file in MikroC is great, if that fails then go and buy a book. If that fails too, then go and do some formal study.

  3. #3


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Acetronics View Post
    Hi, MTripoli

    As I fully do understand your point of view, as I am surprised by it's violence may I say INNOCENCE ...
    "Violence" may not be the correct translation (I see you are from France - God I love the food there; I 've spent some time in Pau at Elf Aquitane many years ago. The Pyrenees mountains are stunningly beautiful). How about "frankness" or "forthrightness" (franchise?).

    Quote Originally Posted by Acetronics View Post
    As you are not paid in any way here ... you're not to answer any query ...
    Alain
    I wasn't answering any query. I was stating my opinion.

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