Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FreqMeasure driver for Teensy 4.1 #87

Closed

Conversation

PaulStoffregen
Copy link

Can support 4 instances. Tuner applet still uses only 1.

image

image

@PaulStoffregen
Copy link
Author

Opps, I left a few Serial.print() in the code. Please delete or comment them out.

@djphazer
Copy link
Owner

djphazer commented Aug 6, 2024

This has been merged in for v1.8 - 1dd4b17

Along with some follow-up commits:
208ae72
3b43898

T4.0 works fine for TR1/TR2 (pin 0/1) but not for TR3/TR4 (pin 2/3)
It will work for pin 23/22 but those are connected to the encoders on
original hardware. I imagine the driver code needs different parameters
for FlexPWM to work on pins 2/3 instead (or maybe QuadTimer will also
work on pins 2/3), but I can't swim through the data sheets to figure it out!

Basically, Teensy 4.0 might need more attention if we want TR3/TR4 to work, but this is more than satisfactory!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants