An I/O controller for virtual pinball machines: accelerometer nudge sensing, analog plunger input, button input encoding, LedWiz compatible output controls, and more.

Dependencies:   mbed FastIO FastPWM USBDevice

Fork of Pinscape_Controller by Mike R

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TinyDigitalIn.cpp Source File


00001 #include "TinyDigitalIn.h"
00003 // Dummy port for NC (not connected) ports.  This is simply a memory
00004 // location that always reads as all ones.  This lets us set up a pointer
00005 // in the instance so that we can read it as though it were really
00006 // connected to a port, but the port will always read as pulled up.
00007 const uint32_t TinyDigitalIn::pdir_nc = 0xFFFFFFFF;