aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-30 08:44:31 -0700
committerSelene ToyKeeper2023-11-30 08:44:31 -0700
commit1153a7c8b4130abb62654476bc958399d687cbf2 (patch)
tree26368a25fa8979c86e6063aade76bbd738511420
parentprevent future issues like the FW3X had (diff)
downloadanduril-1153a7c8b4130abb62654476bc958399d687cbf2.tar.gz
anduril-1153a7c8b4130abb62654476bc958399d687cbf2.tar.bz2
anduril-1153a7c8b4130abb62654476bc958399d687cbf2.zip
added a build target for FW3X with manually-fixed RGB aux wiring
-rw-r--r--hw/lumintop/fw3x-lume1/hwdef.h12
-rw-r--r--hw/lumintop/fw3x-lume1/rgbswap/anduril.h11
-rw-r--r--hw/lumintop/fw3x-lume1/rgbswap/model1
3 files changed, 21 insertions, 3 deletions
diff --git a/hw/lumintop/fw3x-lume1/hwdef.h b/hw/lumintop/fw3x-lume1/hwdef.h
index 92a177f..021c4cf 100644
--- a/hw/lumintop/fw3x-lume1/hwdef.h
+++ b/hw/lumintop/fw3x-lume1/hwdef.h
@@ -153,9 +153,15 @@ uint16_t temp_raw2cooked(uint16_t measurement);
#define ADMUX_THERM_EXTERNAL_SENSOR 0b00001011
// this driver allows for aux LEDs under the optic
-#define AUXLED_R_PIN PA3 // pin 2
-#define AUXLED_G_PIN PA4 // pin 3
-#define AUXLED_B_PIN PA5 // pin 4
+#ifdef FW3X_RGB_SWAP // wiring fixed by end user
+ #define AUXLED_R_PIN PA5 // pin 2
+ #define AUXLED_G_PIN PA4 // pin 3
+ #define AUXLED_B_PIN PA3 // pin 4
+#else // Lumintop's factory wiring
+ #define AUXLED_R_PIN PA3 // pin 4
+ #define AUXLED_G_PIN PA4 // pin 3
+ #define AUXLED_B_PIN PA5 // pin 2
+#endif
#define AUXLED_RGB_PORT PORTA // PORTA or PORTB or PORTC
#define AUXLED_RGB_DDR DDRA // DDRA or DDRB or DDRC
#define AUXLED_RGB_PUE PUEA // PUEA or PUEB or PUEC
diff --git a/hw/lumintop/fw3x-lume1/rgbswap/anduril.h b/hw/lumintop/fw3x-lume1/rgbswap/anduril.h
new file mode 100644
index 0000000..2fba7ff
--- /dev/null
+++ b/hw/lumintop/fw3x-lume1/rgbswap/anduril.h
@@ -0,0 +1,11 @@
+// FW3X (RGB aux swapped) config options for Anduril
+// Copyright (C) 2023 Selene ToyKeeper
+// SPDX-License-Identifier: GPL-3.0-or-later
+#pragma once
+
+// Lumintop swapped red and blue wires. Some people fixed the wiring.
+// Then the firmware fixed the pinouts to match Lumintop's wiring.
+// This firmware exists for people who fixed their wiring.
+#define FW3X_RGB_SWAP
+#include "lumintop/fw3x-lume1/anduril.h"
+
diff --git a/hw/lumintop/fw3x-lume1/rgbswap/model b/hw/lumintop/fw3x-lume1/rgbswap/model
new file mode 100644
index 0000000..44505ce
--- /dev/null
+++ b/hw/lumintop/fw3x-lume1/rgbswap/model
@@ -0,0 +1 @@
+0315
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.