rushabhcodes/wireless-split-keyboard
Wireless Split Keyboard — custom routed nRF52840 split PCBs with a printable enclosure
- Version
- 0.4.5
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone rushabhcodes/wireless-split-keyboard # download the package files into ./wireless-split-keyboard
tsci add rushabhcodes/wireless-split-keyboard # add it to your project as @tsci/rushabhcodes.wireless-split-keyboardIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
firmware/src/display_power.c
/* Power raw panel before the display driver initializes; no deep sleep yet.
* 60Hz EXTCOMIN thread remains running during normal system-on idle.
*/
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
static int display_power_init(void) {
const struct device *gpio = DEVICE_DT_GET(DT_NODELABEL(gpio1));
if (!device_is_ready(gpio)) return -ENODEV;
int ret = gpio_pin_configure(gpio, 11, GPIO_OUTPUT_ACTIVE);
k_msleep(10);
return ret;
}
SYS_INIT(display_power_init, POST_KERNEL, 70);