aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGabriel Hart2021-02-01 10:33:43 -0600
committerGabriel Hart2021-02-01 10:33:43 -0600
commit4dfe5e628823c478124a03e381ee6bcdcb9ca314 (patch)
treef572286b9751123b8d2c60cf4acfc1cf6e5fbf1c /hw
parentUpdated the Sofirn SP10S Anduril board (diff)
downloadanduril-4dfe5e628823c478124a03e381ee6bcdcb9ca314.tar.gz
anduril-4dfe5e628823c478124a03e381ee6bcdcb9ca314.tar.bz2
anduril-4dfe5e628823c478124a03e381ee6bcdcb9ca314.zip
Add RGB Aux functionality for 1-Series
Diffstat (limited to '')
-rw-r--r--hwdef-BLF_Q8-T1616.h5
-rw-r--r--hwdef-gchart-fet1-t16.h6
2 files changed, 4 insertions, 7 deletions
diff --git a/hwdef-BLF_Q8-T1616.h b/hwdef-BLF_Q8-T1616.h
index a838655..6dfb4ab 100644
--- a/hwdef-BLF_Q8-T1616.h
+++ b/hwdef-BLF_Q8-T1616.h
@@ -24,7 +24,7 @@ Driver pinout:
#define PWM_CHANNELS 2
#ifndef SWITCH_PIN
-#define SWITCH_PIN 5
+#define SWITCH_PIN PIN5_bp
#define SWITCH_PORT VPORTA.IN
#define SWITCH_ISC_REG PORTA.PIN2CTRL
#define SWITCH_VECT PORTA_PORT_vect
@@ -52,9 +52,8 @@ Driver pinout:
// lighted button
#ifndef AUXLED_PIN
-#define AUXLED_PIN PIN5_bm
+#define AUXLED_PIN PIN5_bp
#define AUXLED_PORT PORTB
-#define AUXLED_CTRL PIN5CTRL
#endif
diff --git a/hwdef-gchart-fet1-t16.h b/hwdef-gchart-fet1-t16.h
index 3a79586..e8fd11c 100644
--- a/hwdef-gchart-fet1-t16.h
+++ b/hwdef-gchart-fet1-t16.h
@@ -23,12 +23,11 @@ Read voltage from VCC pin, has diode with ~0.4v drop
#define PWM_CHANNELS 2
#ifndef SWITCH_PIN
-#define SWITCH_PIN 2
+#define SWITCH_PIN PIN2_bp
#define SWITCH_PORT VPORTB.IN
#define SWITCH_ISC_REG PORTB.PIN2CTRL
#define SWITCH_VECT PORTB_PORT_vect
#define SWITCH_INTFLG VPORTB.INTFLAGS
-//#define SWITCH_ISC_REG _SFR_MEM8(&PORTB + 0x10 + SWITCH_PIN)
#endif
@@ -52,9 +51,8 @@ Read voltage from VCC pin, has diode with ~0.4v drop
// lighted button
#ifndef AUXLED_PIN
-#define AUXLED_PIN PIN3_bm
+#define AUXLED_PIN PIN3_bp
#define AUXLED_PORT PORTB
-#define AUXLED_CTRL PIN3CTRL
#endif
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.