1"use strict";(self.webpackChunkmeshtastic=self.webpackChunkmeshtastic||[]).push([["18255"],{39276(e,t,o){o.r(t),o.d(t,{metadata:()=>r,default:()=>m,frontMatter:()=>l,contentTitle:()=>d,toc:()=>u,assets:()=>c});var r=JSON.parse('{"id":"hardware/devices/lilygo/lora/gpio","title":"LILYGO\xae TTGO Lora GPIO","description":"GPIO IO12","source":"@site/docs/hardware/devices/lilygo/lora/gpio.mdx","sourceDirName":"hardware/devices/lilygo/lora","slug":"/hardware/devices/lilygo/lora/gpio","permalink":"/docs/hardware/devices/lilygo/lora/gpio","draft":false,"unlisted":false,"editUrl":"https://github.com/meshtastic/meshtastic/edit/master/docs/hardware/devices/lilygo/lora/gpio.mdx","tags":[],"version":"current","lastUpdatedBy":"rcarteraz","sidebarPosition":2,"frontMatter":{"id":"gpio","title":"LILYGO\xae TTGO Lora GPIO","sidebar_label":"GPIO","sidebar_position":2},"sidebar":"Sidebar","previous":{"title":"Buttons","permalink":"/docs/hardware/devices/lilygo/lora/buttons"},"next":{"title":"T-Beam","permalink":"/docs/hardware/devices/lilygo/tbeam/"}}'),i=o(91987),n=o(67008),s=o(87622),a=o(67686);let l={id:"gpio",title:"LILYGO\xae TTGO Lora GPIO",sidebar_label:"GPIO",sidebar_position:2},d,c={},u=[{value:"GPIO IO12",id:"gpio-io12",level:2}];function p(e){let t={h2:"h2",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h2,{id:"gpio-io12",children:"GPIO IO12"}),"\n",(0,i.jsxs)(t.p,{children:["For the ",(0,i.jsx)(s.A,{term:"LoRa",definition:"A low-power, long-range wireless communication technology used by Meshtastic devices to enable communication over distances of several kilometers without the need for cellular, Wi-Fi, or other traditional network infrastructures.",routePath:"/docs/terms/",children:"Lora"})," V2.1-1.8, Shorting IO12 to ground will progress through the screen pages and/or wake up the device. A simple push switch can be added for this purpose."]}),"\n",(0,i.jsx)("img",{src:(0,a.Ay)("/img/hardware/lora32-v2-1.6-button.webp"),alt:"Push button wired to IO12 on the LILYGO LoRa32 V2.1 board",width:"400",align:"left"}),"\n",(0,i.jsx)("img",{src:(0,a.Ay)("/img/hardware/lora32-v2-1.6-button-example.webp"),alt:"Example push button installed on the LILYGO LoRa32 V2.1 board",width:"400",align:"left"})]})}function m(e={}){let{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(p,{...e})}):p(e)}},67008(e,t,o){o.d(t,{R:()=>s,x:()=>a});var r=o(71763);let i={},n=r.createContext(i);function s(e){let t=r.useContext(n);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(n.Provider,{value:t},e.children)}},87622(e,t,o){o.d(t,{A:()=>s});var r=o(71763),i=o(37773),n=o(91987);function s({term:e,definition:t,abbreviation:o,routePath:a="/glossary",children:l}){let[d,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(null),[m,h]=(0,r.useState)("top"),g=(0,r.useRef)(null),f=(0,r.useRef)(null),w=(0,r.useCallback)(()=>{let e;if(!g.current||!f.current)return;let t=g.current.getBoundingClientRect(),o=f.current.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight,n=document.querySelector(".navbar"),s=n?n.getBoundingClientRect().bottom:0,a=t.to
1p-s>=o.height+8,l=i-t.bottom>=o.height+8,d=a||!l?"top":"bottom";e="top"===d?t.top-o.height-8:t.bottom+8;let c=t.left+t.width/2-o.width/2;c=Math.max(8,Math.min(c,r-o.width-8)),h(d),p({top:Math.max(s+4,e),left:c})},[]);(0,r.useEffect)(()=>{let e;if(!d)return;let t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{w()})}),o=()=>w(),r=()=>w();return window.addEventListener("scroll",o,!0),window.addEventListener("resize",r),()=>{cancelAnimationFrame(t),e&&cancelAnimationFrame(e),window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",r)}},[d,w]);let b=(0,i.P_)("docusaurus-plugin-glossary"),v=(0,r.useMemo)(()=>{if(t&&"string"==typeof t&&t.length>0)return t;let o=(b&&b.terms||[]).find(t=>"string"==typeof t.term&&t.term.toLowerCase()===String(e).toLowerCase());return o&&o.definition?o.definition:void 0},[t,b,e]),L=(0,r.useMemo)(()=>{let t=o;if(!t){let o=(b&&b.terms||[]).find(t=>"string"==typeof t.term&&t.term.toLowerCase()===String(e).toLowerCase());t=o&&o.abbreviation}if("string"!=typeof t)return;let r=t.trim();if(r&&r.toLowerCase()!==String(e).toLowerCase())return r},[o,b,e]),y=(0,r.useMemo)(()=>a&&"string"==typeof a&&a.length>0?a:b&&b.routePath||"/glossary",[b,a]),x=l||e,O=e.toLowerCase().replace(/\s+/g,"-");return(0,n.jsxs)("span",{ref:g,className:"glossaryTermWrapper_ud7W",children:[(0,n.jsx)("a",{href:`${y}#${O}`,className:"glossaryTerm_x2nJ",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),"aria-describedby":`tooltip-${O}`,children:x}),v&&(0,n.jsxs)("span",{ref:f,id:`tooltip-${O}`,className:`tooltip_WjgA ${d?"tooltipVisible_AjfD":""} ${"top"===m?"tooltipTop_uMN4":"tooltipBottom_U9P5"} tooltipFloating_nLk7`,role:"tooltip",style:d&&u?{top:`${u.top}px`,left:`${u.left}px`}:void 0,children:[(0,n.jsx)("strong",{children:e}),L?` (${L}). `:"",v]})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.