summaryrefslogtreecommitdiff
path: root/hid/platformio.ini
blob: c6c7c34b0e803d5b54f329f86300ef212fc5ca78 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
; 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_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}
	[email protected]
	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