<spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">#define</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> BOOTMAGIC_COLUMN</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 1</span></span></code></pre></div><p>By default, these are set to 0 and 0, which is usually the "ESC" key on a majority of keyboards.</p><p>And to trigger the bootloader, you hold this key down when plugging the keyboard in. Just the single key.</p><divclass="warning custom-block"><pclass="custom-block-title">WARNING</p><p>Using Bootmagic will <strong>always reset</strong> the EEPROM, so you will lose any settings that have been saved.</p></div><h2id="split-keyboards"tabindex="-1">Split Keyboards <aclass="header-anchor"href="#split-keyboards"aria-label="Permalink to "Split Keyboards""></a></h2><p>When <ahref="./split_keyboard#setting-handedness">handedness</a> is predetermined via options like <code>SPLIT_HAND_PIN</code> or <code>EE_HANDS</code>, you might need to configure a different key between halves. To identify the correct key for the right half, examine the split key matrix defined in the <code><keyboard>.h</code> file, e.g.:</p><divclass="language-c vp-adaptive-theme"><buttontitle="Copy Code"class="copy"></button><spanclass="lang">c</span><preclass="shiki shiki-themes github-light github-dark vp-code"><code><spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">#define</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> LAYOUT_split_3x5_2</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">( </span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">\</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span></code></pre></div><p>If you pick the top right key for the right half, it is <code>R05</code> on the top layout. Within the key matrix below, <code>R05</code> is located on row 4 columnn 4. To use that key as the right half's Bootmagic trigger, add these entries to your <code>config.h</code> file:</p><divclass="language-c vp-adaptive-theme"><buttontitle="Copy Code"class="copy"></button><spanclass="lang">c</span><preclass="shiki shiki-themes github-light github-dark vp-code"><code><spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">#define</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> BOOTMAGIC_ROW_RIGHT</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 4</span></span>
<spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">#define</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> BOOTMAGIC_COLUMN_RIGHT</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 4</span></span></code></pre></div><divclass="tip custom-block"><pclass="custom-block-title">TIP</p><p>These values are not set by default.</p></div><h2id="advanced-bootmagic"tabindex="-1">Advanced Bootmagic <aclass="header-anchor"href="#advanced-bootmagic"aria-label="Permalink to "Advanced Bootmagic""></a></h2><p>The <code>bootmagic_scan</code> function is defined weakly, so that you can replace this in your code, if you need. A great example of this is the Zeal60 boards that have some additional handling needed.</p><p>To replace the function, all you need to do is add something like this to your code:</p><divclass="language-c vp-adaptive-theme"><buttontitle="Copy Code"class="copy"></button><spanclass="lang">c</span><preclass="shiki shiki-themes github-light github-dark vp-code"><code><spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">void</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> bootmagic_scan</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">void</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) {</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>You can define additional logic here. For instance, resetting the EEPROM or requiring additional keys to be pressed to trigger Bootmagic. Keep in mind that <code>bootmagic_scan</code> is called before a majority of features are initialized in the firmware.</p><h2id="addenda"tabindex="-1">Addenda <aclass="header-anchor"href="#addenda"aria-label="Permalink to "Addenda""></a></h2><p>To manipulate settings that were formerly configured through the now-deprecated full Bootmagic feature, see <ahref="./../keycodes_magic">Magic Keycodes</a>.</p><p>The Command feature, formerly known as Magic, also allows you to control different aspects of your keyboard. While it shares some functionality with Magic Keycodes, it also allows you to do things that Magic Keycodes cannot, such as printing version information to the console. For more information, see <ahref="./command">Command</a>.</p></div></div></main><footerclass="VPDocFooter"data-v-39a288b8data-v-09de1c0f><!--[--><!--]--><!----><navclass="prev-next"data-v-09de1c0f><divclass="pager"data-v-09de1c0f><aclass="VPLink link pager-link prev"href="/features/bluetooth"data-v-09de1c0f><!--[--><spanclass="desc"data-v-09de1c0f>Previous page</span><spanclass="title"data-v-09de1c0f>Bluetooth</span><!--]--></a></div><divclass="pager"data-v-09de1c0f><aclass="VPLink link pager-link next"href="/feature_converters"data-v-09de1c0f><!--[--><spanclass="desc"data-v-09de1c0f>Next page</span><spanclass="title"data-v-09de1c0f>Converters</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>