Releases: luni64/EncSim
Releases · luni64/EncSim
v2.3.0 Multiple Simulators
Index pulse generation added
New features:
This release added a possibility to generate periodic index pulses. To enable this feature pass the pin for the index signal as third parameter to the constructor. The period of the index pulses can be set with setPeriod(unsigned p);
Example:
#include "EncSim.h"
EncSim encSim(0, 1, 2); // A=0, B=1, Z=2
void setup()
{
encSim.begin();
encSim // setup parameters
.setFrequency(100'000) // 100 kCounts per second
.setPeriod(4096) // Index pulse every 4096 counts
.setPhase(90) // 90° phase signal
.setTotalBounceDuration(0); // no bouncing
encSim.moveRelAsync(INT32_MAX); // run for some time
}
void loop()
{
Serial.println(encSim.current); // print current 'position'
delay(100);
}
Precompiled binaries for the SerialControl example can be found here: https://github.com/luni64/EncSim/tree/master/examples/SerialControl/precompiled_binaries
Added compatibility to T4.0 and T4.1
This release replaces TeensyDelay by the TeensyTimerTool which is compatible to all ARM Teensies.
Binaries for the SerialControl example are attached below
First release
Precompiled .hex files for direct upload without installing the library.
Nomenclature of the files: EncSimSerial_TTT_CCC_BBB_VVV.hex
- TTT: Type of Teensy board
- CCC: CPU frequency
- BBB: Bus frequency
- VVV: Version