Shop OBEX P1 Docs P2 Docs Learn Events
Documentation Errata — Parallax Forums

Documentation Errata

PyrotomPyrotom Posts: 84
edited 2005-11-14 14:15 in General Discussion
The documentation for stamp.core.Button on pages 160-163 lists a return value BUTTON_STILL_DOWN that does not exist, and does not explain BUTTON_DEBOUNCE, which does exist. The code listing 5.9 shows the correct set of responses. Under what conditions will it return BUTTON_DEBOUNCE?

Comments

  • PyrotomPyrotom Posts: 84
    edited 2005-11-14 13:14
    Also, in Program Listing 9.5 - EEPROM Test, in the setEEProm method, shouldn't you be ANDing the first byte with 0xFF, not 0xFE ?? Or am I missing something?
  • PyrotomPyrotom Posts: 84
    edited 2005-11-14 13:18
    One more glitch in the Button documentation - at the top of page 162 it lists the method "buttonState" - this should be "getState". Again, the code snippet has it right.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-11-14 14:15
    The BUTTON_DEBOUNCE state begins when a button goes from up to down.

    Then the debounce timer is started. If the button is still down when the
    debounce timer expires, the button state changes to BUTTON_DOWN.

    On the other two messages: you are right about those documentation errors.
    The classes are OK.

    regards peter
Sign In or Register to comment.