[Keymap] Adding encg keymap for 2% Milk keyboard (#11041)

* adding my keymap

* Updating coding convention and style for new keymap PR

* Added GPL license header and to-do list to readme
This commit is contained in:
encg
2020-12-06 12:04:22 -08:00
committed by GitHub
parent e2e6ff43ab
commit 3a69d688f2
4 changed files with 243 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# encg's Keymap
## What is this?
A simple slot machine emulator for the [2% Milk Keyboard](https://github.com/Spaceman/SpaceboardsHardware/tree/master/Keyboards/2%25%20Milk). This idea is based on the [implementation by /u/ln8r on /r/mechanicalkeyboards](https://www.reddit.com/r/MechanicalKeyboards/comments/hcw21b/2_milk_slot_machine/).
## How does it work?
The top button outputs all possible winning emoji combinations followed by a corresponding "score." Emojis are output one-by-one with a short delay to simulate the "slots" feel.
![IMG](https://i.imgur.com/rUc3IOn.gif)
The bottom button outputs 3 random emojis one by one. The random function takes `timer_read()` as its seed value [(referenced here)](https://beta.docs.qmk.fm/developing-qmk/qmk-reference/ref_functions#software-timers).
![IMG](https://i.imgur.com/4EREsIq.png)
## Unicode Setup
This keymap's default unicode input mode is `UC_WINC` which requires [WinCompose](https://github.com/samhocevar/wincompose). For other OSes, see [QMK documentation on unicode input modes](https://docs.qmk.fm/#/feature_unicode?id=input-modes).
## Ideas for the future
- [ ] Factor in emoji hierarchy into RNG algorithm
- [ ] Random/Wildcard emoji
- [ ] Keep a count for winng combinations
- [ ] Implement tap dance for easily switching unicode input types