Shop OBEX P1 Docs P2 Docs Learn Events
why does my change in a RC-Decay object not work ? — Parallax Forums

why does my change in a RC-Decay object not work ?

lockadoclockadoc Posts: 115
edited 2009-10-30 18:29 in Propeller 1
I've· changed the object "TestRcDecay" from the Propeller Education·Kit· and it works, I than tried to change the· methods output from calling the lightshow4 (simple Led blinking )method to just ·to all Leds on.the place where I'm trying to change is the·fifth line from the bottom

BillyS

Post Edited (lockadoc) : 10/30/2009 12:41:02 PM GMT

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-30 16:01
    Hello Billy,

    I read your posting I reread your posting. I looked into your code. But it is still not clear to me what you are trying to do.

    OK one single try to guess:

    Do want all LEDs (how many?) to be switched on ?
    Can you please post another zip-archive where INSIDE the spinfile you made some comment-sign like '<xxxx here !! I want to ......


    to clear up ?

    best regards

    Stefan
  • lockadoclockadoc Posts: 115
    edited 2009-10-30 17:21
    Soved it..............................

    I forgot to make pins 0 to 7 output.

    I was· working on it to give you a better understanding of what I wanted, than I smack my

    head when I saw what was missing,,

    I'm getting closer to my goal, after i add this part to it I want to ask you if my documentation is understanable THANKS STEFANL38.

    Thanks BillS
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-30 18:29
    Hello Billy,

    I'm sorry I'm really willing to help but I don't understand your comments.

    could you please describe in more details all different situations

    I gues this is

    situation 1: the condition if (photolight > 100000 ) is TRUE (does this mean bright light because the sun is out and shining ?)
    detailed descritption of what should happen

    situation 2: the condition if (photolight > 100000 ) is FALSE (does this mean darkness because the sun down and it is night ?)
    detailed descritption of what should happen


    or do you mean some combinations of
    situation 1: the condition if (photolight > 100000 ) is TRUE and some LEDs are switched ON ?

    situation 2: the condition if (photolight > 100000 ) is TRUE and some LEDs are switched OFF ?

    situation 3: the condition if (photolight > 100000 ) is FALSE and some LEDs are switched ON ?

    situation 4: the condition if (photolight > 100000 ) is FALSE and some LEDs are switched OFF ?


    Now make a break. Please stop thinking about your program for a moment.
    I want you to get into a helicopter and take a look "from above" on this thread

    I would describe it that way: You are asking for help and that is really good. And - there is something you can improve.
    I got the impression you made some quick postings get to the point by writing short descriptions and questions.
    Maybe to get quick answers and come to a solution in a short time. That's a good good intention.

    Somehow you drove a little bit too far in that direction. So what happened was the explaining formed out to be hard to understand
    for others. Now these others have to ask back. And this slows down the process to get a solution.
    If you take more time to describe what is and what you want to do by

    adding complete code with easy to understand comments
    consequent using of the names of the PUB-methods, variables etc.
    adding a description of what you want to do in normal words
    example:
    "if button at housedoor is pressed, switch on relay for yardlight .."

    instead of "if pin is high set output low (leaves open a lot of questions which pin ? when is it high ? pressed or unpressed ? pull-up or pull-down-resistor ? which output-pin ?)

    best regards

    Stefan
Sign In or Register to comment.