sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

split.h (243B)


      1#pragma once
      2
      3#define LEFT 0
      4#define RIGHT 1
      5
      6#define SLAVE 0
      7#define MASTER 1
      8
      9#define SPLIT_OPP(x) ((x) == LEFT ? RIGHT : LEFT)
     10
     11void split_init(void);
     12void split_task(void);
     13
     14void split_warn_master(const char *msg);
     15
     16extern int split_role;