Skip to content

Instantly share code, notes, and snippets.

@yswallow
Created May 2, 2022 02:18
Show Gist options
  • Save yswallow/2c0cb275d5f244e06590001df0d12f89 to your computer and use it in GitHub Desktop.
Save yswallow/2c0cb275d5f244e06590001df0d12f89 to your computer and use it in GitHub Desktop.
#PRK_Firmware のTips

PRKの変なHack

先頭行に puts "running"と書く

keymap.rb読み込み時にUndefined系のエラーが出て止まるのを防ぐため

動作中にマイコン上のLEDを光らせる

Raspberry Pi Picoの場合

power_led = 10
gpio_init(power_led)
gpio_set_dir(power_led, Keyboard::GPIO_OUT_HIGH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment