Search:

Type: Posts; User: johndeaton

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,610

    That is correct. I had the define line as: ...

    That is correct. I had the define line as:




    #define DEBOUNCE_TIME 30;



    Thanks.
  2. Replies
    6
    Views
    1,610

    LOL. I just found my stupid error. I ended the...

    LOL. I just found my stupid error. I ended the DEBOUNCE_TIME definition with a semicolon.
  3. Replies
    6
    Views
    1,610

    Yes. It seems fine, doesn't it. I just broke it...

    Yes. It seems fine, doesn't it. I just broke it up like this:



    if (!GPIO_ReadInputPin(BUTTON_PORT,BUTTON_PIN)) { if (button_db > DEBOUNCE_TIME) button_press_gf = TRUE; }


    It...
  4. Replies
    6
    Views
    1,610

    See anything wrong with this simple line?

    Hello All,

    I am getting an error with what seems to be very simple. Here it is


    if (!GPIO_ReadInputPin(BUTTON_PORT,BUTTON_PIN) && (button_db > DEBOUNCE_TIME)) { button_press_gf = TRUE; }...
  5. Replies
    4
    Views
    1,319

    Thanks for your comments. John

    Thanks for your comments.
    John
  6. Replies
    4
    Views
    1,319

    This worked. Thanks. I'm still unsure why mine...

    This worked. Thanks. I'm still unsure why mine didn't work though. In this case, making a typedef of the pointer was trivial. But, in a larger program it might be useful. Do you know why I got...
  7. Replies
    4
    Views
    1,319

    Pointer to Structure Error Message

    Hello All,
    I am working through the example problem at Prime Pattern | CodeChef. (As a side note: This is a very good site for anyone that wants to practice their programming skills.) I have made...
  8. It works on my machine within 30 seconds. Try to...

    It works on my machine within 30 seconds. Try to compile it on yours and see if it works. I noticed that zero was included in that statement. That is why I added the !r1, !r2, ..., !r8 to the do...
  9. Programming Challenge Problem - Eight Queens

    Hello All,

    I was recently looking for problems online to practice my code writing. I came across this problem, and I thought others may like to try it. Here is the question: where can you place...
  10. Replies
    8
    Views
    1,522

    Here is another way to do it: #include...

    Here is another way to do it:




    #include <iostream>

    using namespace std;

    typedef struct
  11. Replies
    2
    Views
    811

    Of course. I thought it was probably something...

    Of course. I thought it was probably something easy. Thanks for the help!
  12. Replies
    2
    Views
    811

    Noob Question about classes

    Hello -

    I have been going through the C++ tutorial about classes. I decided to try a simple program to practice. The program asks the users for a cook time and says if the cooking worked or not...
Results 1 to 12 of 12