mirror of
https://github.com/EyeTrackVR/EyeTrackVR-Docs.git
synced 2025-11-04 14:49:44 +08:00
2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{_ as o,i as l}from"./chunks/index.1d77087a.js";import{o as r,c as s,a as n,u as a,h as i,g as e,b as t}from"./app.ffc675f3.js";const d=i('<h1 class="text-[var(--font-accent)]" id="setting-up-the-environment" tabindex="-1">Setting up the environment <a class="header-anchor" href="#setting-up-the-environment" aria-hidden="true">#</a></h1><p>This procedure will show how to prepare your system for uploading the firmware to your tracker.</p><h2 id="_1-install-visual-studio-code" tabindex="-1">1. Install Visual Studio Code <a class="header-anchor" href="#_1-install-visual-studio-code" aria-hidden="true">#</a></h2><p>Download the <a href="https://code.visualstudio.com/download" target="_blank" rel="noreferrer">latest Visual Studio Code</a> and install it.</p><h3 id="download" tabindex="-1">Download <a class="header-anchor" href="#download" aria-hidden="true">#</a></h3><br>',6),h=e("h3",{id:"install",tabindex:"-1"},[t("Install "),e("a",{class:"header-anchor",href:"#install","aria-hidden":"true"},"#")],-1),c=e("br",null,null,-1),p=e("h2",{id:"_2-install-platformio-ide",tabindex:"-1"},[t("2. Install PlatformIO IDE "),e("a",{class:"header-anchor",href:"#_2-install-platformio-ide","aria-hidden":"true"},"#")],-1),_=e("p",null,[t("Once Visual Studio Code is installed, open it and install "),e("a",{href:"https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide",target:"_blank",rel:"noreferrer"},"PlatformIO IDE for VSCode"),t(", an extension that will allow you to connect to the tracker, build and upload the firmware.")],-1),u=i('<h2 id="_3-clone-the-firmware-project" tabindex="-1">3. Clone the firmware project <a class="header-anchor" href="#_3-clone-the-firmware-project" aria-hidden="true">#</a></h2><p>Make sure you close any current projects you have open or open a new window before moving forward with these steps.</p><ol><li>Go to <a href="https://github.com/lorow/OpenIris" target="_blank" rel="noreferrer">https://github.com/lorow/OpenIris</a> and <code>clone</code> the latest version from the <code>main</code> branch. <ol><li><p>If you do not have <code>git</code> installed please install it from <a href="https://git-scm.com/download/win" target="_blank" rel="noreferrer">here</a>.</p></li><li><p>Open Git Bash.</p></li></ol></li></ol>',3),m=e("ol",null,[e("li",null,[t("Change the directory to the directory that you want the firmware to be cloned. Ex: "),e("code",null,"cd C:\\")])],-1),f=e("ol",null,[e("li",null,[t("Clone the repository by entering the command: "),e("code",null,"git clone https://github.com/lorow/OpenIris.git")])],-1),g=e("p",null,[t("For more info about cloning please refer to "),e("a",{href:"https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository",target:"_blank",rel:"noreferrer"},"this documentation")],-1),w=e("p",null,[e("em",null,[e("strong",null,"Do not download as a zip")]),t(" - please only properly clone the project, take note of the path you run the clone command in, this is where the files will be downloaded. When we open it in PlatformIO later, this path will be needed.")],-1),v=e("ol",null,[e("li",null,[t("Open the firmware in VSCode by going to PlatformIO, selecting open, then navigating to "),e("code",null,"OpenIris/ESP"),t(" folder and opening it.")])],-1),b=e("p",null,[e("em",null,[t("This is an adaptation from SlimeVR. Some Credit goes to the SlimeVR team "),e("a",{href:"https://docs.slimevr.dev/firmware/setup-and-install.html",target:"_blank",rel:"noreferrer"},"adapted from here")])],-1),T=JSON.parse('{"title":"Setting up the environment","description":"","frontmatter":{},"headers":[{"level":2,"title":"1. Install Visual Studio Code","slug":"_1-install-visual-studio-code","link":"#_1-install-visual-studio-code","children":[{"level":3,"title":"Download","slug":"download","link":"#download","children":[]},{"level":3,"title":"Install","slug":"install","link":"#install","children":[]}]},{"level":2,"title":"2. Install PlatformIO IDE","slug":"_2-install-platformio-ide","link":"#_2-install-platformio-ide","children":[]},{"level":2,"title":"3. Clone the firmware project","slug":"_3-clone-the-firmware-project","link":"#_3-clone-the-firmware-project","children":[]}],"relativePath":"firmware_guide/setup_vscode.md","lastUpdated":1676223729000}'),I={name:"firmware_guide/setup_vscode.md"},O=Object.assign(I,{setup(S){return(k,y)=>(r(),s("div",null,[d,n(o,{options:a(l).setup_vscode_image_one},null,8,["options"]),h,c,n(o,{options:a(l).setup_vscode_image_two},null,8,["options"]),p,_,n(o,{options:a(l).setup_vscode_image_three},null,8,["options"]),u,n(o,{options:a(l).setup_vscode_image_four},null,8,["options"]),m,n(o,{options:a(l).setup_vscode_image_five},null,8,["options"]),f,n(o,{options:a(l).setup_vscode_image_six},null,8,["options"]),g,w,v,n(o,{options:a(l).setup_vscode_image_seven},null,8,["options"]),b]))}});export{T as __pageData,O as default};
|