Add leonardo build target for leonardo + usb2.0 shield based projects (#22243)

master
Le Zhang 2023-11-15 10:23:03 -05:00 committed by GitHub
parent d7b44239c2
commit adcc4d376c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View File

@ -1,2 +1 @@
# Processor frequency # This file intentionally left blank
F_CPU = 16000000

View File

@ -0,0 +1,3 @@
{
"bootloader": "caterina"
}

View File

@ -0,0 +1 @@
# This file intentionally left blank

View File

@ -11,6 +11,10 @@ Make example for this keyboard (after setting up your build environment):
make converter/usb_usb:default 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. 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. Note that you have to choose the right hardware variant as your subproject, otherwise you will probably have issues.
@ -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`: 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` `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 Getting the Hardware
-------------------- --------------------