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 leonardo build target for leonardo + usb2.0 shield based projects #22243

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions keyboards/converter/usb_usb/hasu/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Processor frequency
F_CPU = 16000000
# This file intentionally left blank
3 changes: 3 additions & 0 deletions keyboards/converter/usb_usb/leonardo/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bootloader": "caterina"
}
1 change: 1 addition & 0 deletions keyboards/converter/usb_usb/leonardo/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank
6 changes: 4 additions & 2 deletions keyboards/converter/usb_usb/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Make example for this keyboard (after setting up your build environment):

make converter/usb_usb:default

If you use Arduino Leonardo with a USB Host Shield:

make converter/usb_usb/leonardo:default

See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.

Note that you have to choose the right hardware variant as your subproject, otherwise you will probably have issues.
Expand All @@ -23,8 +27,6 @@ If you are sure you have this correct, try changeing the default in `usb_usb/rul

The Pro Micro variant uses a 3.3V Pro Micro and thus runs at 8MHz, hence the following line in `usb_usb/pro_micro/rules.mk`:
`F_CPU = 8000000`
The converter sold by Hasu runs at 16MHz and so the corresponding line in `usb_usb/hasu/rules.mk` is:
`F_CPU = 16000000`

Getting the Hardware
--------------------
Expand Down