Port indexing & PWM for LED fade


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,681


    Did you find this post helpful? Yes | No

    Default Re: Port indexing & PWM for LED fade

    a quick read through the old pb2.6c book (page 30 in my edition) indicates the pin number is a hangover from the old basic stamp
    pin chips 0-7 8-15
    8 gpio
    14 porta portc
    18 portb porta
    28 portb portc

    remember that if you can
    Last edited by richard; - 2nd December 2013 at 22:07. Reason: editor eats white space

  2. #2
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: Port indexing & PWM for LED fade

    Yep! The manual says a constant of 0 -15. It just didn’t say that it starts on PortB.0 and continues into PortC.0 and then it confuses things by talking about PortA.0. the old basic stamp thing is just fine with me. No indexing needed, no fancy port descriptions, just a constants or variables of 0 – 15. Easy to cycle through or set up for Random enables. Why do I always complicate things! thanks guys for your comments.

    Wayne

Similar Threads

  1. Help with LED driver fade on/off
    By dfort in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th July 2009, 01:39
  2. PWM and fade effect
    By ruijc in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th July 2009, 11:58
  3. Port Indexing
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th September 2006, 13:33
  4. LED fade without PWM command
    By Nick in forum mel PIC BASIC
    Replies: 7
    Last Post: - 29th June 2005, 21:56
  5. Fade out an LED using PWM?
    By RossW in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 6th August 2004, 20:59

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