Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 50227/buttons50227.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ unsigned char butt_scan()
const char * butt_scan2label(unsigned char at)
{
static const char *_labels[KEY_ROWS][KEY_COLS] = {
{ "18R", "18L", "09", i "HELI", },
{ "18R", "18L", "09", "HELI", },
{ "L1", "36L", "36R", "27", },
{ "R2", "R1", "18C", "24", },
{ "04", "R3", "L2", "36C" },
Expand Down
82 changes: 56 additions & 26 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,59 @@
[env:the_latest_version]
[platformio]
include_dir = ${PROJECT_DIR}/shared
src_dir = ${PROJECT_DIR}/.
default_envs = 50228, 50229, 50227

[env:50228] ;50228 board
build_src_filter =
-<*>
+<50228/*.c>
+<shared/*.c>
platform = atmelavr

[env:exact_version]
platform = atmelavr@1.2.3

# Semantic Versioning Rules
[env:specific_major_version]
# any compatible version (exact version for 1.x.x versions)
platform = atmelavr@^1.2.3

[env:specific_major_and_minor_version]
# any version with the same major and minor versions, and an equal or greater patch version
platform = atmelavr@~1.2.3

[env:development_verion_by_git]
platform = https://github.com/platformio/platform-atmelavr.git

[env:custom_git_branch]
platform = https://github.com/platformio/platform-atmelavr.git#custom-branch

[env:specific_git_commit]
platform = https://github.com/platformio/platform-atmelavr.git#1234567890abcdef

[env:ATmega161]
board_build.mcu = atmega161
board_build.f_cpu = 8000000L
;board = ATmega161 ; unknown board
;framework = arduino ; // arduino does not support Atmega161
framework = ; leeg, want geen arduino

build_flags = -g -Wall -O3 -std=gnu99 -I 50228 -I shared -Wl,-Map=disp.map

upload_protocol = custom
upload_port = usb

upload_flags =
-C
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p
m161
-c
avrispmkII
-v
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i


[env:50229] ; 50229 board can have a Atmega161 or Atmega162
build_src_filter =
-<*>
+<50229/*.c>
+<shared/*.c>
platform = atmelavr
board_build.mcu = atmega162
board_build.f_cpu = 8000000L
board = ATmega162
;framework = arduino ; do not use arduino framework, even though m162 is supported, else you get <artificial>:(.text.startup+0x14e): undefined reference to `pd44_sendCtrl' errors
build_flags = -g -Wall -O3 -std=gnu99 -I 50229 -I shared -Wl,-Map=disp.map


[env:50227]
build_src_filter =
-<*>
+<50227/*.c>
+<shared/*.c>
platform = atmelavr
board = ATmega161
framework = arduino
board_build.mcu = atmega161
board_build.f_cpu = 8000000L
;board = ATmega161 ; unknown board
;framework = arduino ; // arduino does not support Atmega161
framework = ; leeg, want geen arduino

build_flags = -g -Wall -O3 -std=gnu99 -I 50227 -I shared -Wl,-Map=disp.map