diff options
author | Nick Brassel <[email protected]> | 2023-11-28 16:39:48 +1100 |
---|---|---|
committer | Nick Brassel <[email protected]> | 2023-11-28 16:40:47 +1100 |
commit | 0115951de12bd4c798a43a380651c34552552e85 (patch) | |
tree | 62999011ae782d93aa6dc9c889615db2a840cafc /users/doogle999/doogle999.h | |
parent | 0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff) | |
parent | 4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff) | |
download | qmk_firmware-0.23.0.tar.gz qmk_firmware-0.23.0.zip |
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'users/doogle999/doogle999.h')
-rw-r--r-- | users/doogle999/doogle999.h | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/users/doogle999/doogle999.h b/users/doogle999/doogle999.h deleted file mode 100644 index 44c7c19fd9..0000000000 --- a/users/doogle999/doogle999.h +++ /dev/null @@ -1,99 +0,0 @@ -#ifndef USERSPACE -#define USERSPACE - -#include "quantum.h" - -#define NO_ACTION_ONESHOT -#define NO_ACTION_MACRO - -#define MODS_SHIFT_MASK (MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT)) - -// Layer the calculator is on -#define CALC_LAYER 2 - -// Inside is whether when you are in calc mode it should automatically force numlock, outside is whether it should do it outside of calculator mode -#define CALC_FORCE_NUM_LOCK_INSIDE_CALC true -#define CALC_FORCE_NUM_LOCK_OUTSIDE_CALC true - -// Maximum number of characters the calculator can have -#define CALC_BUFFER_SIZE 32 - -// Minimum width of the printed text / the number of decimal places -#define CALC_PRINT_SIZE 6 - -/*----- - Special ------*/ -#define CALC_CHAR_BEG '(' -#define CALC_CHAR_END ')' -#define CALC_CHAR_DEC '.' - -/*----- - Operators - Can add more here such as modulo %, factorial ! ------*/ -#define CALC_CHAR_ADD '+' -#define CALC_PRIO_ADD 1 - -#define CALC_CHAR_SUB '-' -#define CALC_PRIO_SUB 1 - -#define CALC_CHAR_MUL '*' -#define CALC_PRIO_MUL 2 - -#define CALC_CHAR_DIV '/' -#define CALC_PRIO_DIV 2 - -#define CALC_CHAR_EXP '^' -#define CALC_PRIO_EXP 3 - -/*----- - Functions ------*/ -#define CALC_CHAR_SIN 's' -#define CALC_CHAR_COS 'c' -#define CALC_CHAR_TAN 't' - -#define CALC_CHAR_ASN 'S' -#define CALC_CHAR_ACS 'C' -#define CALC_CHAR_ATN 'T' - -#define CALC_CHAR_LGE 'l' -#define CALC_CHAR_LOG 'L' - -#define CALC_CHAR_SQT 'q' - -/*----- - Constants ------*/ -#define CALC_CHAR_EUL 'e' -#define CALC_VALU_EUL 2.71828182845904523536 - -#define CALC_CHAR_PI 'p' -#define CALC_VALU_PI 3.14159265358979323846 - -struct OP // Operator/function -{ - char c; - unsigned char priority; - bool ltr; -}; - -union TokenRaw // A token after the input has been processed, can either be a number or an operator/function -{ - double num; - struct OP op; -}; - -struct Token // Encapsulator -{ - bool isNum; - union TokenRaw raw; -}; - -enum CalcFunctions // Hardware calculator key functionality -{ - CALC = SAFE_RANGE, - ENDCALC -}; - -#endif |