mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
60 lines
1.2 KiB
INI
60 lines
1.2 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; http://docs.platformio.org/page/projectconf.html
|
|
|
|
[common]
|
|
lib_deps =
|
|
TimerOne@1.1
|
|
build_flags =
|
|
-DCMD_SERIAL=Serial1
|
|
|
|
[env:usb]
|
|
platform = atmelavr
|
|
board = micro
|
|
framework = arduino
|
|
upload_port = /dev/ttyACM0
|
|
lib_deps =
|
|
${common.lib_deps}
|
|
HID-Project@2.6.1
|
|
build_flags =
|
|
${common.build_flags}
|
|
-DHID_USB_KBD
|
|
-DHID_USB_MOUSE
|
|
extra_scripts = post:patch.py
|
|
|
|
[env:ps2]
|
|
platform = atmelavr
|
|
board = micro
|
|
framework = arduino
|
|
upload_port = /dev/ttyACM0
|
|
lib_deps =
|
|
${common.lib_deps}
|
|
git+https://github.com/Harvie/ps2dev#v0.0.3
|
|
build_flags =
|
|
${common.build_flags}
|
|
-DHID_PS2_KBD
|
|
-DPS2_KBD_CLOCK_PIN=7
|
|
-DPS2_KBD_DATA_PIN=5
|
|
|
|
[env:mixed]
|
|
platform = atmelavr
|
|
board = micro
|
|
framework = arduino
|
|
upload_port = /dev/ttyACM0
|
|
lib_deps =
|
|
${common.lib_deps}
|
|
HID-Project@2.6.1
|
|
git+https://github.com/Harvie/ps2dev#v0.0.3
|
|
build_flags =
|
|
${common.build_flags}
|
|
-DHID_PS2_KBD
|
|
-DHID_USB_MOUSE
|
|
-DPS2_KBD_CLOCK_PIN=7
|
|
-DPS2_KBD_DATA_PIN=5
|