Selaa lähdekoodia

Keyboard: E6V2 LE Improvements (#3486)

* fix for that stupid LED

* formatting changes and add firmware flashing warning to readmes

* update readme with more info

* add LAYOUT_60_ansi thanks to help from phlop

* add configurator support for 60_ansi

* add 60_ansi for community layout support
MechMerlin 6 vuotta sitten
vanhempi
commit
723d338c62

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
keyboards/e6v2/le/info.json


+ 8 - 19
keyboards/e6v2/le/le.c

@@ -21,24 +21,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
 	return process_record_user(keycode, record);
 }
 
-void led_set_kb(uint8_t usb_led) {
-	// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
-	DDRB |= (1<<7);
-	if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
-			// output low
-			DDRB |= (1<<2);
-			PORTB &= ~(1<<2);
-		} else {
-			// Hi-Z
-			DDRB &= ~(1<<2);
-			PORTB &= ~(1<<2);
-		}
-	if (usb_led == 0){
-		PORTB |= (1<<7);
+void led_set_user(uint8_t usb_led) {
+	if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+		DDRB |= (1 << 7); 
+		PORTB &= ~(1 << 7);
+	} else {
+		DDRB &= ~(1 << 7); 
+		PORTB &= ~(1 << 7);
 	}
-	else{
-		PORTB &= ~(1<<7);
-	}
-
-	led_set_user(usb_led);
 }
+

+ 15 - 0
keyboards/e6v2/le/le.h

@@ -18,4 +18,19 @@
   { K40, KC_NO, K42, K43, K44, KC_NO, KC_NO, K47, KC_NO, K49, K4A, K4B, K4C, K4D, K4E   }, \
 }
 
+#define LAYOUT_60_ansi( \
+    K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C,      K0D, \
+    K10,      K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \
+    K20,      K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D,      \
+    K30,      K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B,      K3D,      \
+    K40,           K43, K44,           K47,           K4A, K4B,      K4D, K4E  \
+)\
+{\
+  { K00, K01,   K02,   K03, K04, K05,   K06,   K07, K08,   K09,   K0A, K0B, K0C,   K0D, KC_NO }, \
+  { K10, KC_NO, K12,   K13, K14, K15,   K16,   K17, K18,   K19,   K1A, K1B, K1C,   K1D, K1E   }, \
+  { K20, KC_NO, K22,   K23, K24, K25,   K26,   K27, K28,   K29,   K2A, K2B, K2C,   K2D, KC_NO }, \
+  { K30, KC_NO, K32,   K33, K34, K35,   K36,   K37, K38,   K39,   K3A, K3B, KC_NO, K3D, KC_NO }, \
+  { K40, KC_NO, KC_NO, K43, K44, KC_NO, KC_NO, K47, KC_NO, KC_NO, K4A, K4B, KC_NO, K4D, K4E   }, \
+}
+
 #endif

+ 6 - 4
keyboards/e6v2/le/readme.md

@@ -1,10 +1,12 @@
 # E6-V2 Last Edition (LE)
 
-These docs are for the QMK version of the PCB. [More info on qmk.fm](http://qmk.fm/)
+These docs are for the QMK version of the E6-V2 PCB. [More info on qmk.fm](http://qmk.fm/)
 
-Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
-Hardware Supported: E6-V2 LE Mid Port rev.qmk
-Hardware Availability: [geekhack.org/index.php?topic=90787.0](https://geekhack.org/index.php?topic=90787.0)
+Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)  
+Hardware Supported: E6-V2 LE Mid Port rev.qmk  
+Hardware Availability: [geekhack.org/index.php?topic=90787.0](https://geekhack.org/index.php?topic=90787.0)  
+
+**Please do not flash LE firmware on OE hardware.** 
 
 Make example for this keyboard (after setting up your build environment):
 

+ 2 - 0
keyboards/e6v2/le/rules.mk

@@ -66,3 +66,5 @@ MIDI_ENABLE = no            # MIDI controls
 UNICODE_ENABLE = no         # Unicode
 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
 AUDIO_ENABLE = no           # Audio output on port C6
+
+LAYOUTS = 60_ansi

+ 6 - 4
keyboards/e6v2/oe/readme.md

@@ -1,10 +1,12 @@
 # E6-V2 Original Edition (OE)
 
-These docs are for the QMK version of the PCB. [More info on qmk.fm](http://qmk.fm/)
+These docs are for the QMK version of the E6-V2 PCB. [More info on qmk.fm](http://qmk.fm/)
 
-Keyboard Maintainer: [amnesia0287](https://github.com/amnesia0287)
-Hardware Supported: E6-V2 OE Mid Port rev.qmk
-Hardware Availability: [geekhack.org/index.php?topic=90787.0](https://geekhack.org/index.php?topic=90787.0)
+Keyboard Maintainer: [amnesia0287](https://github.com/amnesia0287)  
+Hardware Supported: E6-V2 OE Mid Port rev.qmk  
+Hardware Availability: [geekhack.org/index.php?topic=90787.0](https://geekhack.org/index.php?topic=90787.0)  
+
+**Please do not flash OE firmware on LE hardware.** 
 
 Make example for this keyboard (after setting up your build environment):
 

+ 13 - 2
keyboards/e6v2/readme.md

@@ -1,9 +1,20 @@
 # E6-V2
 
-These docs are for the QMK version of the PCB. [More info on qmk.fm](http://qmk.fm/)
+The E6-V2 is a 60% keyboard manufactured by Exclusive. 
+
+### Round 1:
+- ps2avrGB PCB and QMK powered PCB option (OE PCB)  
+- Center mount and side mount USB  
+
+### Round 2
+- ps2avrGB PCB and QMK powered PCB option (LE PCB)
+- Only center mount USB offered
+- All brass option
+
+These docs are for the QMK version of the E6-V2 PCB. [More info on qmk.fm](http://qmk.fm/)
 
 The E6V2 has been available with either a bootmapper client or QMK powered PCB. During the second round, the QMK powered PCB was redesigned and used different ports and a different switch matrix. 
 
-Please use the appropriate version when making your firmware. 
+Please use the appropriate version when making your firmware. Flashing one in place of the other, can brick your PCB. Please be certain whether you have a OE or LE  PCB. 
 
 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.

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä