Shop OBEX P1 Docs P2 Docs Learn Events
enable the reader — Parallax Forums

enable the reader

coolbebecoolbebe Posts: 9
edited 2006-02-16 19:29 in General Discussion
How can i enable the reader? The reader enters its active state when the Enable pin is pulled low. would this work?
CPU.writePin(CPU.pins[noparse][[/noparse]0],false);
Thanks

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-02-16 19:29
    Yes,
    You can also use
    CPU.writePin(CPU.pin0,false);

    which takes less code because CPU.pin0 is a constant

    regards peter
    ·
Sign In or Register to comment.