1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboards/fc980c
James Young a03aa301de
Remove Full Bootmagic (#13846)
* disambiguate Bootmagic rules in keymaps

The files edited by this commit were added at a point in time where `BOOTMAGIC_ENABLE = yes` enabled full Bootmagic.

This commit edits the files to specify that full Bootmagic is intended.

* remove BOOTMAGIC_ENABLE=full setting

* unify commented BOOTMAGIC_ENABLE rules in keyboards

Explicitly sets `BOOTMAGIC_ENABLE = no` in keyboards where the rule was commented out.

Command:

```
find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#[ \t]*\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-zA-Z]\+\).*;\1 = no       # Virtual DIP switch configuration;g' {} +
```

* remove commented Bootmagic rules from keymap/user level

Command:

```
find keyboards/ layouts/ users/ -type f -name 'rules.mk' -exec sed -i -e '/#.*\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*/d' {} +
```

* update keyboard BOOTMAGIC_ENABLE rule formatting

Sets the formatting of BOOTMAGIC_ENABLE rules to `BOOTMAGIC_ENABLE = [value]`, without the inline comments (which will be replaced later).

Command:

```
find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' +
```

* update keyboards' BOOTMAGIC_ENABLE settings

Updates keyboard `rules.mk` files to use `BOOTMAGIC_ENABLE = lite` where `BOOTMAGIC_ENABLE = full` was being used.

Command:

```
find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = \)full;\1lite;g' '{}' +
```

* update keymap/user BOOTMAGIC_ENABLE settings

Updates keymap/user `rules.mk` files to use `BOOTMAGIC_ENABLE = lite` where `BOOTMAGIC_ENABLE = full` was being used.

Commands:

```
find keyboards/ -type f -name 'rules.mk' -and -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE[ \t=]\+\)full;\1lite;g' '{}' +
find layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE[ \t=]\+\)full;\1lite;g' '{}' +
```

* remove and replace inline comments in keyboards and keymap/user files

Removes and replaces the inline comments, which have been updated to read `Enable Bootmagic Lite`.

Commands:

```
find keyboards/ -type f -name 'rules.mk' -and -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' +
find layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' +
find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = lite\);\1     # Enable Bootmagic Lite;g' '{}' +
find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = yes\);\1      # Enable Bootmagic Lite;g' '{}' +
find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = no\);\1       # Enable Bootmagic Lite;g' '{}' +
```

* rename improperly named makefiles

Some files intended to be used as makefiles had improper names causing them to not be used as intended when building.

This commit corrects the filenames of the affected files.

* update renamed file with new rule formatting

* update QMK's template files

Updates QMK's `rules.mk` templates to use the new inline comment.

* update QMK Docs

- remove documentation of full Bootmagic
- update links to Bootmagic Lite doc
- add doc for Magic Keycodes

* rules.mk patch for coarse/ixora and coarse/vinta
2021-08-06 23:59:56 -07:00
..
keymaps [Keyboard] Add via support for the Leopold FC980C (#12860) 2021-06-15 21:18:20 -07:00
actuation_point.c actuation point adjustment for fc980c and fc660c (#2134) 2017-12-11 21:05:12 -05:00
actuation_point.h actuation point adjustment for fc980c and fc660c (#2134) 2017-12-11 21:05:12 -05:00
config.h [Keyboard] Add via support for the Leopold FC980C (#12860) 2021-06-15 21:18:20 -07:00
fc980c.c Refactor to use led config - Part 3 (#10966) 2020-11-18 17:51:53 +00:00
fc980c.h Fix fc980c.h update (#4682) 2018-12-19 08:23:28 -08:00
i2c.c actuation point adjustment for fc980c and fc660c (#2134) 2017-12-11 21:05:12 -05:00
i2c.h actuation point adjustment for fc980c and fc660c (#2134) 2017-12-11 21:05:12 -05:00
info.json FC980C: refactor and Configurator update 2018-12-18 09:15:28 -08:00
matrix.c [Keyboard][Bug] Add timer_avr to includes for broken builds (#13641) 2021-07-22 09:39:27 -07:00
readme.md Rename keyboard-level readmes to lower-case (#10759) 2020-10-25 15:23:42 +00:00
rules.mk Remove Full Bootmagic (#13846) 2021-08-06 23:59:56 -07:00

FC980C Alt Controller

This file and the entire QMK port of this board are based on its TMK implementation: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/fc980c


Make example for this keyboard (after setting up your build environment):

make fc980c:default

See build environment setup then the make instructions for more information.

To flash the firmware, press the reset button on the controller and run:

sudo make fc980c:default:dfu

This controller replaces original controller of Leopold FC980C and makes the keyboard programmable.

Discuss this here: https://geekhack.org/index.php?topic=90681.0

The keyboard is very similar electronically to its sibling model FC660C you can also refer this.

FC660C Alt Controller: https://geekhack.org/index.php?topic=88439.0

Actuation Point adjustment

You can adjust the actuation point of the keys by setting ACTUATION_DEPTH_ADJUSTMENT in config.h. A value above 0 will result in a deeper, less sensitive actuation whereas a value above 1 will result in a more shallow, more sensitive actuation. Be careful with this setting and use small values (+/-5). See the actuation-point-example keymap for an example. For more information, inspect the fc660c_i2c branch of TMK here. Functionality for writing to the EEPROM has deliberately not been included to reduce the chance of people messing up their boards.

Hardware

This project uses common and familiar ATmega32u4 but any microcontroller with 5V I/O will work.

  • Schematic of Alt controller: schematic.pdf

Pin configuration

Connector bridging between switch board and controller is Hirose DF14A-20P-1.25H.

|Switch  |Controller |
|  board |     board |Description                           |Function   |ATmega32u4
|--------|-----------|--------------------------------------|-----------|------------
| 1      |20         | FG                                   |FG         |GND
| 2      |19         | GND                                  |GND        |GND
| 3      |18         | GND                                  |GND        |GND
| 4      |17         | 3.3V                                 |V33        |3.3V/5V
| 5      |16         | 5V                                   |Vcc        |5V
| 6      |15         |*Z6-TP1684-4-HYS(o)                   |KEY_HYS    |PC7
| 7      |14         |*Z6-TP1684-2-KEY(i)                   |KEY_STATE  |PC6
| 8      |13         |*Z7-AD5258-5-SCL(I2C)                 |I2C_SCL    |PD0(TWI)
| 9      |12         |*Z7-AD5258-4-SDA(I2C)                 |I2C_SDA    |PD1(TWI)
|10      |11         |*Z5/4-LV4051A-6-~EN(Lo:Z5 Hi:Z4)      |COL_bit3   |PB3
|11      |10         |+Z3-LV07A-5 (LV4051A-9-C)             |COL_bit2   |PB2
|12      | 9         |+Z3-LV07A-1 (LV4051A-10-B)            |COL_bit1   |PB1
|13      | 8         |+Z3-LV07A-3 (LV4051A-11-A)            |COL_bit0   |PB0
|14      | 7         |+Z1-LVC138A-3-C                       |ROW_bit2   |PD6
|15      | 6         |+Z1-LVC138A-2-B                       |ROW_bit1   |PD5
|16      | 5         |+Z1-LVC138A-1-A                       |ROW_bit0   |PD4
|17      | 4         |+Z1-LVC138A-4-~G2A  Z6-TP1684-5-~EN   |KEY_ENABLE |PD7
|18      | 3         |+Q4-NPN-B-NumLock_LED(Hi:On)          |LED_NUML   |PB4
|19      | 2         |+Q3-NPN-B-CapsLock_LED(Hi:On)         |LED_CAPS   |PB5
|20      | 1         |+Q2-NPN-B-ScrollLock_LED(Hi:On)       |LED_SCRL   |PB6
* 5V intferface
+ 3.3V interface

Switch matrix

|    |0   |1   |2   |3   |4   |5   |6   |7   |8   |9   |A   |B   |C   |D   |E   |F   |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
|   0|Left|RCtl|RAlt|    |Down|P.  |Righ|P0  |X   |LGui|`   |V   |    |Esc |M   |Spc |
|   1|Fn  |.   |    |    |P1  |PEnt|P2  |P3  |Z   |LAlt|LCtl|C   |K   |    |N   |B   |
|   2|'   |/   |,   |    |P4  |P+  |P5  |P6  |D   |A   |LSft|F   |J   |F1  |H   |G   |
|   3|RSft|;   |L   |]   |Up  |    |    |    |S   |Q   |Caps|R   |I   |F3  |U   |T   |
|   4|    |    |    |    |    |    |    |    |    |    |    |    |    |    |    |    |
|   5|=   |-   |0   |\   |NLck|BSpc|P/  |P*  |3   |2   |    |4   |9   |F2  |7   |6   |
|   6|[   |P   |O   |Ent |P7  |P-  |P8  |P9  |W   |1   |Tab |E   |8   |F4  |Y   |5   |
|   7|F11 |F10 |F9  |F12 |Del |PgDn|Ins |PgUp|    |    |    |    |F8  |F5  |F7  |F6  |

Row designation

LV138A(Z1) selects one of 8 row lines and gives strobe by enabling with ~G2A(17).

|ROW |bit0|bit1|bit2|
|----|----|----|----|
|0   |0   |0   |0   |
|1   |1   |0   |0   |
|2   |0   |1   |0   |
|3   |1   |1   |0   |
|4   |0   |0   |1   |
|5   |1   |0   |1   |
|6   |0   |1   |1   |
|7   |1   |1   |1   |

Column designation

LV4051A(Z4, Z5) select one of 16 column lines to sense capacitance of switches.

|COL |bit0|bit1|bit2|bit3|
|----|----|----|----|----|
|0   |0   |0   |0   |0   |
|1   |1   |0   |0   |0   |
|2   |0   |1   |0   |0   |
|3   |1   |1   |0   |0   |
|4   |0   |0   |1   |0   |
|5   |1   |0   |1   |0   |
|6   |0   |1   |1   |0   |
|7   |1   |1   |1   |0   |
|8   |0   |0   |0   |1   |
|9   |1   |0   |0   |1   |
|A   |0   |1   |0   |1   |
|B   |1   |1   |0   |1   |
|C   |0   |0   |1   |1   |
|D   |1   |0   |1   |1   |
|E   |0   |1   |1   |1   |
|F   |1   |1   |1   |1   |

Firmware

Just make to build firmware. And consult with wiki for further information.

Datasheets

3.3V power supply

LV07A and LVC138A are 5V-tolerant and can be powered with 5V, the keyboard will work only with 5V power supply. It may not be completely safe to operate LV138A with 5V Vcc, its datasheet says:

Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.

Digipot AD5258

Controller can operate AD5258 via I2C to change actuation point of keys. This may make keyboard unusable accidentally and it will be difficult to recovery in some situation. For safety firmware doesn't support it at this point, though.

Lower value of RDAC register causes shallower actuation point.

USB connector board

The keyboard has USB receptacle on small separate 1.0mm-thick PCB. USB receptacle is Hirose UX60SC-MB-5S8 while wire-to-PCB connector is TYU TU1252WNR-05S.

http://i.imgur.com/Nucn6h9.jpg

Resources