A header wizard


Closed Thread
Results 1 to 40 of 230

Thread: A header wizard

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    @Dave and Paul, are your programs looking at the dir to find all the available *.inc files? So updates will just automaticlly be added?
    Mine is. The dir is copied to the server.
    @Dave, If I am reading your code right, did you have to hard code all the cases for the config options?
    Nope.
    Code:
    file = open("%s" % subject,"r")
    text = file.readlines()
    file.close()
    
    for line in text:
        m = re.match(r"_", line)   # Looks for everything starting with "_"
        if m: print line, "<br>"
    So because of the "J" chips a second pass will be needed.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    So because of the "J" chips a second pass will be needed.
    Maybe better to trigger off the "J" and have seperate routines? Or is the differance not that clear in the parts?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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


    Did you find this post helpful? Yes | No

    Default

    Separate routines might be best.
    Split it up between
    16F
    18F
    18F__J

    Unless I am forgetting something that should be the three basic configs.
    Dave
    Always wear safety glasses while programming.

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