summaryrefslogtreecommitdiff
path: root/hid/platformio.ini
diff options
context:
space:
mode:
Diffstat (limited to 'hid/platformio.ini')
-rw-r--r--hid/platformio.ini26
1 files changed, 18 insertions, 8 deletions
diff --git a/hid/platformio.ini b/hid/platformio.ini
index e1952afa..113a4148 100644
--- a/hid/platformio.ini
+++ b/hid/platformio.ini
@@ -10,23 +10,33 @@
[common]
lib_deps =
+build_flags =
+ -DCMD_SERIAL=Serial1
-[env:serial_prod]
+[env:usb]
platform = atmelavr
board = micro
framework = arduino
upload_port = /dev/ttyACM0
-lib_deps = ${common.lib_deps}
-build_flags = -DCMD_SERIAL=Serial1
+lib_deps =
+ ${common.lib_deps}
+build_flags =
+ ${common.build_flags}
+ -DHID_USB
extra_scripts = post:patch.py
-[env:serial_test]
+[env:ps2]
platform = atmelavr
board = micro
framework = arduino
upload_port = /dev/ttyACM0
-lib_deps = ${common.lib_deps}
-build_flags = -DCMD_SERIAL=Serial
-extra_scripts = post:patch.py
+lib_deps =
+ ${common.lib_deps}
+ git+https://github.com/Harvie/ps2dev#v0.0.3
+build_flags =
+ ${common.build_flags}
+ -DHID_PS2
+ -DPS2_KBD_CLOCK_PIN=3
+ -DPS2_KBD_DATA_PIN=2