Shop OBEX P1 Docs P2 Docs Learn Events
Demo Board and Keyboard Present Code — Parallax Forums

Demo Board and Keyboard Present Code

Nick WaldvogelNick Waldvogel Posts: 71
edited 2007-07-17 04:01 in Propeller 1
I am trying to use the keyboard present code found inside of the keyboard object.· I wrote a simple if statement for true or false.· All I get is that it is always connected???· Is there maybe something I overlooked??

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-07-17 03:50
    Are you delaying at least 2 seconds before testing it's presence? The comments in the present method specify this requirement.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • nyznyz Posts: 6
    edited 2007-07-17 04:01
    I've been playing with keyboard too :

    this works :


    'start the keyboard
    kb.start(26, 27)

    waitcnt(clkfreq * 3 + cnt)


    if kb.present
    'insert appropriate code here [noparse]:)[/noparse]




    cheers
    Dave
Sign In or Register to comment.