Search found 15 matches: #ifdef

Searched query: ifdef

by NathanA
23 Aug 2023, 06:33
Forum: Group buys
Topic: F104+SSK+122+62+77+50+Ergo orders now open! New Kishsaver+Industrial Model F Keyboards
Replies: 8695
Views: 3829526

Re: F62+F77 orders now open! New Kishsaver+Industrial Model F Keyboards

... exhaustively researched the exact history that led to this, but since the two different definitions of MI_VEL_1 are encased within a preprocessor #ifdef checking for "VIA_ENABLE", it's safe to assume that at one point in QMK's history, EEPROM_RESET (for example) actually was 0x5CDE originally. ...
by Kugelkopf
05 Jul 2022, 16:27
Forum: Group buys
Topic: F104+SSK+122+62+77+50+Ergo orders now open! New Kishsaver+Industrial Model F Keyboards
Replies: 8695
Views: 3829526

Re: F62+F77 orders now open! New Kishsaver+Industrial Model F Keyboards

... looks to be a VIA bug, and since Vial is built atop the QMK VIA (firmware-side) code, it inherited this bug. Looks like the problem is due to this #ifdef block nested inside the quantum_keycodes enum in quantum_keycodes.h: MI_VEL_0, // 5C92 #ifdef VIA_ENABLE MI_VEL_1 = MI_VEL_0, #else MI_VEL_1, ...
by NathanA
28 May 2022, 03:46
Forum: Group buys
Topic: F104+SSK+122+62+77+50+Ergo orders now open! New Kishsaver+Industrial Model F Keyboards
Replies: 8695
Views: 3829526

Re: F62+F77 orders now open! New Kishsaver+Industrial Model F Keyboards

... looks to be a VIA bug, and since Vial is built atop the QMK VIA (firmware-side) code, it inherited this bug. Looks like the problem is due to this #ifdef block nested inside the quantum_keycodes enum in quantum_keycodes.h: MI_VEL_0, // 5C92 #ifdef VIA_ENABLE MI_VEL_1 = MI_VEL_0, #else MI_VEL_1, ...
by caberolo
21 Feb 2022, 14:47
Forum: Keyboards
Topic: IBM model M converter and QMK firmware
Replies: 2
Views: 1479

IBM model M converter and QMK firmware

... D1, as TMK/Soarer's does. I've modified keyboards/converter/ibm_terminal/config.h file as follows: /* * PS/2 USART configuration for ATMega32U4 */ #ifdef PS2_USE_USART /* XCK for clock line */ #define PS2_CLOCK_PIN D1 #define PS2_DATA_PIN D0 I don't now if the problem origin is use a promicro instead ...
by NathanA
26 Oct 2021, 08:16
Forum: Group buys
Topic: F104+SSK+122+62+77+50+Ergo orders now open! New Kishsaver+Industrial Model F Keyboards
Replies: 8695
Views: 3829526

Re: F62+F77 orders now open! New Kishsaver+Industrial Model F Keyboards

... in layers.c is < 1 (because some variables referenced by functions are never declared since their declarations are sandwiched in between an #ifdef block checking for LAYER_COUNT > 0), and the default is 0. Hope this helps!
by Alectardy98
05 Jan 2021, 19:00
Forum: Keyboards
Topic: TMK Help/Question
Replies: 5
Views: 1594

Re: TMK Help/Question

... ) : MACRO_NONE ); case 11: //Double Zero return (record->event.pressed ? MACRO( I(0), T(P0), T(P0), END ) : MACRO_NONE ); } return MACRO_NONE; } #ifdef KEYMAP_SECTION_ENABLE const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = { #else const action_t ...
by robgongu
08 Nov 2020, 18:26
Forum: Workshop
Topic: How to build your very own keyboard firmware
Replies: 711
Views: 361734

Re: How to build your very own keyboard firmware

Edit: Don't ignore LED's pin if you are not using it ;) haha, working! Hi! I may be late on this post too, but i'm trying and it compiled ok, but it presses random keys in the moment i connect it. Teensy is not soldered to any cable, so no shorts possible. If someone could check would be great!: key...
by bsdice
29 Jun 2020, 13:26
Forum: Workshop
Topic: TMK IBM PC Keyboard Converter
Replies: 27
Views: 17782

