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

    A very small start.
    http://wiz.mackrackit.cambs.net/
    I will post a project log and any code used at the above address if anyone want to work on it.
    If you have suggestion or code lets play. I will work on it as time permits.
    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

    Dave, you are awesome! I see you must be working from an older copy of mplab? I had to update in order to have support for 16f1946. If you want, I can send you my *.inc files.
    -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

    Ioannis sent the incs from version 8.5 .
    I just have not moved them into the project directory yet, ooppss.
    Thanks for the reminder.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    i have 8.53. dont know if there is any difference
    -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!

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


    Did you find this post helpful? Yes | No

    Default

    Seems like I am always slow to upgrade. I will install 8.53 .
    And I need to get one of those 18FxxJxx chips...
    Dave
    Always wear safety glasses while programming.

  6. #6
    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
    A very small start.
    http://wiz.mackrackit.cambs.net/
    I will post a project log and any code used at the above address if anyone want to work on it.
    If you have suggestion or code lets play. I will work on it as time permits.
    more from the novice:
    Followed the link, played with the button. Not sure how to access the .py scripts. If I right click and choose view source, all I see is the html source for the page. What am I missing?
    -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!

  7. #7
    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 cncmachineguy View Post
    more from the novice:
    Followed the link, played with the button. Not sure how to access the .py scripts. If I right click and choose view source, all I see is the html source for the page. What am I missing?
    Well... That is all there is at the moment

    The .py that the HTML button page triggers is in red on the first page. The HTML with the button sends info to the .py then the .py produces a web page with the results.

    The HTML part that gets it going
    form action="/cgi-bin/ChipDrop.py" method="post" target="_blank">
    select name="ChipSel">
    --SNIP--

    Then the Python code picks it up here
    # Get data from fields
    if form.getvalue('ChipSel'):
    subject = form.getvalue('ChipSel')
    else:
    subject = "Not entered"


    So all I have is the HTML and one py script to display the config options.
    BTW.
    I used this to help generate the HTML. No way I typed all of that..
    Code:
    #!/usr/bin/python
    import os
    import re
    import string
    path="fileS"  # insert the path to the directory of interest
    dirList=os.listdir(path)
    for fname in dirList:
        str = fname
        tx = str.strip('.INC');
        sep = ''
        list = ['<option value="fileS/',str,'">',tx,'</option>']
        print sep.join(list)
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Enrolled in a python class starts on 9/15.
    COOL!!!!
    Now when I get stuck I know who to ask

    Never took a class myself And it probably shows...
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Hi guys,

    I like the enthusiasm, and it’s a great idea … but …
    You may not want to spend too much time on this project.

    I can’t say from whom or where right now, but there is already a functioning Configurator that will be available fairly soon.
    It covers all the chips, and all the configs, with drop-down boxes and descriptions for each option.

    It creates a file that can be INCLUDEd in the code, and each project can have its own config file, instead of the normal default configs in the .inc files.
    Or like all INCLUDEs, it can be pasted into the main code itself.
    The defaults still have to be commented out, but that may be fixed soon too … maybe.

    Sorry for the late notification, but I've been moving out of state and haven't been on-line for a few weeks.

    Cheers.
    DT

  10. #10
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I like the enthusiasm, and it’s a great idea … but …
    You may not want to spend too much time on this project.
    There you go, bursting our bubble, spoiling our fun. (And I use "our" very loosely)

    I was looking forward to the open source aspect. Just to have the possibility of adding some bells and whistles would be great. There is a lot that this application could do. Some "PicMultiCalc like" functions could be added ... all digital includes, all sorts of possibilities.
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default

    Leave it to Darrel to be a couple steps ahead of us.
    Time wise I probably would not get much done before Darrel's (??) program comes out. So I will wait some.
    Who know, maybe it will be open for tweaks. Or not have everything we have talked about. If not then.... We fill the gaps.

    What else could we do like this? I like the idea of an open community project.
    Dave
    Always wear safety glasses while programming.

  12. #12
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I can’t say from whom or where right now, but there is already a functioning Configurator that will be available fairly soon.
    The usual suspect is the "who" I suppose.

    Well, when he is involved, job gets done!

    Anxious....

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    Maybe i should have said not to spend time on the CONFIG part, which is what it does, and what I saw you working on so far.

    I don't want to stop all the other stuff you could be working on, because that will be very valuable too.

    I did ask permission before revealing the configurator (because it's not from me), I just hated to see the time being spent here. But if that time were redirected towards setting up all those crazy internal registers, I'm sure it would be extremely usefull and appreciated by everyone.
    DT

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