Max7219 question


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jamied View Post
    ...All I'm trying to do is count from 0 to 255 in binary on the leds so I can learn the chip. It counts properly but doesn't shut off leds while it counts.
    By ORing Dig0 with CR, it keeps any bits that were already in the variable.
    Code:
    For CR=0 To 255
        Dig0 = Dig0 | CR
        Low Load
        DelayMS 1
        shiftout Dout,Clk,msbfirst,[Dig0\16]  'no decode
        DelayMS 1
        High Load
        DelayMS 200
    Next
    Might work better with Dig0 as the FOR variable, and skip the OR.

    And it looks like you are using PROTON basic.
    They have a PROTON forum here ...
    http://www.picbasic.org/forum
    <br>
    DT

  2. #2
    Join Date
    Dec 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Thanks!

    Getting rid of the OR solved it!! Thank you.
    I had to do some digging to find out that the pipe was an OR

    Thanks again!


    Jamie

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jamied View Post
    Getting rid of the OR solved it!! Thank you.
    I had to do some digging to find out that the pipe was an OR

    Thanks again!


    Jamie
    Not sure where you did you digging, but the Math Operators section in the Pic Basic manual has all kinds of things to dig in
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Max7219 cascading problem ?
    By iugmoh in forum General
    Replies: 2
    Last Post: - 13th December 2020, 11:53
  2. MAX7219 Helping Hand Please
    By isaac in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 14th February 2014, 16:07
  3. 7 Segment Displays and MAX7219
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st October 2010, 19:30
  4. Shorter Subroutines for MAX7219
    By exelanoz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2007, 12:35
  5. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 07:49

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