Re: TMK IBM PC Keyboard Converter

Hey there, I just built a TMK ps2_usb converter out of this Pro Micro clone from ebay: Pro_Micro_01.jpg At first I contemplated just buying a converter from anywhere, but I could already smell bugs with ISO-DE layout and non-configurability even before hitting the Buy-button. So I went with this. Fo...
by purdobol
20 Dec 2019, 23:40
Forum: Workshop
Topic: ES 110 conversion
Replies: 10
Views: 3957

Re: ES 110 conversion

... E6 // or D1, D2, D3, E6 // #define BACKLIGHT_PIN B7 // #define BACKLIGHT_BREATHING // #define BACKLIGHT_LEVELS 3 // #define RGB_DI_PIN E2 // #ifdef RGB_DI_PIN // #define RGBLED_NUM 16 // #define RGBLIGHT_HUE_STEP 8 // #define RGBLIGHT_SAT_STEP 8 // #define RGBLIGHT_VAL_STEP 8 // #define RGBLIGHT_LIMIT_VAL ...
by snacksthecat
05 Jun 2019, 14:59
Forum: Workshop
Topic: TMK keyboard firmware collection
Replies: 339
Views: 191252

Re: TMK keyboard firmware collection

Hi, I'm hoping someone may be able to help me. I'm facing an issue that I haven't seen before. I made a PCB that uses atmega32u4 MCU. I built TMK starting from the gh60 project and modifying it to my board. TMK builds appears to build fine with no warnings. Flashing also looks to be successful, eith...
by tackleberry
20 May 2019, 14:39
Forum: Workshop
Topic: How to build your very own keyboard firmware
Replies: 711
Views: 361734

Re: How to build your very own keyboard firmware

Thanks a lot, Matrix.c : /* * scan matrix */ #include <stdint.h> #include <stdbool.h> #include <avr/io.h> #include <util/delay.h> #include "print.h" #include "debug.h" #include "util.h" #include "matrix.h" #ifndef DEBOUNCE # define DEBOUNCE 5 #endif static uint8_t debouncing = DEBOUNCE; /* matrix st...
by Bloodhoundje
22 Apr 2016, 17:25
Forum: Workshop
Topic: How to build your very own keyboard firmware
Replies: 711
Views: 361734

Do you have keymap_poker.c in the "SRC = ..." list in the Makefile? Yes I do, my Makefile is as follow: #---------------------------------------------------------------------------- # On command line: # # make all = Make software. # # make clean = Clean out built project files. # # make coff = Conv...
by idollar
06 Jan 2015, 22:39
Forum: Workshop
Topic: TMK keyboard firmware collection
Replies: 339
Views: 191252

... physical LEDs support With: PHYSICAL_LEDS = yes # Use to compile with external physical LEDs support In the file config.h change the entry: #ifdef PHYSICAL_LEDS with #ifdef PHYSICAL_LEDS_ENABLE The above changes make the numberlock key to light the led. Tested. The capslock did not work ...
by zambasdvd
09 Dec 2014, 20:14
Forum: Workshop
Topic: Rebuilding and Redesigning a Classic Thinkpad Keyboard
Replies: 108
Views: 30352

Hi and congratulations for this wonderful scene. I have some problems with creating the hex file to burn on my teensy. I am trying to make a tenkeyless keyboard using alps switches from a dell at101w and a teensy 2.0. When i try to make the hex file on cmd it says: make: Interrupt/exception caught (...
by idollar
02 Nov 2014, 13:37
Forum: Workshop
Topic: TMK keyboard firmware collection
Replies: 339
Views: 191252

... but I cannot tested (still :-)) I have used git. Integrating the code should be simple. In converter/ps2_usb/config.h /* * PHYSICAL LEDs PINOUT */ #ifdef PHYSICAL_LEDS_ENABLE #define LED_INIT_LOOPS 2 #define LED_INIT_DELAY 40 #ifdef CAPS_LOCK_LED_ENABLE #define CAPS_LOCK_LED_PORT PORTF #define ...

Go to advanced search