anyone have an example for this?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Buick455
Posts: 3
Joined: Sun Nov 16, 2008 4:08 pm

anyone have an example for this?

Post by Buick455 »

What I'm trying to do is going to sound so simple to all of you, I’m using the demo right now to learn how all this works, seems pretty cool though :) I'm just having some issues... I have done it like 3 different ways and I always seem to be missing something at the end, lol.. I dont know If I will even be able to test it since the demo is limited to X amount of Icons.. maybe just a short version will have to do.

Device: 16F628a
Circuit Decription: 2 Momentary Tacts, 2 LEDs.
"Go Button" and a "Mode Button"
"Main LED" and "Mode LED"

Code: Select all

;;Walkthrough;;
At power up go to Mode 1 state

Mode 1 state                                                                      ;Solid Light
                -    Blink "Mode LED" 1x
                -    Turn off "Mode LED"
                -    if (Go) is pressed     	                
                             o	Light (Main LED) until it is depressed 
                -    if (Mode) is pressed
                             o	switch to (Mode 2 state)

Mode 2 state                                                                      ;Slow Flash

                -    Blink "Mode LED" 2x, and leave it on
                -    if (Go) is pressed
                             o	Light (Main LED) 1x per second, until it is depressed 
                -    if (Mode) is pressed
                             o	switch to (Mode 3 state)

Mode 3 state                                                                      ;Medium Flash

                -    Blink "Mode LED" 3x, and leave it on
                -    if (Go) is pressed
                             o	Light (Main LED) 2x per second, until it is depressed 
                -    if (Mode) is pressed
                             o	switch to (Mode 4 state)

Mode 4 state                                                                      ;Fast Flash

                -    Blink "Mode LED" 4x, and leave it on
                -    if (Go) is pressed
                             o	Light (Main LED) 3x per second, until it is depressed 
                -    if (Mode) is pressed
                             o	switch to (Mode 1 state)

thanx everyone :)

Buick455
Posts: 3
Joined: Sun Nov 16, 2008 4:08 pm

Re: anyone have an example for this?

Post by Buick455 »

nevermind, i got it, i think. lol, now if i can just get it ot work on my breadboard :roll:

Buick455
Posts: 3
Joined: Sun Nov 16, 2008 4:08 pm

Re: anyone have an example for this?

Post by Buick455 »

ok maybe i dont.. it isnt seeming to work on my breadboard, maybe wiring related.. but i just noticed during a simulation that the pins in the chip window arent going high when the LEDs are lighting up, shouldnt they be turning red?

proton
Flowcode V4 User
Posts: 50
Joined: Sun Feb 03, 2008 10:14 pm
Has thanked: 1 time

Re: anyone have an example for this?

Post by proton »

Post your program and i will have a look

Rgds

Post Reply