summaryrefslogtreecommitdiff
path: root/hid/platformio.ini
blob: b53192306be9f26617187263bc691ff348688925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
; 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 =
	[email protected]
build_flags =
	-DCMD_SERIAL=Serial1

[env:usb]
platform = atmelavr
board = micro
framework = arduino
upload_port = /dev/ttyACM0
lib_deps =
	${common.lib_deps}
	[email protected]
build_flags =
	${common.build_flags}
	-DHID_USB
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
	-DPS2_KBD_CLOCK_PIN=7
	-DPS2_KBD_DATA_PIN=5