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

Added support for Teensy 4.0 and 4.1 #564

Merged
merged 3 commits into from Nov 18, 2020
Merged

Added support for Teensy 4.0 and 4.1 #564

merged 3 commits into from Nov 18, 2020

Conversation

Lauszus
Copy link
Collaborator

@Lauszus Lauszus commented Nov 17, 2020

Fixes #529, fixes #560

@Lauszus Lauszus force-pushed the teensy4x branch 13 times, most recently from 522c3cb to 04c377f Compare November 18, 2020 16:05
@Lauszus
Copy link
Collaborator Author

Lauszus commented Nov 18, 2020

I've also replaced Travis with Github Actions, as Travis was painfully slow to even start the jobs.

@unitbob1
Copy link

To confirm, does this enable the use of the Teensy 4.1 natively, using the USB headers found on top of the board, or using the external USB host shield?

@Lauszus
Copy link
Collaborator Author

Lauszus commented Feb 11, 2021

@unitbob1 this is for using the USB host shield only. If you want to use the native interface, then check out this library: https://github.com/PaulStoffregen/USBHost_t36

@xxxajk
Copy link
Contributor

xxxajk commented Feb 11, 2021

...or uhs3, which still needs a tid-bit of work, but should support it just fine.

@shift838
Copy link

Even with this latest code to add support for Teensy 4.0 and 4.1 I still cannot get this my code compiled. It compiles under Teensy 3.2 but not 4.0 or 4.1

I get the below error:

#error "Please define board in avrpins.h"

@xxxajk
Copy link
Contributor

xxxajk commented Mar 17, 2022

Native interface is also supported under UHS30

@shift838
Copy link

would this require code changes or is UHS30 backwards compatible to 2.0 syntax?

@xxxajk
Copy link
Contributor

xxxajk commented Mar 18, 2022

It is mostly compatible. Many things are changed for the better.
Examples:

You don't have to constantly poll the USB, because it operates in the background once started.

You define in the sketch what you want to use

Interfaces are unified, e.g. USB serial convertors are all treated the same.

...and much more

@shift838
Copy link

i uninstalled the Arduino IDE and reinstalled.

in 2.0 when I compile for Teensy 3.2 i would use the below include statements:

#include <hidboot.h>
#include <usbhub.h>

Is there any docs to explain the new UHS 3.0 ?

What would replace those include statements.

I have tried

#include <UHS_HIDRAWBOOT_KEYBOARD.h>
#include <UHS_HUB.h>

but get :

fatal error: UHS_HIDRAWBOOT_KEYBOARD.h: No such file or directory

@xxxajk
Copy link
Contributor

xxxajk commented Mar 18, 2022

You use defines, not includes. See the examples.

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.

"Please define board in avrpins.h" Teeensy 4.0 Support for Teensy 4.0
4 participants