Releases: jbliesener/FlightSimSwitches
Permit function to customize determination of current switch position for multi position switches
Before this release, each pin of a MultiPositionSwitch corresponded to exactly one switch position. However, there are switches that transmit their position in an already coded form. For these switches, the new function setFindSwitchPosition
function now allows to specify a function that reads the switch inputs and, in a customised way, returns the current switch position.
The specified function can use the following methods:
bool isPinOn(pinIndex)
: read the nth input pin. Considers activeHigh and activeLow and directly returns if the pin is in an "on" stateuint8_t getNumberOfPositions()
: returns the number of defined input pins
Clear columnPinsAreDynamic if column pins are set with SetInputPins
1.1.14 Clear columnsPinsAreDynamic if column pins are set
More fixes for Teensy 2.0
This version adds more support for Teensy 2.0:
- Previous versions did not support more than 16 input lines
- Dataref and command names weren't printed on the serial console
- Fixed strings moved into flash memory
Fixes for compatibility with Teensy 2.0
Teensy 2.0 uses a different symbol for flight sim controls and doesn't implement INPUT_PULLDOWN. This patch provides compatibility with Teensy 2.0
Fixed CRITICAL bug in setRowNumber
This is a critical bugfix
In previous versions of the library, the FlightSimSwitches.loop() would cause a short pulse on a random pin number in regular intervals. This erroneous behaviour can have a lot of side effects and it is URGENTLY recommended to update to the new version of the library.
Added FLIGHTSIM_STARTUP macro
This adds a new macro called FLIGHTSIM_STARTUP that you can use as the first line in the setup() function of your sketch. It'll init the Serial output port and print a startup message with the file name and compilation date
Fixed scanrate & activeLow parameters
1.1.9 Fixed scan rate & activeLow on initializing FlightSimSwitches
Lots of demos...
This release adds a number of examples as cited in the documentation. Furthermore, the FlightSimPushbutton object now provides correct debug output.
Remove debug code in startup
1.1.7 Remove debug message in startup
Simplified pin number constructors
1.1.6 Version 1.1.6: Added simple initializers