]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Keyboard: Support PCBDOWN variants for Atreus keyboard (#3735)
authorAlex Schroeder <kensanata@gmail.com>
Fri, 24 Aug 2018 15:53:03 +0000 (17:53 +0200)
committerDrashna Jaelre <drashna@live.com>
Fri, 24 Aug 2018 15:53:03 +0000 (08:53 -0700)
keyboards/atreus/readme.md
keyboards/atreus/rules.mk

index 6a86ff2e0006a714876bc3764abe416629c804ea..0756c186c487c959323a876368ac3b905450ffe1 100644 (file)
@@ -16,4 +16,6 @@ Make example for this keyboard (after setting up your build environment):
 Unlike the TMK firmware, this command should be run from the root of
 the repository, not the directory containing this readme.
 
+If your keyboard layout is a mirror image of what you expected (i.e. you do not get QWERTY on the left but YTREWQ on the right), then you have an A-Star powered Atreus (older than March 2016) with PCB labels facing *down* instead of up. Specify that by adding `PCBDOWN=yes` to your `make` commands.
+
 See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information.
index 2c8418beb710b783908f2279365b2c3c9989a694..2488fd5e8742e0c54f585f7e41b8f5d9c9215095 100644 (file)
@@ -5,6 +5,9 @@ ifdef TEENSY2
     ATREUS_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
 else
     OPT_DEFS += -DATREUS_ASTAR
+ifdef PCBDOWN
+    OPT_DEFS += -DPCBDOWN
+endif
     ATREUS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
                             avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
 endif