quantum_painter.md.CF8FcdmD.lean.js 328 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580
  1. import { _ as _export_sfc, c as createElementBlock, I as createVNode, w as withCtx, a8 as createStaticVNode, l as createBaseVNode, a as createTextVNode, D as resolveComponent, o as openBlock } from "./chunks/framework.Cauyuiy8.js";
  2. const __pageData = JSON.parse('{"title":"Quantum Painter","description":"","frontmatter":{},"headers":[],"relativePath":"quantum_painter.md","filePath":"quantum_painter.md","lastUpdated":null}');
  3. const _sfc_main = { name: "quantum_painter.md" };
  4. const _hoisted_1 = /* @__PURE__ */ createStaticVNode("", 14);
  5. const _hoisted_15 = /* @__PURE__ */ createBaseVNode("p", null, "This command converts images to a format usable by QMK, i.e. the QGF File Format.", -1);
  6. const _hoisted_16 = /* @__PURE__ */ createBaseVNode("p", null, [
  7. /* @__PURE__ */ createBaseVNode("strong", null, "Usage"),
  8. /* @__PURE__ */ createTextVNode(":")
  9. ], -1);
  10. const _hoisted_17 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
  11. /* @__PURE__ */ createBaseVNode("button", {
  12. title: "Copy Code",
  13. class: "copy"
  14. }),
  15. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
  16. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  17. /* @__PURE__ */ createBaseVNode("code", null, [
  18. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  19. /* @__PURE__ */ createBaseVNode("span", null, "usage: qmk painter-convert-graphics [-h] [-w] [-d] [-r] -f FORMAT [-o OUTPUT] -i INPUT [-v]")
  20. ]),
  21. /* @__PURE__ */ createTextVNode("\n"),
  22. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  23. /* @__PURE__ */ createBaseVNode("span")
  24. ]),
  25. /* @__PURE__ */ createTextVNode("\n"),
  26. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  27. /* @__PURE__ */ createBaseVNode("span", null, "options:")
  28. ]),
  29. /* @__PURE__ */ createTextVNode("\n"),
  30. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  31. /* @__PURE__ */ createBaseVNode("span", null, " -h, --help show this help message and exit")
  32. ]),
  33. /* @__PURE__ */ createTextVNode("\n"),
  34. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  35. /* @__PURE__ */ createBaseVNode("span", null, " -w, --raw Writes out the QGF file as raw data instead of c/h combo.")
  36. ]),
  37. /* @__PURE__ */ createTextVNode("\n"),
  38. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  39. /* @__PURE__ */ createBaseVNode("span", null, " -d, --no-deltas Disables the use of delta frames when encoding animations.")
  40. ]),
  41. /* @__PURE__ */ createTextVNode("\n"),
  42. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  43. /* @__PURE__ */ createBaseVNode("span", null, " -r, --no-rle Disables the use of RLE when encoding images.")
  44. ]),
  45. /* @__PURE__ */ createTextVNode("\n"),
  46. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  47. /* @__PURE__ */ createBaseVNode("span", null, " -f FORMAT, --format FORMAT")
  48. ]),
  49. /* @__PURE__ */ createTextVNode("\n"),
  50. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  51. /* @__PURE__ */ createBaseVNode("span", null, " Output format, valid types: rgb888, rgb565, pal256, pal16, pal4, pal2, mono256, mono16, mono4, mono2")
  52. ]),
  53. /* @__PURE__ */ createTextVNode("\n"),
  54. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  55. /* @__PURE__ */ createBaseVNode("span", null, " -o OUTPUT, --output OUTPUT")
  56. ]),
  57. /* @__PURE__ */ createTextVNode("\n"),
  58. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  59. /* @__PURE__ */ createBaseVNode("span", null, " Specify output directory. Defaults to same directory as input.")
  60. ]),
  61. /* @__PURE__ */ createTextVNode("\n"),
  62. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  63. /* @__PURE__ */ createBaseVNode("span", null, " -i INPUT, --input INPUT")
  64. ]),
  65. /* @__PURE__ */ createTextVNode("\n"),
  66. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  67. /* @__PURE__ */ createBaseVNode("span", null, " Specify input graphic file.")
  68. ]),
  69. /* @__PURE__ */ createTextVNode("\n"),
  70. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  71. /* @__PURE__ */ createBaseVNode("span", null, " -v, --verbose Turns on verbose output.")
  72. ])
  73. ])
  74. ])
  75. ], -1);
  76. const _hoisted_18 = /* @__PURE__ */ createBaseVNode("p", null, [
  77. /* @__PURE__ */ createTextVNode("The "),
  78. /* @__PURE__ */ createBaseVNode("code", null, "INPUT"),
  79. /* @__PURE__ */ createTextVNode(" argument can be any image file loadable by Python's Pillow module. Common formats include PNG, or Animated GIF.")
  80. ], -1);
  81. const _hoisted_19 = /* @__PURE__ */ createBaseVNode("p", null, [
  82. /* @__PURE__ */ createTextVNode("The "),
  83. /* @__PURE__ */ createBaseVNode("code", null, "OUTPUT"),
  84. /* @__PURE__ */ createTextVNode(" argument needs to be a directory, and will default to the same directory as the input argument.")
  85. ], -1);
  86. const _hoisted_20 = /* @__PURE__ */ createBaseVNode("p", null, [
  87. /* @__PURE__ */ createTextVNode("The "),
  88. /* @__PURE__ */ createBaseVNode("code", null, "FORMAT"),
  89. /* @__PURE__ */ createTextVNode(" argument can be any of the following:")
  90. ], -1);
  91. const _hoisted_21 = /* @__PURE__ */ createBaseVNode("table", null, [
  92. /* @__PURE__ */ createBaseVNode("thead", null, [
  93. /* @__PURE__ */ createBaseVNode("tr", null, [
  94. /* @__PURE__ */ createBaseVNode("th", null, "Format"),
  95. /* @__PURE__ */ createBaseVNode("th", null, "Meaning")
  96. ])
  97. ]),
  98. /* @__PURE__ */ createBaseVNode("tbody", null, [
  99. /* @__PURE__ */ createBaseVNode("tr", null, [
  100. /* @__PURE__ */ createBaseVNode("td", null, [
  101. /* @__PURE__ */ createBaseVNode("code", null, "rgb888")
  102. ]),
  103. /* @__PURE__ */ createBaseVNode("td", null, [
  104. /* @__PURE__ */ createTextVNode("16,777,216 colors in 8-8-8 RGB format (requires "),
  105. /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS"),
  106. /* @__PURE__ */ createTextVNode(")")
  107. ])
  108. ]),
  109. /* @__PURE__ */ createBaseVNode("tr", null, [
  110. /* @__PURE__ */ createBaseVNode("td", null, [
  111. /* @__PURE__ */ createBaseVNode("code", null, "rgb565")
  112. ]),
  113. /* @__PURE__ */ createBaseVNode("td", null, [
  114. /* @__PURE__ */ createTextVNode("65,536 colors in 5-6-5 RGB format (requires "),
  115. /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS"),
  116. /* @__PURE__ */ createTextVNode(")")
  117. ])
  118. ]),
  119. /* @__PURE__ */ createBaseVNode("tr", null, [
  120. /* @__PURE__ */ createBaseVNode("td", null, [
  121. /* @__PURE__ */ createBaseVNode("code", null, "pal256")
  122. ]),
  123. /* @__PURE__ */ createBaseVNode("td", null, [
  124. /* @__PURE__ */ createTextVNode("256-color palette (requires "),
  125. /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_256_PALETTE"),
  126. /* @__PURE__ */ createTextVNode(")")
  127. ])
  128. ]),
  129. /* @__PURE__ */ createBaseVNode("tr", null, [
  130. /* @__PURE__ */ createBaseVNode("td", null, [
  131. /* @__PURE__ */ createBaseVNode("code", null, "pal16")
  132. ]),
  133. /* @__PURE__ */ createBaseVNode("td", null, "16-color palette")
  134. ]),
  135. /* @__PURE__ */ createBaseVNode("tr", null, [
  136. /* @__PURE__ */ createBaseVNode("td", null, [
  137. /* @__PURE__ */ createBaseVNode("code", null, "pal4")
  138. ]),
  139. /* @__PURE__ */ createBaseVNode("td", null, "4-color palette")
  140. ]),
  141. /* @__PURE__ */ createBaseVNode("tr", null, [
  142. /* @__PURE__ */ createBaseVNode("td", null, [
  143. /* @__PURE__ */ createBaseVNode("code", null, "pal2")
  144. ]),
  145. /* @__PURE__ */ createBaseVNode("td", null, "2-color palette")
  146. ]),
  147. /* @__PURE__ */ createBaseVNode("tr", null, [
  148. /* @__PURE__ */ createBaseVNode("td", null, [
  149. /* @__PURE__ */ createBaseVNode("code", null, "mono256")
  150. ]),
  151. /* @__PURE__ */ createBaseVNode("td", null, [
  152. /* @__PURE__ */ createTextVNode("256-shade grayscale (requires "),
  153. /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_256_PALETTE"),
  154. /* @__PURE__ */ createTextVNode(")")
  155. ])
  156. ]),
  157. /* @__PURE__ */ createBaseVNode("tr", null, [
  158. /* @__PURE__ */ createBaseVNode("td", null, [
  159. /* @__PURE__ */ createBaseVNode("code", null, "mono16")
  160. ]),
  161. /* @__PURE__ */ createBaseVNode("td", null, "16-shade grayscale")
  162. ]),
  163. /* @__PURE__ */ createBaseVNode("tr", null, [
  164. /* @__PURE__ */ createBaseVNode("td", null, [
  165. /* @__PURE__ */ createBaseVNode("code", null, "mono4")
  166. ]),
  167. /* @__PURE__ */ createBaseVNode("td", null, "4-shade grayscale")
  168. ]),
  169. /* @__PURE__ */ createBaseVNode("tr", null, [
  170. /* @__PURE__ */ createBaseVNode("td", null, [
  171. /* @__PURE__ */ createBaseVNode("code", null, "mono2")
  172. ]),
  173. /* @__PURE__ */ createBaseVNode("td", null, "2-shade grayscale")
  174. ])
  175. ])
  176. ], -1);
  177. const _hoisted_22 = /* @__PURE__ */ createBaseVNode("p", null, [
  178. /* @__PURE__ */ createBaseVNode("strong", null, "Examples"),
  179. /* @__PURE__ */ createTextVNode(":")
  180. ], -1);
  181. const _hoisted_23 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
  182. /* @__PURE__ */ createBaseVNode("button", {
  183. title: "Copy Code",
  184. class: "copy"
  185. }),
  186. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
  187. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  188. /* @__PURE__ */ createBaseVNode("code", null, [
  189. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  190. /* @__PURE__ */ createBaseVNode("span", null, "$ cd /home/qmk/qmk_firmware/keyboards/my_keeb")
  191. ]),
  192. /* @__PURE__ */ createTextVNode("\n"),
  193. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  194. /* @__PURE__ */ createBaseVNode("span", null, "$ qmk painter-convert-graphics -f mono16 -i my_image.gif -o ./generated/")
  195. ]),
  196. /* @__PURE__ */ createTextVNode("\n"),
  197. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  198. /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/my_image.qgf.h...")
  199. ]),
  200. /* @__PURE__ */ createTextVNode("\n"),
  201. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  202. /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/my_image.qgf.c...")
  203. ])
  204. ])
  205. ])
  206. ], -1);
  207. const _hoisted_24 = /* @__PURE__ */ createBaseVNode("p", null, "This command converts a TTF font to an intermediate format for editing, before converting to the QFF File Format.", -1);
  208. const _hoisted_25 = /* @__PURE__ */ createBaseVNode("p", null, [
  209. /* @__PURE__ */ createBaseVNode("strong", null, "Usage"),
  210. /* @__PURE__ */ createTextVNode(":")
  211. ], -1);
  212. const _hoisted_26 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
  213. /* @__PURE__ */ createBaseVNode("button", {
  214. title: "Copy Code",
  215. class: "copy"
  216. }),
  217. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
  218. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  219. /* @__PURE__ */ createBaseVNode("code", null, [
  220. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  221. /* @__PURE__ */ createBaseVNode("span", null, "usage: qmk painter-make-font-image [-h] [-a] [-u UNICODE_GLYPHS] [-n] [-s SIZE] -o OUTPUT -f FONT")
  222. ]),
  223. /* @__PURE__ */ createTextVNode("\n"),
  224. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  225. /* @__PURE__ */ createBaseVNode("span")
  226. ]),
  227. /* @__PURE__ */ createTextVNode("\n"),
  228. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  229. /* @__PURE__ */ createBaseVNode("span", null, "optional arguments:")
  230. ]),
  231. /* @__PURE__ */ createTextVNode("\n"),
  232. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  233. /* @__PURE__ */ createBaseVNode("span", null, " -h, --help show this help message and exit")
  234. ]),
  235. /* @__PURE__ */ createTextVNode("\n"),
  236. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  237. /* @__PURE__ */ createBaseVNode("span", null, " -a, --no-aa Disable anti-aliasing on fonts.")
  238. ]),
  239. /* @__PURE__ */ createTextVNode("\n"),
  240. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  241. /* @__PURE__ */ createBaseVNode("span", null, " -u UNICODE_GLYPHS, --unicode-glyphs UNICODE_GLYPHS")
  242. ]),
  243. /* @__PURE__ */ createTextVNode("\n"),
  244. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  245. /* @__PURE__ */ createBaseVNode("span", null, " Also generate the specified unicode glyphs.")
  246. ]),
  247. /* @__PURE__ */ createTextVNode("\n"),
  248. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  249. /* @__PURE__ */ createBaseVNode("span", null, " -n, --no-ascii Disables output of the full ASCII character set (0x20..0x7E), exporting only the glyphs specified.")
  250. ]),
  251. /* @__PURE__ */ createTextVNode("\n"),
  252. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  253. /* @__PURE__ */ createBaseVNode("span", null, " -s SIZE, --size SIZE Specify font size. Default 12.")
  254. ]),
  255. /* @__PURE__ */ createTextVNode("\n"),
  256. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  257. /* @__PURE__ */ createBaseVNode("span", null, " -o OUTPUT, --output OUTPUT")
  258. ]),
  259. /* @__PURE__ */ createTextVNode("\n"),
  260. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  261. /* @__PURE__ */ createBaseVNode("span", null, " Specify output image path.")
  262. ]),
  263. /* @__PURE__ */ createTextVNode("\n"),
  264. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  265. /* @__PURE__ */ createBaseVNode("span", null, " -f FONT, --font FONT Specify input font file.")
  266. ])
  267. ])
  268. ])
  269. ], -1);
  270. const _hoisted_27 = /* @__PURE__ */ createBaseVNode("p", null, [
  271. /* @__PURE__ */ createTextVNode("The "),
  272. /* @__PURE__ */ createBaseVNode("code", null, "FONT"),
  273. /* @__PURE__ */ createTextVNode(" argument is generally a TrueType Font file (TTF).")
  274. ], -1);
  275. const _hoisted_28 = /* @__PURE__ */ createBaseVNode("p", null, [
  276. /* @__PURE__ */ createTextVNode("The "),
  277. /* @__PURE__ */ createBaseVNode("code", null, "OUTPUT"),
  278. /* @__PURE__ */ createTextVNode(" argument is the output image to generate, generally something like "),
  279. /* @__PURE__ */ createBaseVNode("code", null, "my_font.png"),
  280. /* @__PURE__ */ createTextVNode(".")
  281. ], -1);
  282. const _hoisted_29 = /* @__PURE__ */ createBaseVNode("p", null, [
  283. /* @__PURE__ */ createTextVNode("The "),
  284. /* @__PURE__ */ createBaseVNode("code", null, "UNICODE_GLYPHS"),
  285. /* @__PURE__ */ createTextVNode(" argument allows for specifying extra unicode glyphs to generate, and accepts a string.")
  286. ], -1);
  287. const _hoisted_30 = /* @__PURE__ */ createBaseVNode("p", null, [
  288. /* @__PURE__ */ createBaseVNode("strong", null, "Examples"),
  289. /* @__PURE__ */ createTextVNode(":")
  290. ], -1);
  291. const _hoisted_31 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
  292. /* @__PURE__ */ createBaseVNode("button", {
  293. title: "Copy Code",
  294. class: "copy"
  295. }),
  296. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
  297. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  298. /* @__PURE__ */ createBaseVNode("code", null, [
  299. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  300. /* @__PURE__ */ createBaseVNode("span", null, '$ qmk painter-make-font-image --font NotoSans-ExtraCondensedBold.ttf --size 11 -o noto11.png --unicode-glyphs "ĄȽɂɻɣɈʣ"')
  301. ])
  302. ])
  303. ])
  304. ], -1);
  305. const _hoisted_32 = /* @__PURE__ */ createBaseVNode("p", null, "This command converts an intermediate font image to the QFF File Format.", -1);
  306. const _hoisted_33 = /* @__PURE__ */ createBaseVNode("p", null, "This command expects an image that conforms to the following format:", -1);
  307. const _hoisted_34 = /* @__PURE__ */ createBaseVNode("ul", null, [
  308. /* @__PURE__ */ createBaseVNode("li", null, [
  309. /* @__PURE__ */ createTextVNode("Top-left pixel (at "),
  310. /* @__PURE__ */ createBaseVNode("code", null, "0,0"),
  311. /* @__PURE__ */ createTextVNode(') is the "delimiter" color: '),
  312. /* @__PURE__ */ createBaseVNode("ul", null, [
  313. /* @__PURE__ */ createBaseVNode("li", null, "Each glyph in the font starts when a pixel of this color is found on the first row"),
  314. /* @__PURE__ */ createBaseVNode("li", null, "The first row is discarded when converting to the QFF format")
  315. ])
  316. ]),
  317. /* @__PURE__ */ createBaseVNode("li", null, [
  318. /* @__PURE__ */ createTextVNode("The number of delimited glyphs must match the supplied arguments to the command: "),
  319. /* @__PURE__ */ createBaseVNode("ul", null, [
  320. /* @__PURE__ */ createBaseVNode("li", null, [
  321. /* @__PURE__ */ createTextVNode("The full ASCII set "),
  322. /* @__PURE__ */ createBaseVNode("code", null, "0x20..0x7E"),
  323. /* @__PURE__ */ createTextVNode(" (if "),
  324. /* @__PURE__ */ createBaseVNode("code", null, "--no-ascii"),
  325. /* @__PURE__ */ createTextVNode(" was not specified)")
  326. ]),
  327. /* @__PURE__ */ createBaseVNode("li", null, [
  328. /* @__PURE__ */ createTextVNode("The corresponding number of unicode glyphs if any were specified with "),
  329. /* @__PURE__ */ createBaseVNode("code", null, "--unicode-glyphs")
  330. ])
  331. ])
  332. ]),
  333. /* @__PURE__ */ createBaseVNode("li", null, "The order of the glyphs matches the ASCII set, if any, followed by the Unicode glyph set, if any.")
  334. ], -1);
  335. const _hoisted_35 = /* @__PURE__ */ createBaseVNode("p", null, [
  336. /* @__PURE__ */ createBaseVNode("strong", null, "Usage"),
  337. /* @__PURE__ */ createTextVNode(":")
  338. ], -1);
  339. const _hoisted_36 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
  340. /* @__PURE__ */ createBaseVNode("button", {
  341. title: "Copy Code",
  342. class: "copy"
  343. }),
  344. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
  345. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  346. /* @__PURE__ */ createBaseVNode("code", null, [
  347. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  348. /* @__PURE__ */ createBaseVNode("span", null, "usage: qmk painter-convert-font-image [-h] [-w] [-r] -f FORMAT [-u UNICODE_GLYPHS] [-n] [-o OUTPUT] [-i INPUT]")
  349. ]),
  350. /* @__PURE__ */ createTextVNode("\n"),
  351. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  352. /* @__PURE__ */ createBaseVNode("span")
  353. ]),
  354. /* @__PURE__ */ createTextVNode("\n"),
  355. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  356. /* @__PURE__ */ createBaseVNode("span", null, "options:")
  357. ]),
  358. /* @__PURE__ */ createTextVNode("\n"),
  359. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  360. /* @__PURE__ */ createBaseVNode("span", null, " -h, --help show this help message and exit")
  361. ]),
  362. /* @__PURE__ */ createTextVNode("\n"),
  363. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  364. /* @__PURE__ */ createBaseVNode("span", null, " -w, --raw Writes out the QFF file as raw data instead of c/h combo.")
  365. ]),
  366. /* @__PURE__ */ createTextVNode("\n"),
  367. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  368. /* @__PURE__ */ createBaseVNode("span", null, " -r, --no-rle Disable the use of RLE to minimise converted image size.")
  369. ]),
  370. /* @__PURE__ */ createTextVNode("\n"),
  371. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  372. /* @__PURE__ */ createBaseVNode("span", null, " -f FORMAT, --format FORMAT")
  373. ]),
  374. /* @__PURE__ */ createTextVNode("\n"),
  375. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  376. /* @__PURE__ */ createBaseVNode("span", null, " Output format, valid types: rgb565, pal256, pal16, pal4, pal2, mono256, mono16, mono4, mono2")
  377. ]),
  378. /* @__PURE__ */ createTextVNode("\n"),
  379. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  380. /* @__PURE__ */ createBaseVNode("span", null, " -u UNICODE_GLYPHS, --unicode-glyphs UNICODE_GLYPHS")
  381. ]),
  382. /* @__PURE__ */ createTextVNode("\n"),
  383. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  384. /* @__PURE__ */ createBaseVNode("span", null, " Also generate the specified unicode glyphs.")
  385. ]),
  386. /* @__PURE__ */ createTextVNode("\n"),
  387. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  388. /* @__PURE__ */ createBaseVNode("span", null, " -n, --no-ascii Disables output of the full ASCII character set (0x20..0x7E), exporting only the glyphs specified.")
  389. ]),
  390. /* @__PURE__ */ createTextVNode("\n"),
  391. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  392. /* @__PURE__ */ createBaseVNode("span", null, " -o OUTPUT, --output OUTPUT")
  393. ]),
  394. /* @__PURE__ */ createTextVNode("\n"),
  395. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  396. /* @__PURE__ */ createBaseVNode("span", null, " Specify output directory. Defaults to same directory as input.")
  397. ]),
  398. /* @__PURE__ */ createTextVNode("\n"),
  399. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  400. /* @__PURE__ */ createBaseVNode("span", null, " -i INPUT, --input INPUT")
  401. ]),
  402. /* @__PURE__ */ createTextVNode("\n"),
  403. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  404. /* @__PURE__ */ createBaseVNode("span", null, " Specify input graphic file.")
  405. ])
  406. ])
  407. ])
  408. ], -1);
  409. const _hoisted_37 = /* @__PURE__ */ createBaseVNode("p", null, [
  410. /* @__PURE__ */ createTextVNode("The same arguments for "),
  411. /* @__PURE__ */ createBaseVNode("code", null, "--no-ascii"),
  412. /* @__PURE__ */ createTextVNode(" and "),
  413. /* @__PURE__ */ createBaseVNode("code", null, "--unicode-glyphs"),
  414. /* @__PURE__ */ createTextVNode(" need to be specified, as per "),
  415. /* @__PURE__ */ createBaseVNode("code", null, "qmk painter-make-font-image"),
  416. /* @__PURE__ */ createTextVNode(".")
  417. ], -1);
  418. const _hoisted_38 = /* @__PURE__ */ createBaseVNode("p", null, [
  419. /* @__PURE__ */ createBaseVNode("strong", null, "Examples"),
  420. /* @__PURE__ */ createTextVNode(":")
  421. ], -1);
  422. const _hoisted_39 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
  423. /* @__PURE__ */ createBaseVNode("button", {
  424. title: "Copy Code",
  425. class: "copy"
  426. }),
  427. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
  428. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  429. /* @__PURE__ */ createBaseVNode("code", null, [
  430. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  431. /* @__PURE__ */ createBaseVNode("span", null, "$ cd /home/qmk/qmk_firmware/keyboards/my_keeb")
  432. ]),
  433. /* @__PURE__ */ createTextVNode("\n"),
  434. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  435. /* @__PURE__ */ createBaseVNode("span", null, '$ qmk painter-convert-font-image --input noto11.png -f mono4 --unicode-glyphs "ĄȽɂɻɣɈʣ"')
  436. ]),
  437. /* @__PURE__ */ createTextVNode("\n"),
  438. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  439. /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/noto11.qff.h...")
  440. ]),
  441. /* @__PURE__ */ createTextVNode("\n"),
  442. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  443. /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/noto11.qff.c...")
  444. ])
  445. ])
  446. ])
  447. ], -1);
  448. const _hoisted_40 = /* @__PURE__ */ createBaseVNode("h2", {
  449. id: "quantum-painter-drivers",
  450. tabindex: "-1"
  451. }, [
  452. /* @__PURE__ */ createTextVNode("Quantum Painter Display Drivers "),
  453. /* @__PURE__ */ createBaseVNode("a", {
  454. class: "header-anchor",
  455. href: "#quantum-painter-drivers",
  456. "aria-label": 'Permalink to "Quantum Painter Display Drivers {#quantum-painter-drivers}"'
  457. }, "​")
  458. ], -1);
  459. const _hoisted_41 = /* @__PURE__ */ createBaseVNode("p", null, "Most TFT display panels use a 5-pin interface -- SPI SCK, SPI MOSI, SPI CS, D/C, and RST pins.", -1);
  460. const _hoisted_42 = /* @__PURE__ */ createBaseVNode("p", null, [
  461. /* @__PURE__ */ createTextVNode("For these displays, QMK's "),
  462. /* @__PURE__ */ createBaseVNode("code", null, "spi_master"),
  463. /* @__PURE__ */ createTextVNode(" must already be correctly configured for the platform you're building for.")
  464. ], -1);
  465. const _hoisted_43 = /* @__PURE__ */ createBaseVNode("p", null, "The pin assignments for SPI CS, D/C, and RST are specified during device construction.", -1);
  466. const _hoisted_44 = /* @__PURE__ */ createBaseVNode("p", null, [
  467. /* @__PURE__ */ createTextVNode("Enabling support for the GC9A01 in Quantum Painter is done by adding the following to "),
  468. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  469. /* @__PURE__ */ createTextVNode(":")
  470. ], -1);
  471. const _hoisted_45 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  472. /* @__PURE__ */ createBaseVNode("button", {
  473. title: "Copy Code",
  474. class: "copy"
  475. }),
  476. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  477. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  478. /* @__PURE__ */ createBaseVNode("code", null, [
  479. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  480. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  481. ]),
  482. /* @__PURE__ */ createTextVNode("\n"),
  483. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  484. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += gc9a01_spi")
  485. ])
  486. ])
  487. ])
  488. ], -1);
  489. const _hoisted_46 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a GC9A01 device in firmware can then be done with the following API:", -1);
  490. const _hoisted_47 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  491. /* @__PURE__ */ createBaseVNode("button", {
  492. title: "Copy Code",
  493. class: "copy"
  494. }),
  495. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  496. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  497. /* @__PURE__ */ createBaseVNode("code", null, [
  498. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  499. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  500. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_gc9a01_make_spi_device"),
  501. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  502. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  503. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  504. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  505. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  506. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  507. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  508. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  509. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  510. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  511. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  512. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  513. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  514. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  515. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  516. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  517. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  518. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  519. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  520. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  521. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  522. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  523. ])
  524. ])
  525. ])
  526. ], -1);
  527. const _hoisted_48 = /* @__PURE__ */ createBaseVNode("p", null, [
  528. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  529. /* @__PURE__ */ createBaseVNode("code", null, "qp_gc9a01_make_spi_device"),
  530. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  531. ], -1);
  532. const _hoisted_49 = /* @__PURE__ */ createBaseVNode("p", null, [
  533. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  534. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  535. /* @__PURE__ */ createTextVNode(" (default is 1):")
  536. ], -1);
  537. const _hoisted_50 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  538. /* @__PURE__ */ createBaseVNode("button", {
  539. title: "Copy Code",
  540. class: "copy"
  541. }),
  542. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  543. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  544. /* @__PURE__ */ createBaseVNode("code", null, [
  545. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  546. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  547. ]),
  548. /* @__PURE__ */ createTextVNode("\n"),
  549. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  550. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  551. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " GC9A01_NUM_DEVICES"),
  552. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  553. ])
  554. ])
  555. ])
  556. ], -1);
  557. const _hoisted_51 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with GC9A01", -1);
  558. const _hoisted_52 = /* @__PURE__ */ createBaseVNode("p", null, [
  559. /* @__PURE__ */ createTextVNode("Enabling support for the ILI9163 in Quantum Painter is done by adding the following to "),
  560. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  561. /* @__PURE__ */ createTextVNode(":")
  562. ], -1);
  563. const _hoisted_53 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  564. /* @__PURE__ */ createBaseVNode("button", {
  565. title: "Copy Code",
  566. class: "copy"
  567. }),
  568. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  569. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  570. /* @__PURE__ */ createBaseVNode("code", null, [
  571. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  572. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  573. ]),
  574. /* @__PURE__ */ createTextVNode("\n"),
  575. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  576. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9163_spi")
  577. ])
  578. ])
  579. ])
  580. ], -1);
  581. const _hoisted_54 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9163 device in firmware can then be done with the following API:", -1);
  582. const _hoisted_55 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  583. /* @__PURE__ */ createBaseVNode("button", {
  584. title: "Copy Code",
  585. class: "copy"
  586. }),
  587. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  588. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  589. /* @__PURE__ */ createBaseVNode("code", null, [
  590. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  591. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  592. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9163_make_spi_device"),
  593. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  594. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  595. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  596. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  597. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  598. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  599. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  600. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  601. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  602. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  603. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  604. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  605. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  606. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  607. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  608. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  609. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  610. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  611. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  612. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  613. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  614. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  615. ])
  616. ])
  617. ])
  618. ], -1);
  619. const _hoisted_56 = /* @__PURE__ */ createBaseVNode("p", null, [
  620. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  621. /* @__PURE__ */ createBaseVNode("code", null, "qp_ili9163_make_spi_device"),
  622. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  623. ], -1);
  624. const _hoisted_57 = /* @__PURE__ */ createBaseVNode("p", null, [
  625. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  626. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  627. /* @__PURE__ */ createTextVNode(" (default is 1):")
  628. ], -1);
  629. const _hoisted_58 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  630. /* @__PURE__ */ createBaseVNode("button", {
  631. title: "Copy Code",
  632. class: "copy"
  633. }),
  634. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  635. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  636. /* @__PURE__ */ createBaseVNode("code", null, [
  637. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  638. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  639. ]),
  640. /* @__PURE__ */ createTextVNode("\n"),
  641. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  642. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  643. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9163_NUM_DEVICES"),
  644. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  645. ])
  646. ])
  647. ])
  648. ], -1);
  649. const _hoisted_59 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ILI9163", -1);
  650. const _hoisted_60 = /* @__PURE__ */ createBaseVNode("p", null, [
  651. /* @__PURE__ */ createTextVNode("Enabling support for the ILI9341 in Quantum Painter is done by adding the following to "),
  652. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  653. /* @__PURE__ */ createTextVNode(":")
  654. ], -1);
  655. const _hoisted_61 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  656. /* @__PURE__ */ createBaseVNode("button", {
  657. title: "Copy Code",
  658. class: "copy"
  659. }),
  660. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  661. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  662. /* @__PURE__ */ createBaseVNode("code", null, [
  663. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  664. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  665. ]),
  666. /* @__PURE__ */ createTextVNode("\n"),
  667. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  668. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9341_spi")
  669. ])
  670. ])
  671. ])
  672. ], -1);
  673. const _hoisted_62 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9341 device in firmware can then be done with the following API:", -1);
  674. const _hoisted_63 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  675. /* @__PURE__ */ createBaseVNode("button", {
  676. title: "Copy Code",
  677. class: "copy"
  678. }),
  679. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  680. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  681. /* @__PURE__ */ createBaseVNode("code", null, [
  682. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  683. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  684. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9341_make_spi_device"),
  685. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  686. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  687. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  688. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  689. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  690. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  691. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  692. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  693. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  694. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  695. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  696. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  697. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  698. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  699. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  700. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  701. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  702. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  703. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  704. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  705. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  706. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  707. ])
  708. ])
  709. ])
  710. ], -1);
  711. const _hoisted_64 = /* @__PURE__ */ createBaseVNode("p", null, [
  712. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  713. /* @__PURE__ */ createBaseVNode("code", null, "qp_ili9341_make_spi_device"),
  714. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  715. ], -1);
  716. const _hoisted_65 = /* @__PURE__ */ createBaseVNode("p", null, [
  717. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  718. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  719. /* @__PURE__ */ createTextVNode(" (default is 1):")
  720. ], -1);
  721. const _hoisted_66 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  722. /* @__PURE__ */ createBaseVNode("button", {
  723. title: "Copy Code",
  724. class: "copy"
  725. }),
  726. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  727. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  728. /* @__PURE__ */ createBaseVNode("code", null, [
  729. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  730. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  731. ]),
  732. /* @__PURE__ */ createTextVNode("\n"),
  733. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  734. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  735. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9341_NUM_DEVICES"),
  736. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  737. ])
  738. ])
  739. ])
  740. ], -1);
  741. const _hoisted_67 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ILI9341", -1);
  742. const _hoisted_68 = /* @__PURE__ */ createBaseVNode("p", null, [
  743. /* @__PURE__ */ createTextVNode("Enabling support for the ILI9486 in Quantum Painter is done by adding the following to "),
  744. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  745. /* @__PURE__ */ createTextVNode(":")
  746. ], -1);
  747. const _hoisted_69 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  748. /* @__PURE__ */ createBaseVNode("button", {
  749. title: "Copy Code",
  750. class: "copy"
  751. }),
  752. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  753. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  754. /* @__PURE__ */ createBaseVNode("code", null, [
  755. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  756. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  757. ]),
  758. /* @__PURE__ */ createTextVNode("\n"),
  759. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  760. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9486_spi")
  761. ])
  762. ])
  763. ])
  764. ], -1);
  765. const _hoisted_70 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9486 device in firmware can then be done with the following API:", -1);
  766. const _hoisted_71 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  767. /* @__PURE__ */ createBaseVNode("button", {
  768. title: "Copy Code",
  769. class: "copy"
  770. }),
  771. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  772. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  773. /* @__PURE__ */ createBaseVNode("code", null, [
  774. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  775. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  776. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9486_make_spi_device"),
  777. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  778. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  779. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  780. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  781. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  782. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  783. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  784. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  785. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  786. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  787. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  788. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  789. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  790. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  791. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  792. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  793. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  794. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  795. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  796. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  797. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  798. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  799. ])
  800. ])
  801. ])
  802. ], -1);
  803. const _hoisted_72 = /* @__PURE__ */ createBaseVNode("p", null, [
  804. /* @__PURE__ */ createTextVNode("There's another variant for this "),
  805. /* @__PURE__ */ createBaseVNode("a", {
  806. href: "https://www.waveshare.com/wiki/3.5inch_TFT_Touch_Shield",
  807. target: "_blank",
  808. rel: "noreferrer"
  809. }, "Waveshare module"),
  810. /* @__PURE__ */ createTextVNode(", because it has a quirky SPI->Parallel converter. You can create it with:")
  811. ], -1);
  812. const _hoisted_73 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  813. /* @__PURE__ */ createBaseVNode("button", {
  814. title: "Copy Code",
  815. class: "copy"
  816. }),
  817. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  818. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  819. /* @__PURE__ */ createBaseVNode("code", null, [
  820. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  821. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  822. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9486_make_spi_waveshare_device"),
  823. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  824. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  825. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  826. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  827. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  828. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  829. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  830. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  831. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  832. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  833. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  834. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  835. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  836. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  837. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  838. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  839. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  840. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  841. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  842. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  843. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  844. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  845. ])
  846. ])
  847. ])
  848. ], -1);
  849. const _hoisted_74 = /* @__PURE__ */ createBaseVNode("p", null, "The device handle returned from these functions can be used to perform all other drawing operations.", -1);
  850. const _hoisted_75 = /* @__PURE__ */ createBaseVNode("p", null, [
  851. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  852. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  853. /* @__PURE__ */ createTextVNode(" (default is 1):")
  854. ], -1);
  855. const _hoisted_76 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  856. /* @__PURE__ */ createBaseVNode("button", {
  857. title: "Copy Code",
  858. class: "copy"
  859. }),
  860. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  861. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  862. /* @__PURE__ */ createBaseVNode("code", null, [
  863. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  864. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  865. ]),
  866. /* @__PURE__ */ createTextVNode("\n"),
  867. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  868. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  869. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9486_NUM_DEVICES"),
  870. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  871. ])
  872. ])
  873. ])
  874. ], -1);
  875. const _hoisted_77 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb888 is compatible with ILI9486 Native color format rgb565 is compatible with ILI9486 Waveshare", -1);
  876. const _hoisted_78 = /* @__PURE__ */ createBaseVNode("p", null, [
  877. /* @__PURE__ */ createTextVNode("Enabling support for the ILI9488 in Quantum Painter is done by adding the following to "),
  878. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  879. /* @__PURE__ */ createTextVNode(":")
  880. ], -1);
  881. const _hoisted_79 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  882. /* @__PURE__ */ createBaseVNode("button", {
  883. title: "Copy Code",
  884. class: "copy"
  885. }),
  886. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  887. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  888. /* @__PURE__ */ createBaseVNode("code", null, [
  889. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  890. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  891. ]),
  892. /* @__PURE__ */ createTextVNode("\n"),
  893. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  894. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9488_spi")
  895. ])
  896. ])
  897. ])
  898. ], -1);
  899. const _hoisted_80 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9488 device in firmware can then be done with the following API:", -1);
  900. const _hoisted_81 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  901. /* @__PURE__ */ createBaseVNode("button", {
  902. title: "Copy Code",
  903. class: "copy"
  904. }),
  905. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  906. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  907. /* @__PURE__ */ createBaseVNode("code", null, [
  908. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  909. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  910. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9488_make_spi_device"),
  911. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  912. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  913. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  914. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  915. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  916. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  917. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  918. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  919. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  920. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  921. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  922. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  923. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  924. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  925. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  926. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  927. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  928. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  929. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  930. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  931. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  932. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  933. ])
  934. ])
  935. ])
  936. ], -1);
  937. const _hoisted_82 = /* @__PURE__ */ createBaseVNode("p", null, [
  938. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  939. /* @__PURE__ */ createBaseVNode("code", null, "qp_ili9488_make_spi_device"),
  940. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  941. ], -1);
  942. const _hoisted_83 = /* @__PURE__ */ createBaseVNode("p", null, [
  943. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  944. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  945. /* @__PURE__ */ createTextVNode(" (default is 1):")
  946. ], -1);
  947. const _hoisted_84 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  948. /* @__PURE__ */ createBaseVNode("button", {
  949. title: "Copy Code",
  950. class: "copy"
  951. }),
  952. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  953. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  954. /* @__PURE__ */ createBaseVNode("code", null, [
  955. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  956. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  957. ]),
  958. /* @__PURE__ */ createTextVNode("\n"),
  959. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  960. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  961. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9488_NUM_DEVICES"),
  962. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  963. ])
  964. ])
  965. ])
  966. ], -1);
  967. const _hoisted_85 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb888 is compatible with ILI9488", -1);
  968. const _hoisted_86 = /* @__PURE__ */ createBaseVNode("p", null, [
  969. /* @__PURE__ */ createTextVNode("Enabling support for the ST7735 in Quantum Painter is done by adding the following to "),
  970. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  971. /* @__PURE__ */ createTextVNode(":")
  972. ], -1);
  973. const _hoisted_87 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  974. /* @__PURE__ */ createBaseVNode("button", {
  975. title: "Copy Code",
  976. class: "copy"
  977. }),
  978. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  979. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  980. /* @__PURE__ */ createBaseVNode("code", null, [
  981. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  982. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  983. ]),
  984. /* @__PURE__ */ createTextVNode("\n"),
  985. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  986. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += st7735_spi")
  987. ])
  988. ])
  989. ])
  990. ], -1);
  991. const _hoisted_88 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ST7735 device in firmware can then be done with the following API:", -1);
  992. const _hoisted_89 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  993. /* @__PURE__ */ createBaseVNode("button", {
  994. title: "Copy Code",
  995. class: "copy"
  996. }),
  997. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  998. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  999. /* @__PURE__ */ createBaseVNode("code", null, [
  1000. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1001. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1002. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_st7735_make_spi_device"),
  1003. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1004. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1005. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1006. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1007. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1008. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1009. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1010. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1011. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  1012. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1013. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1014. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  1015. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1016. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1017. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  1018. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1019. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1020. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  1021. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1022. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  1023. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  1024. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1025. ])
  1026. ])
  1027. ])
  1028. ], -1);
  1029. const _hoisted_90 = /* @__PURE__ */ createBaseVNode("p", null, [
  1030. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  1031. /* @__PURE__ */ createBaseVNode("code", null, "qp_st7735_make_spi_device"),
  1032. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  1033. ], -1);
  1034. const _hoisted_91 = /* @__PURE__ */ createBaseVNode("p", null, [
  1035. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  1036. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  1037. /* @__PURE__ */ createTextVNode(" (default is 1):")
  1038. ], -1);
  1039. const _hoisted_92 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1040. /* @__PURE__ */ createBaseVNode("button", {
  1041. title: "Copy Code",
  1042. class: "copy"
  1043. }),
  1044. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1045. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1046. /* @__PURE__ */ createBaseVNode("code", null, [
  1047. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1048. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  1049. ]),
  1050. /* @__PURE__ */ createTextVNode("\n"),
  1051. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1052. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1053. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ST7735_NUM_DEVICES"),
  1054. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1055. ])
  1056. ])
  1057. ])
  1058. ], -1);
  1059. const _hoisted_93 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ST7735", -1);
  1060. const _hoisted_94 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  1061. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  1062. /* @__PURE__ */ createBaseVNode("p", null, [
  1063. /* @__PURE__ */ createTextVNode("Some ST7735 devices are known to have different drawing offsets -- despite being a 132x162 pixel display controller internally, some display panels are only 80x160, or smaller. These may require an offset to be applied; see "),
  1064. /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets"),
  1065. /* @__PURE__ */ createTextVNode(" above for information on how to override the offsets if they aren't correctly rendered.")
  1066. ])
  1067. ], -1);
  1068. const _hoisted_95 = /* @__PURE__ */ createBaseVNode("p", null, [
  1069. /* @__PURE__ */ createTextVNode("Enabling support for the ST7789 in Quantum Painter is done by adding the following to "),
  1070. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  1071. /* @__PURE__ */ createTextVNode(":")
  1072. ], -1);
  1073. const _hoisted_96 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  1074. /* @__PURE__ */ createBaseVNode("button", {
  1075. title: "Copy Code",
  1076. class: "copy"
  1077. }),
  1078. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  1079. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1080. /* @__PURE__ */ createBaseVNode("code", null, [
  1081. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1082. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  1083. ]),
  1084. /* @__PURE__ */ createTextVNode("\n"),
  1085. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1086. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += st7789_spi")
  1087. ])
  1088. ])
  1089. ])
  1090. ], -1);
  1091. const _hoisted_97 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ST7789 device in firmware can then be done with the following API:", -1);
  1092. const _hoisted_98 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1093. /* @__PURE__ */ createBaseVNode("button", {
  1094. title: "Copy Code",
  1095. class: "copy"
  1096. }),
  1097. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1098. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1099. /* @__PURE__ */ createBaseVNode("code", null, [
  1100. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1101. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1102. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_st7789_make_spi_device"),
  1103. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1104. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1105. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1106. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1107. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1108. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1109. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1110. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1111. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  1112. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1113. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1114. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  1115. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1116. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1117. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  1118. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1119. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1120. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  1121. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1122. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  1123. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  1124. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1125. ])
  1126. ])
  1127. ])
  1128. ], -1);
  1129. const _hoisted_99 = /* @__PURE__ */ createBaseVNode("p", null, [
  1130. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  1131. /* @__PURE__ */ createBaseVNode("code", null, "qp_st7789_make_spi_device"),
  1132. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  1133. ], -1);
  1134. const _hoisted_100 = /* @__PURE__ */ createBaseVNode("p", null, [
  1135. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  1136. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  1137. /* @__PURE__ */ createTextVNode(" (default is 1):")
  1138. ], -1);
  1139. const _hoisted_101 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1140. /* @__PURE__ */ createBaseVNode("button", {
  1141. title: "Copy Code",
  1142. class: "copy"
  1143. }),
  1144. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1145. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1146. /* @__PURE__ */ createBaseVNode("code", null, [
  1147. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1148. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  1149. ]),
  1150. /* @__PURE__ */ createTextVNode("\n"),
  1151. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1152. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1153. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ST7789_NUM_DEVICES"),
  1154. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1155. ])
  1156. ])
  1157. ])
  1158. ], -1);
  1159. const _hoisted_102 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ST7789", -1);
  1160. const _hoisted_103 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  1161. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  1162. /* @__PURE__ */ createBaseVNode("p", null, [
  1163. /* @__PURE__ */ createTextVNode("Some ST7789 devices are known to have different drawing offsets -- despite being a 240x320 pixel display controller internally, some display panels are only 240x240, or smaller. These may require an offset to be applied; see "),
  1164. /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets"),
  1165. /* @__PURE__ */ createTextVNode(" above for information on how to override the offsets if they aren't correctly rendered.")
  1166. ])
  1167. ], -1);
  1168. const _hoisted_104 = /* @__PURE__ */ createBaseVNode("p", null, "OLED displays tend to use 5-pin SPI when at larger resolutions, or when using color -- SPI SCK, SPI MOSI, SPI CS, D/C, and RST pins. Smaller OLEDs may use I2C instead.", -1);
  1169. const _hoisted_105 = /* @__PURE__ */ createBaseVNode("p", null, [
  1170. /* @__PURE__ */ createTextVNode("When using these displays, either "),
  1171. /* @__PURE__ */ createBaseVNode("code", null, "spi_master"),
  1172. /* @__PURE__ */ createTextVNode(" or "),
  1173. /* @__PURE__ */ createBaseVNode("code", null, "i2c_master"),
  1174. /* @__PURE__ */ createTextVNode(" must already be correctly configured for both the platform and panel you're building for.")
  1175. ], -1);
  1176. const _hoisted_106 = /* @__PURE__ */ createBaseVNode("p", null, "For SPI, the pin assignments for SPI CS, D/C, and RST are specified during device construction -- for I2C the panel's address is specified instead.", -1);
  1177. const _hoisted_107 = /* @__PURE__ */ createBaseVNode("p", null, [
  1178. /* @__PURE__ */ createTextVNode("Enabling support for the SSD1351 in Quantum Painter is done by adding the following to "),
  1179. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  1180. /* @__PURE__ */ createTextVNode(":")
  1181. ], -1);
  1182. const _hoisted_108 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  1183. /* @__PURE__ */ createBaseVNode("button", {
  1184. title: "Copy Code",
  1185. class: "copy"
  1186. }),
  1187. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  1188. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1189. /* @__PURE__ */ createBaseVNode("code", null, [
  1190. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1191. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  1192. ]),
  1193. /* @__PURE__ */ createTextVNode("\n"),
  1194. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1195. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ssd1351_spi")
  1196. ])
  1197. ])
  1198. ])
  1199. ], -1);
  1200. const _hoisted_109 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a SSD1351 device in firmware can then be done with the following API:", -1);
  1201. const _hoisted_110 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1202. /* @__PURE__ */ createBaseVNode("button", {
  1203. title: "Copy Code",
  1204. class: "copy"
  1205. }),
  1206. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1207. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1208. /* @__PURE__ */ createBaseVNode("code", null, [
  1209. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1210. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1211. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ssd1351_make_spi_device"),
  1212. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1213. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1214. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1215. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1216. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1217. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1218. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1219. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1220. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  1221. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1222. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1223. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  1224. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1225. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1226. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  1227. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1228. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1229. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  1230. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1231. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  1232. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  1233. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1234. ])
  1235. ])
  1236. ])
  1237. ], -1);
  1238. const _hoisted_111 = /* @__PURE__ */ createBaseVNode("p", null, [
  1239. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  1240. /* @__PURE__ */ createBaseVNode("code", null, "qp_ssd1351_make_spi_device"),
  1241. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  1242. ], -1);
  1243. const _hoisted_112 = /* @__PURE__ */ createBaseVNode("p", null, [
  1244. /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
  1245. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  1246. /* @__PURE__ */ createTextVNode(" (default is 1):")
  1247. ], -1);
  1248. const _hoisted_113 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1249. /* @__PURE__ */ createBaseVNode("button", {
  1250. title: "Copy Code",
  1251. class: "copy"
  1252. }),
  1253. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1254. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1255. /* @__PURE__ */ createBaseVNode("code", null, [
  1256. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1257. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
  1258. ]),
  1259. /* @__PURE__ */ createTextVNode("\n"),
  1260. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1261. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1262. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SSD1351_NUM_DEVICES"),
  1263. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1264. ])
  1265. ])
  1266. ])
  1267. ], -1);
  1268. const _hoisted_114 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with SSD1351", -1);
  1269. const _hoisted_115 = /* @__PURE__ */ createBaseVNode("p", null, [
  1270. /* @__PURE__ */ createTextVNode("Enabling support for the SH1106 in Quantum Painter is done by adding the following to "),
  1271. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  1272. /* @__PURE__ */ createTextVNode(":")
  1273. ], -1);
  1274. const _hoisted_116 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  1275. /* @__PURE__ */ createBaseVNode("button", {
  1276. title: "Copy Code",
  1277. class: "copy"
  1278. }),
  1279. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  1280. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1281. /* @__PURE__ */ createBaseVNode("code", null, [
  1282. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1283. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  1284. ]),
  1285. /* @__PURE__ */ createTextVNode("\n"),
  1286. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1287. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For SPI:")
  1288. ]),
  1289. /* @__PURE__ */ createTextVNode("\n"),
  1290. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1291. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += sh1106_spi")
  1292. ]),
  1293. /* @__PURE__ */ createTextVNode("\n"),
  1294. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1295. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For I2C:")
  1296. ]),
  1297. /* @__PURE__ */ createTextVNode("\n"),
  1298. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1299. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += sh1106_i2c")
  1300. ])
  1301. ])
  1302. ])
  1303. ], -1);
  1304. const _hoisted_117 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a SH1106 device in firmware can then be done with the following APIs:", -1);
  1305. const _hoisted_118 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1306. /* @__PURE__ */ createBaseVNode("button", {
  1307. title: "Copy Code",
  1308. class: "copy"
  1309. }),
  1310. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1311. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1312. /* @__PURE__ */ createBaseVNode("code", null, [
  1313. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1314. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// SPI-based SH1106:")
  1315. ]),
  1316. /* @__PURE__ */ createTextVNode("\n"),
  1317. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1318. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1319. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_sh1106_make_spi_device"),
  1320. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1321. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1322. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1323. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1324. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1325. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1326. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1327. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1328. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  1329. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1330. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1331. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  1332. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1333. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1334. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  1335. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1336. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1337. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  1338. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1339. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  1340. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  1341. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1342. ]),
  1343. /* @__PURE__ */ createTextVNode("\n"),
  1344. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1345. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// I2C-based SH1106:")
  1346. ]),
  1347. /* @__PURE__ */ createTextVNode("\n"),
  1348. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1349. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1350. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_sh1106_make_i2c_device"),
  1351. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1352. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1353. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1354. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1355. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1356. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1357. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1358. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  1359. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " i2c_address"),
  1360. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1361. ])
  1362. ])
  1363. ])
  1364. ], -1);
  1365. const _hoisted_119 = /* @__PURE__ */ createBaseVNode("p", null, [
  1366. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  1367. /* @__PURE__ */ createBaseVNode("code", null, "qp_sh1106_make_???_device"),
  1368. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  1369. ], -1);
  1370. const _hoisted_120 = /* @__PURE__ */ createBaseVNode("p", null, [
  1371. /* @__PURE__ */ createTextVNode("The maximum number of displays of each type can be configured by changing the following in your "),
  1372. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  1373. /* @__PURE__ */ createTextVNode(" (default is 1):")
  1374. ], -1);
  1375. const _hoisted_121 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1376. /* @__PURE__ */ createBaseVNode("button", {
  1377. title: "Copy Code",
  1378. class: "copy"
  1379. }),
  1380. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1381. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1382. /* @__PURE__ */ createBaseVNode("code", null, [
  1383. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1384. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 SPI displays:")
  1385. ]),
  1386. /* @__PURE__ */ createTextVNode("\n"),
  1387. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1388. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1389. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SH1106_NUM_SPI_DEVICES"),
  1390. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1391. ]),
  1392. /* @__PURE__ */ createTextVNode("\n"),
  1393. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1394. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 I2C displays:")
  1395. ]),
  1396. /* @__PURE__ */ createTextVNode("\n"),
  1397. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1398. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1399. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SH1106_NUM_I2C_DEVICES"),
  1400. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1401. ])
  1402. ])
  1403. ])
  1404. ], -1);
  1405. const _hoisted_122 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format mono2 is compatible with SH1106", -1);
  1406. const _hoisted_123 = /* @__PURE__ */ createBaseVNode("p", null, "SSD1306 and SH1106 are almost entirely identical, to the point of being indisinguishable by Quantum Painter. Enable SH1106 support in Quantum Painter and create SH1106 devices in firmware to perform drawing operations on SSD1306 displays.", -1);
  1407. const _hoisted_124 = /* @__PURE__ */ createBaseVNode("p", null, [
  1408. /* @__PURE__ */ createTextVNode("Enabling support for the LD7032 in Quantum Painter is done by adding the following to "),
  1409. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  1410. /* @__PURE__ */ createTextVNode(":")
  1411. ], -1);
  1412. const _hoisted_125 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  1413. /* @__PURE__ */ createBaseVNode("button", {
  1414. title: "Copy Code",
  1415. class: "copy"
  1416. }),
  1417. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  1418. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1419. /* @__PURE__ */ createBaseVNode("code", null, [
  1420. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1421. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  1422. ]),
  1423. /* @__PURE__ */ createTextVNode("\n"),
  1424. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1425. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For SPI:")
  1426. ]),
  1427. /* @__PURE__ */ createTextVNode("\n"),
  1428. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1429. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ld7032_spi")
  1430. ]),
  1431. /* @__PURE__ */ createTextVNode("\n"),
  1432. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1433. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For I2C:")
  1434. ]),
  1435. /* @__PURE__ */ createTextVNode("\n"),
  1436. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1437. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ld7032_i2c")
  1438. ])
  1439. ])
  1440. ])
  1441. ], -1);
  1442. const _hoisted_126 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a SH1106 device in firmware can then be done with the following APIs:", -1);
  1443. const _hoisted_127 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1444. /* @__PURE__ */ createBaseVNode("button", {
  1445. title: "Copy Code",
  1446. class: "copy"
  1447. }),
  1448. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1449. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1450. /* @__PURE__ */ createBaseVNode("code", null, [
  1451. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1452. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// SPI-based LD7032:")
  1453. ]),
  1454. /* @__PURE__ */ createTextVNode("\n"),
  1455. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1456. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1457. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ld7032_make_spi_device"),
  1458. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1459. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1460. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1461. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1462. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1463. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1464. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1465. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1466. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
  1467. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1468. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1469. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
  1470. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1471. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
  1472. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
  1473. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1474. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1475. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
  1476. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1477. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  1478. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
  1479. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1480. ]),
  1481. /* @__PURE__ */ createTextVNode("\n"),
  1482. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1483. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// I2C-based LD7032:")
  1484. ]),
  1485. /* @__PURE__ */ createTextVNode("\n"),
  1486. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1487. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1488. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ld7032_make_i2c_device"),
  1489. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1490. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1491. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1492. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1493. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1494. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1495. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1496. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  1497. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " i2c_address"),
  1498. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1499. ])
  1500. ])
  1501. ])
  1502. ], -1);
  1503. const _hoisted_128 = /* @__PURE__ */ createBaseVNode("p", null, [
  1504. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  1505. /* @__PURE__ */ createBaseVNode("code", null, "qp_ld7032_make_???_device"),
  1506. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  1507. ], -1);
  1508. const _hoisted_129 = /* @__PURE__ */ createBaseVNode("p", null, [
  1509. /* @__PURE__ */ createTextVNode("The maximum number of displays of each type can be configured by changing the following in your "),
  1510. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  1511. /* @__PURE__ */ createTextVNode(" (default is 1):")
  1512. ], -1);
  1513. const _hoisted_130 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1514. /* @__PURE__ */ createBaseVNode("button", {
  1515. title: "Copy Code",
  1516. class: "copy"
  1517. }),
  1518. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1519. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1520. /* @__PURE__ */ createBaseVNode("code", null, [
  1521. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1522. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 SPI displays:")
  1523. ]),
  1524. /* @__PURE__ */ createTextVNode("\n"),
  1525. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1526. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1527. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " LD7032_NUM_SPI_DEVICES"),
  1528. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1529. ]),
  1530. /* @__PURE__ */ createTextVNode("\n"),
  1531. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1532. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 I2C displays:")
  1533. ]),
  1534. /* @__PURE__ */ createTextVNode("\n"),
  1535. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1536. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1537. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " LD7032_NUM_I2C_DEVICES"),
  1538. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1539. ])
  1540. ])
  1541. ])
  1542. ], -1);
  1543. const _hoisted_131 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format mono2 is compatible with LD7032.", -1);
  1544. const _hoisted_132 = /* @__PURE__ */ createBaseVNode("p", null, 'Quantum Painter has a surface driver which is able to target a buffer in RAM. In general, surfaces keep track of the "dirty" region -- the area that has been drawn to since the last flush -- so that when transferring to the display they can transfer the minimal amount of data to achieve the end result.', -1);
  1545. const _hoisted_133 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  1546. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  1547. /* @__PURE__ */ createBaseVNode("p", null, "These generally require significant amounts of RAM, so at large sizes and/or higher bit depths, they may not be usable on all MCUs.")
  1548. ], -1);
  1549. const _hoisted_134 = /* @__PURE__ */ createBaseVNode("p", null, [
  1550. /* @__PURE__ */ createTextVNode("Enabling support for surfaces in Quantum Painter is done by adding the following to "),
  1551. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  1552. /* @__PURE__ */ createTextVNode(":")
  1553. ], -1);
  1554. const _hoisted_135 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  1555. /* @__PURE__ */ createBaseVNode("button", {
  1556. title: "Copy Code",
  1557. class: "copy"
  1558. }),
  1559. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  1560. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1561. /* @__PURE__ */ createBaseVNode("code", null, [
  1562. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1563. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
  1564. ]),
  1565. /* @__PURE__ */ createTextVNode("\n"),
  1566. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1567. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += surface")
  1568. ])
  1569. ])
  1570. ])
  1571. ], -1);
  1572. const _hoisted_136 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a surface in firmware can then be done with the following APIs:", -1);
  1573. const _hoisted_137 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1574. /* @__PURE__ */ createBaseVNode("button", {
  1575. title: "Copy Code",
  1576. class: "copy"
  1577. }),
  1578. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1579. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1580. /* @__PURE__ */ createBaseVNode("code", null, [
  1581. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1582. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 16bpp RGB565 surface:")
  1583. ]),
  1584. /* @__PURE__ */ createTextVNode("\n"),
  1585. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1586. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1587. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_make_rgb565_surface"),
  1588. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1589. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1590. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1591. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1592. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1593. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1594. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1595. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1596. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  1597. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
  1598. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1599. ]),
  1600. /* @__PURE__ */ createTextVNode("\n"),
  1601. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1602. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 1bpp monochrome surface:")
  1603. ]),
  1604. /* @__PURE__ */ createTextVNode("\n"),
  1605. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1606. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1607. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_make_mono1bpp_surface"),
  1608. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1609. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1610. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
  1611. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1612. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1613. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
  1614. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1615. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1616. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  1617. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
  1618. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1619. ])
  1620. ])
  1621. ])
  1622. ], -1);
  1623. const _hoisted_138 = /* @__PURE__ */ createBaseVNode("p", null, [
  1624. /* @__PURE__ */ createTextVNode("The "),
  1625. /* @__PURE__ */ createBaseVNode("code", null, "buffer"),
  1626. /* @__PURE__ */ createTextVNode(" is a user-supplied area of memory, which can be statically allocated using "),
  1627. /* @__PURE__ */ createBaseVNode("code", null, "SURFACE_REQUIRED_BUFFER_BYTE_SIZE"),
  1628. /* @__PURE__ */ createTextVNode(":")
  1629. ], -1);
  1630. const _hoisted_139 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1631. /* @__PURE__ */ createBaseVNode("button", {
  1632. title: "Copy Code",
  1633. class: "copy"
  1634. }),
  1635. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1636. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1637. /* @__PURE__ */ createBaseVNode("code", null, [
  1638. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1639. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Buffer required for a 240x80 16bpp surface:")
  1640. ]),
  1641. /* @__PURE__ */ createTextVNode("\n"),
  1642. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1643. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  1644. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " framebuffer"),
  1645. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "["),
  1646. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "SURFACE_REQUIRED_BUFFER_BYTE_SIZE"),
  1647. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1648. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
  1649. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1650. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "80"),
  1651. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1652. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "16"),
  1653. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ")];")
  1654. ])
  1655. ])
  1656. ])
  1657. ], -1);
  1658. const _hoisted_140 = /* @__PURE__ */ createBaseVNode("p", null, [
  1659. /* @__PURE__ */ createTextVNode("The device handle returned from the "),
  1660. /* @__PURE__ */ createBaseVNode("code", null, "qp_make_?????_surface"),
  1661. /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
  1662. ], -1);
  1663. const _hoisted_141 = /* @__PURE__ */ createBaseVNode("p", null, "Example:", -1);
  1664. const _hoisted_142 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1665. /* @__PURE__ */ createBaseVNode("button", {
  1666. title: "Copy Code",
  1667. class: "copy"
  1668. }),
  1669. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1670. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1671. /* @__PURE__ */ createBaseVNode("code", null, [
  1672. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1673. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  1674. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_device_t"),
  1675. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_surface;")
  1676. ]),
  1677. /* @__PURE__ */ createTextVNode("\n"),
  1678. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1679. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  1680. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint8_t"),
  1681. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " my_framebuffer"),
  1682. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "["),
  1683. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "SURFACE_REQUIRED_BUFFER_BYTE_SIZE"),
  1684. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1685. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
  1686. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1687. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "80"),
  1688. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1689. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "16"),
  1690. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ")];"),
  1691. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Allocate a buffer for a 16bpp 240x80 RGB565 display")
  1692. ]),
  1693. /* @__PURE__ */ createTextVNode("\n"),
  1694. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1695. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1696. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
  1697. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1698. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1699. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  1700. ]),
  1701. /* @__PURE__ */ createTextVNode("\n"),
  1702. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1703. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_surface "),
  1704. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  1705. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rgb565_make_surface"),
  1706. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1707. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
  1708. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1709. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "80"),
  1710. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", my_framebuffer);")
  1711. ]),
  1712. /* @__PURE__ */ createTextVNode("\n"),
  1713. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1714. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_init"),
  1715. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(my_surface, QP_ROTATION_0);")
  1716. ]),
  1717. /* @__PURE__ */ createTextVNode("\n"),
  1718. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1719. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_user"),
  1720. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  1721. ]),
  1722. /* @__PURE__ */ createTextVNode("\n"),
  1723. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1724. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  1725. ])
  1726. ])
  1727. ])
  1728. ], -1);
  1729. const _hoisted_143 = /* @__PURE__ */ createBaseVNode("p", null, [
  1730. /* @__PURE__ */ createTextVNode("The maximum number of surfaces can be configured by changing the following in your "),
  1731. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  1732. /* @__PURE__ */ createTextVNode(" (default is 1):")
  1733. ], -1);
  1734. const _hoisted_144 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1735. /* @__PURE__ */ createBaseVNode("button", {
  1736. title: "Copy Code",
  1737. class: "copy"
  1738. }),
  1739. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1740. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1741. /* @__PURE__ */ createBaseVNode("code", null, [
  1742. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1743. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 surfaces:")
  1744. ]),
  1745. /* @__PURE__ */ createTextVNode("\n"),
  1746. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1747. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
  1748. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SURFACE_NUM_DEVICES"),
  1749. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
  1750. ])
  1751. ])
  1752. ])
  1753. ], -1);
  1754. const _hoisted_145 = /* @__PURE__ */ createBaseVNode("p", null, "To transfer the contents of the surface to another display of the same pixel format, the following API can be invoked:", -1);
  1755. const _hoisted_146 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1756. /* @__PURE__ */ createBaseVNode("button", {
  1757. title: "Copy Code",
  1758. class: "copy"
  1759. }),
  1760. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1761. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1762. /* @__PURE__ */ createBaseVNode("code", null, [
  1763. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1764. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  1765. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_surface_draw"),
  1766. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1767. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1768. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " surface"),
  1769. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1770. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1771. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " display"),
  1772. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1773. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1774. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  1775. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1776. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  1777. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  1778. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1779. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  1780. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " entire_surface"),
  1781. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1782. ])
  1783. ])
  1784. ])
  1785. ], -1);
  1786. const _hoisted_147 = /* @__PURE__ */ createBaseVNode("p", null, [
  1787. /* @__PURE__ */ createTextVNode("The "),
  1788. /* @__PURE__ */ createBaseVNode("code", null, "surface"),
  1789. /* @__PURE__ */ createTextVNode(" is the surface to copy out from. The "),
  1790. /* @__PURE__ */ createBaseVNode("code", null, "display"),
  1791. /* @__PURE__ */ createTextVNode(" is the target display to draw into. "),
  1792. /* @__PURE__ */ createBaseVNode("code", null, "x"),
  1793. /* @__PURE__ */ createTextVNode(" and "),
  1794. /* @__PURE__ */ createBaseVNode("code", null, "y"),
  1795. /* @__PURE__ */ createTextVNode(" are the target location to draw the surface pixel data. Under normal circumstances, the location should be consistent, as the dirty region is calculated with respect to the "),
  1796. /* @__PURE__ */ createBaseVNode("code", null, "x"),
  1797. /* @__PURE__ */ createTextVNode(" and "),
  1798. /* @__PURE__ */ createBaseVNode("code", null, "y"),
  1799. /* @__PURE__ */ createTextVNode(" coordinates -- changing those will result in partial, overlapping draws. "),
  1800. /* @__PURE__ */ createBaseVNode("code", null, "entire_surface"),
  1801. /* @__PURE__ */ createTextVNode(" whether the entire surface should be drawn, instead of just the dirty region.")
  1802. ], -1);
  1803. const _hoisted_148 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  1804. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  1805. /* @__PURE__ */ createBaseVNode("p", null, "The surface and display panel must have the same native pixel format.")
  1806. ], -1);
  1807. const _hoisted_149 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
  1808. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
  1809. /* @__PURE__ */ createBaseVNode("p", null, [
  1810. /* @__PURE__ */ createTextVNode("Calling "),
  1811. /* @__PURE__ */ createBaseVNode("code", null, "qp_flush()"),
  1812. /* @__PURE__ */ createTextVNode(" on the surface resets its dirty region. Copying the surface contents to the display also automatically resets the dirty region.")
  1813. ])
  1814. ], -1);
  1815. const _hoisted_150 = /* @__PURE__ */ createStaticVNode("", 4);
  1816. const _hoisted_154 = /* @__PURE__ */ createBaseVNode("p", null, [
  1817. /* @__PURE__ */ createTextVNode("The coordinate system used in Quantum Painter generally accepts "),
  1818. /* @__PURE__ */ createBaseVNode("code", null, "left"),
  1819. /* @__PURE__ */ createTextVNode(", "),
  1820. /* @__PURE__ */ createBaseVNode("code", null, "top"),
  1821. /* @__PURE__ */ createTextVNode(", "),
  1822. /* @__PURE__ */ createBaseVNode("code", null, "right"),
  1823. /* @__PURE__ */ createTextVNode(", and "),
  1824. /* @__PURE__ */ createBaseVNode("code", null, "bottom"),
  1825. /* @__PURE__ */ createTextVNode(" instead of x/y/width/height, and each coordinate is inclusive of where pixels should be drawn. This is required as some datatypes used by display panels have a maximum value of "),
  1826. /* @__PURE__ */ createBaseVNode("code", null, "255"),
  1827. /* @__PURE__ */ createTextVNode(" -- for any value or geometry extent that matches "),
  1828. /* @__PURE__ */ createBaseVNode("code", null, "256"),
  1829. /* @__PURE__ */ createTextVNode(", this would be represented as a "),
  1830. /* @__PURE__ */ createBaseVNode("code", null, "0"),
  1831. /* @__PURE__ */ createTextVNode(", instead.")
  1832. ], -1);
  1833. const _hoisted_155 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
  1834. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
  1835. /* @__PURE__ */ createBaseVNode("p", null, [
  1836. /* @__PURE__ */ createTextVNode("Drawing a horizontal line 8 pixels long, starting from 4 pixels inside the left side of the display, will need "),
  1837. /* @__PURE__ */ createBaseVNode("code", null, "left=4"),
  1838. /* @__PURE__ */ createTextVNode(", "),
  1839. /* @__PURE__ */ createBaseVNode("code", null, "right=11"),
  1840. /* @__PURE__ */ createTextVNode(".")
  1841. ])
  1842. ], -1);
  1843. const _hoisted_156 = /* @__PURE__ */ createBaseVNode("p", null, "All color data matches the standard QMK HSV triplet definitions:", -1);
  1844. const _hoisted_157 = /* @__PURE__ */ createBaseVNode("ul", null, [
  1845. /* @__PURE__ */ createBaseVNode("li", null, [
  1846. /* @__PURE__ */ createTextVNode("Hue is of the range "),
  1847. /* @__PURE__ */ createBaseVNode("code", null, "0...255"),
  1848. /* @__PURE__ */ createTextVNode(" and is internally mapped to 0...360 degrees.")
  1849. ]),
  1850. /* @__PURE__ */ createBaseVNode("li", null, [
  1851. /* @__PURE__ */ createTextVNode("Saturation is of the range "),
  1852. /* @__PURE__ */ createBaseVNode("code", null, "0...255"),
  1853. /* @__PURE__ */ createTextVNode(" and is internally mapped to 0...100% saturation.")
  1854. ]),
  1855. /* @__PURE__ */ createBaseVNode("li", null, [
  1856. /* @__PURE__ */ createTextVNode("Value is of the range "),
  1857. /* @__PURE__ */ createBaseVNode("code", null, "0...255"),
  1858. /* @__PURE__ */ createTextVNode(" and is internally mapped to 0...100% brightness.")
  1859. ])
  1860. ], -1);
  1861. const _hoisted_158 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
  1862. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
  1863. /* @__PURE__ */ createBaseVNode("p", null, "Colors used in Quantum Painter are not subject to the RGB lighting CIE curve, if it is enabled.")
  1864. ], -1);
  1865. const _hoisted_159 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1866. /* @__PURE__ */ createBaseVNode("button", {
  1867. title: "Copy Code",
  1868. class: "copy"
  1869. }),
  1870. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1871. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1872. /* @__PURE__ */ createBaseVNode("code", null, [
  1873. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1874. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  1875. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_init"),
  1876. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1877. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1878. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  1879. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1880. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_rotation_t"),
  1881. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " rotation"),
  1882. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1883. ])
  1884. ])
  1885. ])
  1886. ], -1);
  1887. const _hoisted_160 = /* @__PURE__ */ createBaseVNode("p", null, [
  1888. /* @__PURE__ */ createTextVNode("The "),
  1889. /* @__PURE__ */ createBaseVNode("code", null, "qp_init"),
  1890. /* @__PURE__ */ createTextVNode(" function is used to initialise a display device after it has been created. This accepts a rotation parameter ("),
  1891. /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_0"),
  1892. /* @__PURE__ */ createTextVNode(", "),
  1893. /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_90"),
  1894. /* @__PURE__ */ createTextVNode(", "),
  1895. /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_180"),
  1896. /* @__PURE__ */ createTextVNode(", "),
  1897. /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_270"),
  1898. /* @__PURE__ */ createTextVNode("), which makes sure that the orientation of what's drawn on the display is correct.")
  1899. ], -1);
  1900. const _hoisted_161 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1901. /* @__PURE__ */ createBaseVNode("button", {
  1902. title: "Copy Code",
  1903. class: "copy"
  1904. }),
  1905. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1906. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1907. /* @__PURE__ */ createBaseVNode("code", null, [
  1908. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1909. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  1910. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_device_t"),
  1911. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " display;")
  1912. ]),
  1913. /* @__PURE__ */ createTextVNode("\n"),
  1914. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1915. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1916. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
  1917. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1918. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1919. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  1920. ]),
  1921. /* @__PURE__ */ createTextVNode("\n"),
  1922. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1923. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " display "),
  1924. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  1925. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " qp_make_.......;"),
  1926. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Create the display")
  1927. ]),
  1928. /* @__PURE__ */ createTextVNode("\n"),
  1929. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1930. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_init"),
  1931. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, QP_ROTATION_0);"),
  1932. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Initialise the display")
  1933. ]),
  1934. /* @__PURE__ */ createTextVNode("\n"),
  1935. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1936. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  1937. ])
  1938. ])
  1939. ])
  1940. ], -1);
  1941. const _hoisted_162 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1942. /* @__PURE__ */ createBaseVNode("button", {
  1943. title: "Copy Code",
  1944. class: "copy"
  1945. }),
  1946. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1947. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1948. /* @__PURE__ */ createBaseVNode("code", null, [
  1949. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1950. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  1951. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_power"),
  1952. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1953. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  1954. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  1955. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  1956. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  1957. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " power_on"),
  1958. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  1959. ])
  1960. ])
  1961. ])
  1962. ], -1);
  1963. const _hoisted_163 = /* @__PURE__ */ createBaseVNode("p", null, [
  1964. /* @__PURE__ */ createTextVNode("The "),
  1965. /* @__PURE__ */ createBaseVNode("code", null, "qp_power"),
  1966. /* @__PURE__ */ createTextVNode(" function instructs the display whether or not the display panel should be on or off.")
  1967. ], -1);
  1968. const _hoisted_164 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  1969. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  1970. /* @__PURE__ */ createBaseVNode("p", null, [
  1971. /* @__PURE__ */ createTextVNode("If there is a separate backlight controlled through the normal QMK backlight API, this is not controlled by the "),
  1972. /* @__PURE__ */ createBaseVNode("code", null, "qp_power"),
  1973. /* @__PURE__ */ createTextVNode(" function and needs to be manually handled elsewhere.")
  1974. ])
  1975. ], -1);
  1976. const _hoisted_165 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  1977. /* @__PURE__ */ createBaseVNode("button", {
  1978. title: "Copy Code",
  1979. class: "copy"
  1980. }),
  1981. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  1982. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  1983. /* @__PURE__ */ createBaseVNode("code", null, [
  1984. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1985. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  1986. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint8_t"),
  1987. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_backlight "),
  1988. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  1989. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
  1990. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  1991. ]),
  1992. /* @__PURE__ */ createTextVNode("\n"),
  1993. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  1994. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1995. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " suspend_power_down_user"),
  1996. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  1997. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  1998. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  1999. ]),
  2000. /* @__PURE__ */ createTextVNode("\n"),
  2001. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2002. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2003. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (last_backlight "),
  2004. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "=="),
  2005. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
  2006. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2007. ]),
  2008. /* @__PURE__ */ createTextVNode("\n"),
  2009. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2010. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_backlight "),
  2011. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2012. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " get_backlight_level"),
  2013. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2014. ]),
  2015. /* @__PURE__ */ createTextVNode("\n"),
  2016. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2017. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2018. ]),
  2019. /* @__PURE__ */ createTextVNode("\n"),
  2020. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2021. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " backlight_set"),
  2022. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2023. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
  2024. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2025. ]),
  2026. /* @__PURE__ */ createTextVNode("\n"),
  2027. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2028. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " rgb_matrix_set_suspend_state"),
  2029. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2030. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
  2031. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2032. ]),
  2033. /* @__PURE__ */ createTextVNode("\n"),
  2034. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2035. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_power"),
  2036. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2037. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "false"),
  2038. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2039. ]),
  2040. /* @__PURE__ */ createTextVNode("\n"),
  2041. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2042. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2043. ]),
  2044. /* @__PURE__ */ createTextVNode("\n"),
  2045. /* @__PURE__ */ createBaseVNode("span", { class: "line" }),
  2046. /* @__PURE__ */ createTextVNode("\n"),
  2047. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2048. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2049. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " suspend_wakeup_init_user"),
  2050. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2051. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2052. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2053. ]),
  2054. /* @__PURE__ */ createTextVNode("\n"),
  2055. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2056. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_power"),
  2057. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2058. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
  2059. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2060. ]),
  2061. /* @__PURE__ */ createTextVNode("\n"),
  2062. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2063. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " rgb_matrix_set_suspend_state"),
  2064. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2065. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "false"),
  2066. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2067. ]),
  2068. /* @__PURE__ */ createTextVNode("\n"),
  2069. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2070. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2071. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (last_backlight "),
  2072. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
  2073. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
  2074. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2075. ]),
  2076. /* @__PURE__ */ createTextVNode("\n"),
  2077. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2078. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " backlight_set"),
  2079. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_backlight);")
  2080. ]),
  2081. /* @__PURE__ */ createTextVNode("\n"),
  2082. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2083. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2084. ]),
  2085. /* @__PURE__ */ createTextVNode("\n"),
  2086. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2087. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_backlight "),
  2088. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2089. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
  2090. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2091. ]),
  2092. /* @__PURE__ */ createTextVNode("\n"),
  2093. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2094. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2095. ])
  2096. ])
  2097. ])
  2098. ], -1);
  2099. const _hoisted_166 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2100. /* @__PURE__ */ createBaseVNode("button", {
  2101. title: "Copy Code",
  2102. class: "copy"
  2103. }),
  2104. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2105. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2106. /* @__PURE__ */ createBaseVNode("code", null, [
  2107. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2108. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2109. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_clear"),
  2110. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2111. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2112. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2113. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2114. ])
  2115. ])
  2116. ])
  2117. ], -1);
  2118. const _hoisted_167 = /* @__PURE__ */ createBaseVNode("p", null, [
  2119. /* @__PURE__ */ createTextVNode("The "),
  2120. /* @__PURE__ */ createBaseVNode("code", null, "qp_clear"),
  2121. /* @__PURE__ */ createTextVNode(" function clears the display's screen.")
  2122. ], -1);
  2123. const _hoisted_168 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2124. /* @__PURE__ */ createBaseVNode("button", {
  2125. title: "Copy Code",
  2126. class: "copy"
  2127. }),
  2128. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2129. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2130. /* @__PURE__ */ createBaseVNode("code", null, [
  2131. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2132. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2133. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2134. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2135. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2136. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2137. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2138. ])
  2139. ])
  2140. ])
  2141. ], -1);
  2142. const _hoisted_169 = /* @__PURE__ */ createBaseVNode("p", null, [
  2143. /* @__PURE__ */ createTextVNode("The "),
  2144. /* @__PURE__ */ createBaseVNode("code", null, "qp_flush"),
  2145. /* @__PURE__ */ createTextVNode(' function ensures that all drawing operations are "pushed" to the display. This should be done as the last operation whenever a sequence of draws occur, and guarantees that any changes are applied.')
  2146. ], -1);
  2147. const _hoisted_170 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  2148. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  2149. /* @__PURE__ */ createBaseVNode("p", null, [
  2150. /* @__PURE__ */ createTextVNode("Some display panels may seem to work even without a call to "),
  2151. /* @__PURE__ */ createBaseVNode("code", null, "qp_flush"),
  2152. /* @__PURE__ */ createTextVNode(" -- this may be because the driver cannot queue drawing operations and needs to display them immediately when invoked. In general, calling "),
  2153. /* @__PURE__ */ createBaseVNode("code", null, "qp_flush"),
  2154. /* @__PURE__ */ createTextVNode(' at the end is still considered "best practice".')
  2155. ])
  2156. ], -1);
  2157. const _hoisted_171 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2158. /* @__PURE__ */ createBaseVNode("button", {
  2159. title: "Copy Code",
  2160. class: "copy"
  2161. }),
  2162. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2163. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2164. /* @__PURE__ */ createBaseVNode("code", null, [
  2165. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2166. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2167. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  2168. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2169. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2170. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2171. ]),
  2172. /* @__PURE__ */ createTextVNode("\n"),
  2173. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2174. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  2175. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
  2176. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2177. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2178. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2179. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2180. ]),
  2181. /* @__PURE__ */ createTextVNode("\n"),
  2182. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2183. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2184. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2185. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
  2186. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
  2187. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
  2188. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
  2189. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
  2190. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
  2191. ]),
  2192. /* @__PURE__ */ createTextVNode("\n"),
  2193. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2194. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2195. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2196. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
  2197. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2198. ]),
  2199. /* @__PURE__ */ createTextVNode("\n"),
  2200. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2201. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw a rect based off the current RGB color")
  2202. ]),
  2203. /* @__PURE__ */ createTextVNode("\n"),
  2204. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2205. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rect"),
  2206. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2207. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
  2208. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2209. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
  2210. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2211. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
  2212. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2213. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "239"),
  2214. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2215. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "rgb_matrix_get_hue"),
  2216. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(), "),
  2217. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2218. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2219. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2220. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2221. ]),
  2222. /* @__PURE__ */ createTextVNode("\n"),
  2223. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2224. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2225. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
  2226. ]),
  2227. /* @__PURE__ */ createTextVNode("\n"),
  2228. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2229. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2230. ]),
  2231. /* @__PURE__ */ createTextVNode("\n"),
  2232. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2233. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2234. ])
  2235. ])
  2236. ])
  2237. ], -1);
  2238. const _hoisted_172 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2239. /* @__PURE__ */ createBaseVNode("button", {
  2240. title: "Copy Code",
  2241. class: "copy"
  2242. }),
  2243. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2244. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2245. /* @__PURE__ */ createBaseVNode("code", null, [
  2246. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2247. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2248. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_setpixel"),
  2249. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2250. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2251. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2252. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2253. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2254. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  2255. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2256. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2257. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  2258. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2259. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2260. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
  2261. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2262. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2263. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
  2264. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2265. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2266. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
  2267. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2268. ])
  2269. ])
  2270. ])
  2271. ], -1);
  2272. const _hoisted_173 = /* @__PURE__ */ createBaseVNode("p", null, [
  2273. /* @__PURE__ */ createTextVNode("The "),
  2274. /* @__PURE__ */ createBaseVNode("code", null, "qp_setpixel"),
  2275. /* @__PURE__ */ createTextVNode(" can be used to set a specific pixel on the screen to the supplied color.")
  2276. ], -1);
  2277. const _hoisted_174 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
  2278. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
  2279. /* @__PURE__ */ createBaseVNode("p", null, [
  2280. /* @__PURE__ */ createTextVNode("Using "),
  2281. /* @__PURE__ */ createBaseVNode("code", null, "qp_setpixel"),
  2282. /* @__PURE__ */ createTextVNode(" for large amounts of drawing operations is inefficient and should be avoided unless they cannot be achieved with other drawing APIs.")
  2283. ])
  2284. ], -1);
  2285. const _hoisted_175 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2286. /* @__PURE__ */ createBaseVNode("button", {
  2287. title: "Copy Code",
  2288. class: "copy"
  2289. }),
  2290. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2291. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2292. /* @__PURE__ */ createBaseVNode("code", null, [
  2293. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2294. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2295. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  2296. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2297. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2298. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2299. ]),
  2300. /* @__PURE__ */ createTextVNode("\n"),
  2301. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2302. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  2303. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
  2304. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2305. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2306. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2307. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2308. ]),
  2309. /* @__PURE__ */ createTextVNode("\n"),
  2310. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2311. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2312. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2313. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
  2314. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
  2315. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
  2316. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
  2317. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
  2318. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
  2319. ]),
  2320. /* @__PURE__ */ createTextVNode("\n"),
  2321. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2322. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2323. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2324. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
  2325. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2326. ]),
  2327. /* @__PURE__ */ createTextVNode("\n"),
  2328. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2329. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw a 240px high vertical rainbow line on X=0:")
  2330. ]),
  2331. /* @__PURE__ */ createTextVNode("\n"),
  2332. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2333. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
  2334. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2335. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  2336. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
  2337. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2338. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2339. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
  2340. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
  2341. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
  2342. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; "),
  2343. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "++"),
  2344. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i) {")
  2345. ]),
  2346. /* @__PURE__ */ createTextVNode("\n"),
  2347. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2348. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_setpixel"),
  2349. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2350. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
  2351. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, i, "),
  2352. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2353. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2354. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2355. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2356. ]),
  2357. /* @__PURE__ */ createTextVNode("\n"),
  2358. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2359. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2360. ]),
  2361. /* @__PURE__ */ createTextVNode("\n"),
  2362. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2363. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2364. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
  2365. ]),
  2366. /* @__PURE__ */ createTextVNode("\n"),
  2367. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2368. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2369. ]),
  2370. /* @__PURE__ */ createTextVNode("\n"),
  2371. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2372. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2373. ])
  2374. ])
  2375. ])
  2376. ], -1);
  2377. const _hoisted_176 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2378. /* @__PURE__ */ createBaseVNode("button", {
  2379. title: "Copy Code",
  2380. class: "copy"
  2381. }),
  2382. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2383. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2384. /* @__PURE__ */ createBaseVNode("code", null, [
  2385. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2386. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2387. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_line"),
  2388. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2389. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2390. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2391. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2392. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2393. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x0"),
  2394. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2395. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2396. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y0"),
  2397. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2398. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2399. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x1"),
  2400. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2401. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2402. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y1"),
  2403. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2404. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2405. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
  2406. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2407. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2408. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
  2409. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2410. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2411. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
  2412. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2413. ])
  2414. ])
  2415. ])
  2416. ], -1);
  2417. const _hoisted_177 = /* @__PURE__ */ createBaseVNode("p", null, [
  2418. /* @__PURE__ */ createTextVNode("The "),
  2419. /* @__PURE__ */ createBaseVNode("code", null, "qp_line"),
  2420. /* @__PURE__ */ createTextVNode(" can be used to draw lines on the screen with the supplied color.")
  2421. ], -1);
  2422. const _hoisted_178 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2423. /* @__PURE__ */ createBaseVNode("button", {
  2424. title: "Copy Code",
  2425. class: "copy"
  2426. }),
  2427. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2428. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2429. /* @__PURE__ */ createBaseVNode("code", null, [
  2430. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2431. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2432. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  2433. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2434. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2435. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2436. ]),
  2437. /* @__PURE__ */ createTextVNode("\n"),
  2438. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2439. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  2440. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
  2441. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2442. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2443. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2444. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2445. ]),
  2446. /* @__PURE__ */ createTextVNode("\n"),
  2447. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2448. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2449. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2450. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
  2451. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
  2452. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
  2453. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
  2454. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
  2455. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
  2456. ]),
  2457. /* @__PURE__ */ createTextVNode("\n"),
  2458. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2459. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2460. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2461. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
  2462. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2463. ]),
  2464. /* @__PURE__ */ createTextVNode("\n"),
  2465. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2466. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw 8px-wide rainbow down the left side of the display")
  2467. ]),
  2468. /* @__PURE__ */ createTextVNode("\n"),
  2469. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2470. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
  2471. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2472. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  2473. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
  2474. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2475. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2476. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
  2477. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
  2478. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
  2479. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; "),
  2480. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "++"),
  2481. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i) {")
  2482. ]),
  2483. /* @__PURE__ */ createTextVNode("\n"),
  2484. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2485. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_line"),
  2486. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2487. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
  2488. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
  2489. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
  2490. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, i, "),
  2491. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2492. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2493. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2494. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2495. ]),
  2496. /* @__PURE__ */ createTextVNode("\n"),
  2497. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2498. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2499. ]),
  2500. /* @__PURE__ */ createTextVNode("\n"),
  2501. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2502. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2503. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
  2504. ]),
  2505. /* @__PURE__ */ createTextVNode("\n"),
  2506. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2507. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2508. ]),
  2509. /* @__PURE__ */ createTextVNode("\n"),
  2510. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2511. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2512. ])
  2513. ])
  2514. ])
  2515. ], -1);
  2516. const _hoisted_179 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2517. /* @__PURE__ */ createBaseVNode("button", {
  2518. title: "Copy Code",
  2519. class: "copy"
  2520. }),
  2521. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2522. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2523. /* @__PURE__ */ createBaseVNode("code", null, [
  2524. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2525. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2526. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rect"),
  2527. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2528. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2529. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2530. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2531. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2532. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " left"),
  2533. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2534. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2535. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " top"),
  2536. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2537. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2538. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " right"),
  2539. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2540. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2541. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " bottom"),
  2542. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2543. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2544. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
  2545. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2546. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2547. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
  2548. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2549. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2550. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
  2551. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2552. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2553. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " filled"),
  2554. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2555. ])
  2556. ])
  2557. ])
  2558. ], -1);
  2559. const _hoisted_180 = /* @__PURE__ */ createBaseVNode("p", null, [
  2560. /* @__PURE__ */ createTextVNode("The "),
  2561. /* @__PURE__ */ createBaseVNode("code", null, "qp_rect"),
  2562. /* @__PURE__ */ createTextVNode(" can be used to draw rectangles on the screen with the supplied color, with or without a background fill. If not filled, any pixels inside the rectangle will be left as-is.")
  2563. ], -1);
  2564. const _hoisted_181 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2565. /* @__PURE__ */ createBaseVNode("button", {
  2566. title: "Copy Code",
  2567. class: "copy"
  2568. }),
  2569. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2570. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2571. /* @__PURE__ */ createBaseVNode("code", null, [
  2572. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2573. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2574. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  2575. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2576. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2577. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2578. ]),
  2579. /* @__PURE__ */ createTextVNode("\n"),
  2580. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2581. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  2582. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
  2583. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2584. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2585. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2586. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2587. ]),
  2588. /* @__PURE__ */ createTextVNode("\n"),
  2589. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2590. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2591. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2592. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
  2593. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
  2594. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
  2595. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
  2596. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
  2597. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
  2598. ]),
  2599. /* @__PURE__ */ createTextVNode("\n"),
  2600. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2601. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2602. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2603. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
  2604. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2605. ]),
  2606. /* @__PURE__ */ createTextVNode("\n"),
  2607. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2608. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw 8px-wide rainbow filled rectangles down the left side of the display")
  2609. ]),
  2610. /* @__PURE__ */ createTextVNode("\n"),
  2611. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2612. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
  2613. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2614. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  2615. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
  2616. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2617. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2618. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
  2619. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
  2620. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
  2621. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i"),
  2622. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+="),
  2623. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
  2624. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2625. ]),
  2626. /* @__PURE__ */ createTextVNode("\n"),
  2627. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2628. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rect"),
  2629. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2630. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
  2631. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
  2632. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
  2633. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i"),
  2634. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+"),
  2635. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
  2636. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
  2637. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2638. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2639. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2640. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2641. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
  2642. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2643. ]),
  2644. /* @__PURE__ */ createTextVNode("\n"),
  2645. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2646. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2647. ]),
  2648. /* @__PURE__ */ createTextVNode("\n"),
  2649. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2650. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2651. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
  2652. ]),
  2653. /* @__PURE__ */ createTextVNode("\n"),
  2654. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2655. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2656. ]),
  2657. /* @__PURE__ */ createTextVNode("\n"),
  2658. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2659. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2660. ])
  2661. ])
  2662. ])
  2663. ], -1);
  2664. const _hoisted_182 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2665. /* @__PURE__ */ createBaseVNode("button", {
  2666. title: "Copy Code",
  2667. class: "copy"
  2668. }),
  2669. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2670. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2671. /* @__PURE__ */ createBaseVNode("code", null, [
  2672. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2673. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2674. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_circle"),
  2675. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2676. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2677. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2678. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2679. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2680. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  2681. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2682. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2683. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  2684. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2685. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2686. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " radius"),
  2687. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2688. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2689. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
  2690. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2691. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2692. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
  2693. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2694. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2695. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
  2696. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2697. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2698. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " filled"),
  2699. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2700. ])
  2701. ])
  2702. ])
  2703. ], -1);
  2704. const _hoisted_183 = /* @__PURE__ */ createBaseVNode("p", null, [
  2705. /* @__PURE__ */ createTextVNode("The "),
  2706. /* @__PURE__ */ createBaseVNode("code", null, "qp_circle"),
  2707. /* @__PURE__ */ createTextVNode(" can be used to draw circles on the screen with the supplied color, with or without a background fill. If not filled, any pixels inside the circle will be left as-is.")
  2708. ], -1);
  2709. const _hoisted_184 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2710. /* @__PURE__ */ createBaseVNode("button", {
  2711. title: "Copy Code",
  2712. class: "copy"
  2713. }),
  2714. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2715. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2716. /* @__PURE__ */ createBaseVNode("code", null, [
  2717. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2718. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2719. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  2720. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2721. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2722. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2723. ]),
  2724. /* @__PURE__ */ createTextVNode("\n"),
  2725. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2726. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  2727. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
  2728. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2729. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2730. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2731. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2732. ]),
  2733. /* @__PURE__ */ createTextVNode("\n"),
  2734. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2735. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2736. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2737. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
  2738. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
  2739. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
  2740. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
  2741. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
  2742. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
  2743. ]),
  2744. /* @__PURE__ */ createTextVNode("\n"),
  2745. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2746. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2747. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2748. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
  2749. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2750. ]),
  2751. /* @__PURE__ */ createTextVNode("\n"),
  2752. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2753. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw r=4 filled circles down the left side of the display")
  2754. ]),
  2755. /* @__PURE__ */ createTextVNode("\n"),
  2756. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2757. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
  2758. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2759. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  2760. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
  2761. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2762. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2763. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
  2764. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
  2765. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
  2766. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i"),
  2767. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+="),
  2768. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
  2769. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2770. ]),
  2771. /* @__PURE__ */ createTextVNode("\n"),
  2772. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2773. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_circle"),
  2774. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2775. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
  2776. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2777. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
  2778. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+"),
  2779. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i, "),
  2780. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
  2781. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
  2782. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2783. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2784. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2785. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2786. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
  2787. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2788. ]),
  2789. /* @__PURE__ */ createTextVNode("\n"),
  2790. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2791. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2792. ]),
  2793. /* @__PURE__ */ createTextVNode("\n"),
  2794. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2795. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2796. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
  2797. ]),
  2798. /* @__PURE__ */ createTextVNode("\n"),
  2799. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2800. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2801. ]),
  2802. /* @__PURE__ */ createTextVNode("\n"),
  2803. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2804. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2805. ])
  2806. ])
  2807. ])
  2808. ], -1);
  2809. const _hoisted_185 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2810. /* @__PURE__ */ createBaseVNode("button", {
  2811. title: "Copy Code",
  2812. class: "copy"
  2813. }),
  2814. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2815. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2816. /* @__PURE__ */ createBaseVNode("code", null, [
  2817. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2818. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2819. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ellipse"),
  2820. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2821. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  2822. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  2823. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2824. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2825. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  2826. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2827. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2828. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  2829. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2830. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2831. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sizex"),
  2832. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2833. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  2834. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sizey"),
  2835. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2836. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2837. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
  2838. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2839. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2840. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
  2841. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2842. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  2843. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
  2844. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2845. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  2846. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " filled"),
  2847. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2848. ])
  2849. ])
  2850. ])
  2851. ], -1);
  2852. const _hoisted_186 = /* @__PURE__ */ createBaseVNode("p", null, [
  2853. /* @__PURE__ */ createTextVNode("The "),
  2854. /* @__PURE__ */ createBaseVNode("code", null, "qp_ellipse"),
  2855. /* @__PURE__ */ createTextVNode(" can be used to draw ellipses on the screen with the supplied color, with or without a background fill. If not filled, any pixels inside the ellipses will be left as-is.")
  2856. ], -1);
  2857. const _hoisted_187 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2858. /* @__PURE__ */ createBaseVNode("button", {
  2859. title: "Copy Code",
  2860. class: "copy"
  2861. }),
  2862. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2863. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2864. /* @__PURE__ */ createBaseVNode("code", null, [
  2865. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2866. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2867. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  2868. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  2869. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  2870. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2871. ]),
  2872. /* @__PURE__ */ createTextVNode("\n"),
  2873. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2874. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  2875. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
  2876. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2877. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2878. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2879. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  2880. ]),
  2881. /* @__PURE__ */ createTextVNode("\n"),
  2882. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2883. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  2884. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2885. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
  2886. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
  2887. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
  2888. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
  2889. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
  2890. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
  2891. ]),
  2892. /* @__PURE__ */ createTextVNode("\n"),
  2893. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2894. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
  2895. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2896. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
  2897. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
  2898. ]),
  2899. /* @__PURE__ */ createTextVNode("\n"),
  2900. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2901. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw 16x8 filled ellipses down the left side of the display")
  2902. ]),
  2903. /* @__PURE__ */ createTextVNode("\n"),
  2904. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2905. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
  2906. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
  2907. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
  2908. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
  2909. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  2910. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
  2911. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
  2912. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
  2913. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
  2914. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i"),
  2915. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+="),
  2916. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
  2917. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  2918. ]),
  2919. /* @__PURE__ */ createTextVNode("\n"),
  2920. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2921. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ellipse"),
  2922. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
  2923. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
  2924. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2925. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
  2926. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+"),
  2927. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i, "),
  2928. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "16"),
  2929. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2930. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
  2931. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
  2932. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2933. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2934. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
  2935. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  2936. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
  2937. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  2938. ]),
  2939. /* @__PURE__ */ createTextVNode("\n"),
  2940. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2941. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2942. ]),
  2943. /* @__PURE__ */ createTextVNode("\n"),
  2944. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2945. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
  2946. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
  2947. ]),
  2948. /* @__PURE__ */ createTextVNode("\n"),
  2949. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2950. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  2951. ]),
  2952. /* @__PURE__ */ createTextVNode("\n"),
  2953. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2954. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  2955. ])
  2956. ])
  2957. ])
  2958. ], -1);
  2959. const _hoisted_188 = /* @__PURE__ */ createBaseVNode("p", null, [
  2960. /* @__PURE__ */ createTextVNode("Making an image available for use requires compiling it into your firmware. To do so, assuming you've created "),
  2961. /* @__PURE__ */ createBaseVNode("code", null, "my_image.qgf.c"),
  2962. /* @__PURE__ */ createTextVNode(" and "),
  2963. /* @__PURE__ */ createBaseVNode("code", null, "my_image.qgf.h"),
  2964. /* @__PURE__ */ createTextVNode(" as per the CLI examples above, you'd add the following to your "),
  2965. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  2966. /* @__PURE__ */ createTextVNode(":")
  2967. ], -1);
  2968. const _hoisted_189 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  2969. /* @__PURE__ */ createBaseVNode("button", {
  2970. title: "Copy Code",
  2971. class: "copy"
  2972. }),
  2973. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  2974. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2975. /* @__PURE__ */ createBaseVNode("code", null, [
  2976. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2977. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "SRC += my_image.qgf.c")
  2978. ])
  2979. ])
  2980. ])
  2981. ], -1);
  2982. const _hoisted_190 = /* @__PURE__ */ createBaseVNode("p", null, [
  2983. /* @__PURE__ */ createTextVNode("...and in your "),
  2984. /* @__PURE__ */ createBaseVNode("code", null, "keymap.c"),
  2985. /* @__PURE__ */ createTextVNode(", you'd add to the top of the file:")
  2986. ], -1);
  2987. const _hoisted_191 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  2988. /* @__PURE__ */ createBaseVNode("button", {
  2989. title: "Copy Code",
  2990. class: "copy"
  2991. }),
  2992. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  2993. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  2994. /* @__PURE__ */ createBaseVNode("code", null, [
  2995. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  2996. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#include"),
  2997. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#032F62", "--shiki-dark": "#9ECBFF" } }, ' "my_image.qgf.h"')
  2998. ])
  2999. ])
  3000. ])
  3001. ], -1);
  3002. const _hoisted_192 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3003. /* @__PURE__ */ createBaseVNode("button", {
  3004. title: "Copy Code",
  3005. class: "copy"
  3006. }),
  3007. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3008. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3009. /* @__PURE__ */ createBaseVNode("code", null, [
  3010. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3011. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
  3012. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_image_mem"),
  3013. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3014. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
  3015. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " void"),
  3016. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3017. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
  3018. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3019. ])
  3020. ])
  3021. ])
  3022. ], -1);
  3023. const _hoisted_193 = /* @__PURE__ */ createBaseVNode("p", null, [
  3024. /* @__PURE__ */ createTextVNode("The "),
  3025. /* @__PURE__ */ createBaseVNode("code", null, "qp_load_image_mem"),
  3026. /* @__PURE__ */ createTextVNode(" function loads a QGF image from memory or flash.")
  3027. ], -1);
  3028. const _hoisted_194 = /* @__PURE__ */ createBaseVNode("p", null, [
  3029. /* @__PURE__ */ createBaseVNode("code", null, "qp_load_image_mem"),
  3030. /* @__PURE__ */ createTextVNode(" returns a handle to the loaded image, which can then be used to draw to the screen using "),
  3031. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage"),
  3032. /* @__PURE__ */ createTextVNode(", "),
  3033. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage_recolor"),
  3034. /* @__PURE__ */ createTextVNode(", "),
  3035. /* @__PURE__ */ createBaseVNode("code", null, "qp_animate"),
  3036. /* @__PURE__ */ createTextVNode(", or "),
  3037. /* @__PURE__ */ createBaseVNode("code", null, "qp_animate_recolor"),
  3038. /* @__PURE__ */ createTextVNode(". If an image is no longer required, it can be unloaded by calling "),
  3039. /* @__PURE__ */ createBaseVNode("code", null, "qp_close_image"),
  3040. /* @__PURE__ */ createTextVNode(" below.")
  3041. ], -1);
  3042. const _hoisted_195 = /* @__PURE__ */ createBaseVNode("p", null, [
  3043. /* @__PURE__ */ createTextVNode("See the "),
  3044. /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter#quantum-painter-cli" }, "CLI Commands"),
  3045. /* @__PURE__ */ createTextVNode(" for instructions on how to convert images to "),
  3046. /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter_qgf" }, "QGF"),
  3047. /* @__PURE__ */ createTextVNode(".")
  3048. ], -1);
  3049. const _hoisted_196 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
  3050. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
  3051. /* @__PURE__ */ createBaseVNode("p", null, [
  3052. /* @__PURE__ */ createTextVNode("The total number of images available to load at any one time is controlled by the configurable option "),
  3053. /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_NUM_IMAGES"),
  3054. /* @__PURE__ */ createTextVNode(" in the table above. If more images are required, the number should be increased in "),
  3055. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  3056. /* @__PURE__ */ createTextVNode(".")
  3057. ])
  3058. ], -1);
  3059. const _hoisted_197 = /* @__PURE__ */ createBaseVNode("p", null, "Image information is available through accessing the handle:", -1);
  3060. const _hoisted_198 = /* @__PURE__ */ createBaseVNode("table", null, [
  3061. /* @__PURE__ */ createBaseVNode("thead", null, [
  3062. /* @__PURE__ */ createBaseVNode("tr", null, [
  3063. /* @__PURE__ */ createBaseVNode("th", null, "Property"),
  3064. /* @__PURE__ */ createBaseVNode("th", null, "Accessor")
  3065. ])
  3066. ]),
  3067. /* @__PURE__ */ createBaseVNode("tbody", null, [
  3068. /* @__PURE__ */ createBaseVNode("tr", null, [
  3069. /* @__PURE__ */ createBaseVNode("td", null, "Width"),
  3070. /* @__PURE__ */ createBaseVNode("td", null, [
  3071. /* @__PURE__ */ createBaseVNode("code", null, "image->width")
  3072. ])
  3073. ]),
  3074. /* @__PURE__ */ createBaseVNode("tr", null, [
  3075. /* @__PURE__ */ createBaseVNode("td", null, "Height"),
  3076. /* @__PURE__ */ createBaseVNode("td", null, [
  3077. /* @__PURE__ */ createBaseVNode("code", null, "image->height")
  3078. ])
  3079. ]),
  3080. /* @__PURE__ */ createBaseVNode("tr", null, [
  3081. /* @__PURE__ */ createBaseVNode("td", null, "Frame Count"),
  3082. /* @__PURE__ */ createBaseVNode("td", null, [
  3083. /* @__PURE__ */ createBaseVNode("code", null, "image->frame_count")
  3084. ])
  3085. ])
  3086. ])
  3087. ], -1);
  3088. const _hoisted_199 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3089. /* @__PURE__ */ createBaseVNode("button", {
  3090. title: "Copy Code",
  3091. class: "copy"
  3092. }),
  3093. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3094. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3095. /* @__PURE__ */ createBaseVNode("code", null, [
  3096. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3097. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  3098. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_close_image"),
  3099. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3100. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
  3101. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
  3102. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3103. ])
  3104. ])
  3105. ])
  3106. ], -1);
  3107. const _hoisted_200 = /* @__PURE__ */ createBaseVNode("p", null, [
  3108. /* @__PURE__ */ createTextVNode("The "),
  3109. /* @__PURE__ */ createBaseVNode("code", null, "qp_close_image"),
  3110. /* @__PURE__ */ createTextVNode(" function releases resources related to the loading of the supplied image.")
  3111. ], -1);
  3112. const _hoisted_201 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3113. /* @__PURE__ */ createBaseVNode("button", {
  3114. title: "Copy Code",
  3115. class: "copy"
  3116. }),
  3117. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3118. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3119. /* @__PURE__ */ createBaseVNode("code", null, [
  3120. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3121. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  3122. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawimage"),
  3123. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3124. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3125. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3126. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3127. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3128. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  3129. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3130. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3131. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  3132. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3133. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
  3134. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
  3135. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3136. ]),
  3137. /* @__PURE__ */ createTextVNode("\n"),
  3138. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3139. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  3140. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawimage_recolor"),
  3141. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3142. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3143. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3144. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3145. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3146. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  3147. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3148. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3149. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  3150. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3151. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
  3152. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
  3153. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3154. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3155. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_fg"),
  3156. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3157. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3158. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_fg"),
  3159. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3160. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3161. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_fg"),
  3162. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3163. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3164. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_bg"),
  3165. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3166. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3167. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_bg"),
  3168. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3169. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3170. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_bg"),
  3171. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3172. ])
  3173. ])
  3174. ])
  3175. ], -1);
  3176. const _hoisted_202 = /* @__PURE__ */ createBaseVNode("p", null, [
  3177. /* @__PURE__ */ createTextVNode("The "),
  3178. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage"),
  3179. /* @__PURE__ */ createTextVNode(" and "),
  3180. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage_recolor"),
  3181. /* @__PURE__ */ createTextVNode(" functions draw the supplied image to the screen at the supplied location, with the latter function allowing for monochrome-based images to be recolored.")
  3182. ], -1);
  3183. const _hoisted_203 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3184. /* @__PURE__ */ createBaseVNode("button", {
  3185. title: "Copy Code",
  3186. class: "copy"
  3187. }),
  3188. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3189. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3190. /* @__PURE__ */ createBaseVNode("code", null, [
  3191. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3192. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Draw an image on the bottom-right of the 240x320 display on initialisation")
  3193. ]),
  3194. /* @__PURE__ */ createTextVNode("\n"),
  3195. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3196. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  3197. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_image_handle_t"),
  3198. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image;")
  3199. ]),
  3200. /* @__PURE__ */ createTextVNode("\n"),
  3201. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3202. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3203. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
  3204. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3205. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3206. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3207. ]),
  3208. /* @__PURE__ */ createTextVNode("\n"),
  3209. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3210. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image "),
  3211. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  3212. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_image_mem"),
  3213. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(gfx_my_image);")
  3214. ]),
  3215. /* @__PURE__ */ createTextVNode("\n"),
  3216. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3217. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  3218. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (my_image "),
  3219. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
  3220. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " NULL"),
  3221. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3222. ]),
  3223. /* @__PURE__ */ createTextVNode("\n"),
  3224. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3225. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawimage"),
  3226. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, ("),
  3227. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
  3228. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
  3229. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->width), ("),
  3230. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "320"),
  3231. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
  3232. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->height), my_image);")
  3233. ]),
  3234. /* @__PURE__ */ createTextVNode("\n"),
  3235. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3236. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  3237. ]),
  3238. /* @__PURE__ */ createTextVNode("\n"),
  3239. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3240. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  3241. ])
  3242. ])
  3243. ])
  3244. ], -1);
  3245. const _hoisted_204 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3246. /* @__PURE__ */ createBaseVNode("button", {
  3247. title: "Copy Code",
  3248. class: "copy"
  3249. }),
  3250. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3251. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3252. /* @__PURE__ */ createBaseVNode("code", null, [
  3253. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3254. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "deferred_token "),
  3255. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "qp_animate"),
  3256. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3257. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3258. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3259. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3260. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3261. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  3262. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3263. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3264. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  3265. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3266. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
  3267. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
  3268. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3269. ]),
  3270. /* @__PURE__ */ createTextVNode("\n"),
  3271. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3272. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "deferred_token "),
  3273. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "qp_animate_recolor"),
  3274. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3275. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3276. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3277. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3278. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3279. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  3280. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3281. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3282. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  3283. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3284. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
  3285. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
  3286. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3287. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3288. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_fg"),
  3289. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3290. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3291. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_fg"),
  3292. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3293. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3294. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_fg"),
  3295. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3296. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3297. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_bg"),
  3298. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3299. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3300. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_bg"),
  3301. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3302. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3303. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_bg"),
  3304. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3305. ])
  3306. ])
  3307. ])
  3308. ], -1);
  3309. const _hoisted_205 = /* @__PURE__ */ createBaseVNode("p", null, [
  3310. /* @__PURE__ */ createTextVNode("The "),
  3311. /* @__PURE__ */ createBaseVNode("code", null, "qp_animate"),
  3312. /* @__PURE__ */ createTextVNode(" and "),
  3313. /* @__PURE__ */ createBaseVNode("code", null, "qp_animate_recolor"),
  3314. /* @__PURE__ */ createTextVNode(" functions draw the supplied image to the screen at the supplied location, with the latter function allowing for monochrome-based animations to be recolored. They also set up internal timing such that each frame is rendered at the correct time as per the animated image.")
  3315. ], -1);
  3316. const _hoisted_206 = /* @__PURE__ */ createBaseVNode("p", null, "Once an image has been set to animate, it will loop indefinitely until stopped, with no user intervention required.", -1);
  3317. const _hoisted_207 = /* @__PURE__ */ createBaseVNode("p", null, [
  3318. /* @__PURE__ */ createTextVNode("Both functions return a "),
  3319. /* @__PURE__ */ createBaseVNode("code", null, "deferred_token"),
  3320. /* @__PURE__ */ createTextVNode(", which can then be used to stop the animation, using "),
  3321. /* @__PURE__ */ createBaseVNode("code", null, "qp_stop_animation"),
  3322. /* @__PURE__ */ createTextVNode(" below.")
  3323. ], -1);
  3324. const _hoisted_208 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3325. /* @__PURE__ */ createBaseVNode("button", {
  3326. title: "Copy Code",
  3327. class: "copy"
  3328. }),
  3329. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3330. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3331. /* @__PURE__ */ createBaseVNode("code", null, [
  3332. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3333. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Animate an image on the bottom-right of the 240x320 display on initialisation")
  3334. ]),
  3335. /* @__PURE__ */ createTextVNode("\n"),
  3336. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3337. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  3338. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_image_handle_t"),
  3339. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image;")
  3340. ]),
  3341. /* @__PURE__ */ createTextVNode("\n"),
  3342. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3343. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  3344. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " deferred_token my_anim;")
  3345. ]),
  3346. /* @__PURE__ */ createTextVNode("\n"),
  3347. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3348. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3349. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
  3350. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3351. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3352. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3353. ]),
  3354. /* @__PURE__ */ createTextVNode("\n"),
  3355. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3356. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image "),
  3357. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  3358. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_image_mem"),
  3359. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(gfx_my_image);")
  3360. ]),
  3361. /* @__PURE__ */ createTextVNode("\n"),
  3362. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3363. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  3364. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (my_image "),
  3365. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
  3366. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " NULL"),
  3367. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3368. ]),
  3369. /* @__PURE__ */ createTextVNode("\n"),
  3370. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3371. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_anim "),
  3372. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  3373. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_animate"),
  3374. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, ("),
  3375. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
  3376. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
  3377. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->width), ("),
  3378. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "320"),
  3379. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
  3380. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->height), my_image);")
  3381. ]),
  3382. /* @__PURE__ */ createTextVNode("\n"),
  3383. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3384. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  3385. ]),
  3386. /* @__PURE__ */ createTextVNode("\n"),
  3387. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3388. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  3389. ])
  3390. ])
  3391. ])
  3392. ], -1);
  3393. const _hoisted_209 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3394. /* @__PURE__ */ createBaseVNode("button", {
  3395. title: "Copy Code",
  3396. class: "copy"
  3397. }),
  3398. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3399. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3400. /* @__PURE__ */ createBaseVNode("code", null, [
  3401. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3402. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3403. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_stop_animation"),
  3404. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(deferred_token "),
  3405. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "anim_token"),
  3406. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3407. ])
  3408. ])
  3409. ])
  3410. ], -1);
  3411. const _hoisted_210 = /* @__PURE__ */ createBaseVNode("p", null, [
  3412. /* @__PURE__ */ createTextVNode("The "),
  3413. /* @__PURE__ */ createBaseVNode("code", null, "qp_stop_animation"),
  3414. /* @__PURE__ */ createTextVNode(" function stops the previously-started animation.")
  3415. ], -1);
  3416. const _hoisted_211 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3417. /* @__PURE__ */ createBaseVNode("button", {
  3418. title: "Copy Code",
  3419. class: "copy"
  3420. }),
  3421. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3422. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3423. /* @__PURE__ */ createBaseVNode("code", null, [
  3424. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3425. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3426. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
  3427. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3428. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3429. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3430. ]),
  3431. /* @__PURE__ */ createTextVNode("\n"),
  3432. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3433. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  3434. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (some_random_stop_reason) {")
  3435. ]),
  3436. /* @__PURE__ */ createTextVNode("\n"),
  3437. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3438. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_stop_animation"),
  3439. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(my_anim);")
  3440. ]),
  3441. /* @__PURE__ */ createTextVNode("\n"),
  3442. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3443. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  3444. ]),
  3445. /* @__PURE__ */ createTextVNode("\n"),
  3446. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3447. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  3448. ])
  3449. ])
  3450. ])
  3451. ], -1);
  3452. const _hoisted_212 = /* @__PURE__ */ createBaseVNode("p", null, [
  3453. /* @__PURE__ */ createTextVNode("Making a font available for use requires compiling it into your firmware. To do so, assuming you've created "),
  3454. /* @__PURE__ */ createBaseVNode("code", null, "my_font.qff.c"),
  3455. /* @__PURE__ */ createTextVNode(" and "),
  3456. /* @__PURE__ */ createBaseVNode("code", null, "my_font.qff.h"),
  3457. /* @__PURE__ */ createTextVNode(" as per the CLI examples above, you'd add the following to your "),
  3458. /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
  3459. /* @__PURE__ */ createTextVNode(":")
  3460. ], -1);
  3461. const _hoisted_213 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
  3462. /* @__PURE__ */ createBaseVNode("button", {
  3463. title: "Copy Code",
  3464. class: "copy"
  3465. }),
  3466. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
  3467. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3468. /* @__PURE__ */ createBaseVNode("code", null, [
  3469. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3470. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "SRC += noto11.qff.c")
  3471. ])
  3472. ])
  3473. ])
  3474. ], -1);
  3475. const _hoisted_214 = /* @__PURE__ */ createBaseVNode("p", null, [
  3476. /* @__PURE__ */ createTextVNode("...and in your "),
  3477. /* @__PURE__ */ createBaseVNode("code", null, "keymap.c"),
  3478. /* @__PURE__ */ createTextVNode(", you'd add to the top of the file:")
  3479. ], -1);
  3480. const _hoisted_215 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3481. /* @__PURE__ */ createBaseVNode("button", {
  3482. title: "Copy Code",
  3483. class: "copy"
  3484. }),
  3485. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3486. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3487. /* @__PURE__ */ createBaseVNode("code", null, [
  3488. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3489. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#include"),
  3490. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#032F62", "--shiki-dark": "#9ECBFF" } }, ' "noto11.qff.h"')
  3491. ])
  3492. ])
  3493. ])
  3494. ], -1);
  3495. const _hoisted_216 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3496. /* @__PURE__ */ createBaseVNode("button", {
  3497. title: "Copy Code",
  3498. class: "copy"
  3499. }),
  3500. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3501. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3502. /* @__PURE__ */ createBaseVNode("code", null, [
  3503. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3504. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
  3505. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_font_mem"),
  3506. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3507. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
  3508. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " void"),
  3509. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3510. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
  3511. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3512. ])
  3513. ])
  3514. ])
  3515. ], -1);
  3516. const _hoisted_217 = /* @__PURE__ */ createBaseVNode("p", null, [
  3517. /* @__PURE__ */ createTextVNode("The "),
  3518. /* @__PURE__ */ createBaseVNode("code", null, "qp_load_font_mem"),
  3519. /* @__PURE__ */ createTextVNode(" function loads a QFF font from memory or flash.")
  3520. ], -1);
  3521. const _hoisted_218 = /* @__PURE__ */ createBaseVNode("p", null, [
  3522. /* @__PURE__ */ createBaseVNode("code", null, "qp_load_font_mem"),
  3523. /* @__PURE__ */ createTextVNode(" returns a handle to the loaded font, which can then be measured using "),
  3524. /* @__PURE__ */ createBaseVNode("code", null, "qp_textwidth"),
  3525. /* @__PURE__ */ createTextVNode(", or drawn to the screen using "),
  3526. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext"),
  3527. /* @__PURE__ */ createTextVNode(", or "),
  3528. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext_recolor"),
  3529. /* @__PURE__ */ createTextVNode(". If a font is no longer required, it can be unloaded by calling "),
  3530. /* @__PURE__ */ createBaseVNode("code", null, "qp_close_font"),
  3531. /* @__PURE__ */ createTextVNode(" below.")
  3532. ], -1);
  3533. const _hoisted_219 = /* @__PURE__ */ createBaseVNode("p", null, [
  3534. /* @__PURE__ */ createTextVNode("See the "),
  3535. /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter#quantum-painter-cli" }, "CLI Commands"),
  3536. /* @__PURE__ */ createTextVNode(" for instructions on how to convert TTF fonts to "),
  3537. /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter_qff" }, "QFF"),
  3538. /* @__PURE__ */ createTextVNode(".")
  3539. ], -1);
  3540. const _hoisted_220 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
  3541. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
  3542. /* @__PURE__ */ createBaseVNode("p", null, [
  3543. /* @__PURE__ */ createTextVNode("The total number of fonts available to load at any one time is controlled by the configurable option "),
  3544. /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_NUM_FONTS"),
  3545. /* @__PURE__ */ createTextVNode(" in the table above. If more fonts are required, the number should be increased in "),
  3546. /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
  3547. /* @__PURE__ */ createTextVNode(".")
  3548. ])
  3549. ], -1);
  3550. const _hoisted_221 = /* @__PURE__ */ createBaseVNode("p", null, "Font information is available through accessing the handle:", -1);
  3551. const _hoisted_222 = /* @__PURE__ */ createBaseVNode("table", null, [
  3552. /* @__PURE__ */ createBaseVNode("thead", null, [
  3553. /* @__PURE__ */ createBaseVNode("tr", null, [
  3554. /* @__PURE__ */ createBaseVNode("th", null, "Property"),
  3555. /* @__PURE__ */ createBaseVNode("th", null, "Accessor")
  3556. ])
  3557. ]),
  3558. /* @__PURE__ */ createBaseVNode("tbody", null, [
  3559. /* @__PURE__ */ createBaseVNode("tr", null, [
  3560. /* @__PURE__ */ createBaseVNode("td", null, "Line Height"),
  3561. /* @__PURE__ */ createBaseVNode("td", null, [
  3562. /* @__PURE__ */ createBaseVNode("code", null, "image->line_height")
  3563. ])
  3564. ])
  3565. ])
  3566. ], -1);
  3567. const _hoisted_223 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3568. /* @__PURE__ */ createBaseVNode("button", {
  3569. title: "Copy Code",
  3570. class: "copy"
  3571. }),
  3572. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3573. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3574. /* @__PURE__ */ createBaseVNode("code", null, [
  3575. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3576. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  3577. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_close_font"),
  3578. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3579. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
  3580. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
  3581. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3582. ])
  3583. ])
  3584. ])
  3585. ], -1);
  3586. const _hoisted_224 = /* @__PURE__ */ createBaseVNode("p", null, [
  3587. /* @__PURE__ */ createTextVNode("The "),
  3588. /* @__PURE__ */ createBaseVNode("code", null, "qp_close_font"),
  3589. /* @__PURE__ */ createTextVNode(" function releases resources related to the loading of the supplied font.")
  3590. ], -1);
  3591. const _hoisted_225 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3592. /* @__PURE__ */ createBaseVNode("button", {
  3593. title: "Copy Code",
  3594. class: "copy"
  3595. }),
  3596. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3597. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3598. /* @__PURE__ */ createBaseVNode("code", null, [
  3599. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3600. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int16_t"),
  3601. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_textwidth"),
  3602. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3603. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
  3604. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
  3605. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3606. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
  3607. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
  3608. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3609. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "str"),
  3610. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3611. ])
  3612. ])
  3613. ])
  3614. ], -1);
  3615. const _hoisted_226 = /* @__PURE__ */ createBaseVNode("p", null, [
  3616. /* @__PURE__ */ createTextVNode("The "),
  3617. /* @__PURE__ */ createBaseVNode("code", null, "qp_textwidth"),
  3618. /* @__PURE__ */ createTextVNode(" function allows measurement of how many pixels wide the supplied string would result in, for the given font.")
  3619. ], -1);
  3620. const _hoisted_227 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3621. /* @__PURE__ */ createBaseVNode("button", {
  3622. title: "Copy Code",
  3623. class: "copy"
  3624. }),
  3625. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3626. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3627. /* @__PURE__ */ createBaseVNode("code", null, [
  3628. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3629. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int16_t"),
  3630. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawtext"),
  3631. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3632. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3633. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3634. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3635. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3636. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  3637. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3638. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3639. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  3640. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3641. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
  3642. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
  3643. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3644. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
  3645. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
  3646. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3647. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "str"),
  3648. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3649. ]),
  3650. /* @__PURE__ */ createTextVNode("\n"),
  3651. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3652. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int16_t"),
  3653. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawtext_recolor"),
  3654. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3655. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3656. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3657. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3658. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3659. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
  3660. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3661. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3662. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
  3663. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3664. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
  3665. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
  3666. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3667. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
  3668. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
  3669. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3670. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "str"),
  3671. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3672. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3673. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_fg"),
  3674. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3675. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3676. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_fg"),
  3677. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3678. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3679. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_fg"),
  3680. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3681. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3682. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_bg"),
  3683. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3684. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3685. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_bg"),
  3686. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3687. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
  3688. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_bg"),
  3689. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3690. ])
  3691. ])
  3692. ])
  3693. ], -1);
  3694. const _hoisted_228 = /* @__PURE__ */ createBaseVNode("p", null, [
  3695. /* @__PURE__ */ createTextVNode("The "),
  3696. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext"),
  3697. /* @__PURE__ */ createTextVNode(" and "),
  3698. /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext_recolor"),
  3699. /* @__PURE__ */ createTextVNode(" functions draw the supplied string to the screen at the given location using the font supplied, with the latter function allowing for monochrome-based fonts to be recolored.")
  3700. ], -1);
  3701. const _hoisted_229 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3702. /* @__PURE__ */ createBaseVNode("button", {
  3703. title: "Copy Code",
  3704. class: "copy"
  3705. }),
  3706. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3707. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3708. /* @__PURE__ */ createBaseVNode("code", null, [
  3709. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3710. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Draw a text message on the bottom-right of the 240x320 display on initialisation")
  3711. ]),
  3712. /* @__PURE__ */ createTextVNode("\n"),
  3713. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3714. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
  3715. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_font_handle_t"),
  3716. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_font;")
  3717. ]),
  3718. /* @__PURE__ */ createTextVNode("\n"),
  3719. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3720. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3721. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
  3722. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3723. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3724. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3725. ]),
  3726. /* @__PURE__ */ createTextVNode("\n"),
  3727. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3728. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_font "),
  3729. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  3730. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_font_mem"),
  3731. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(font_noto11);")
  3732. ]),
  3733. /* @__PURE__ */ createTextVNode("\n"),
  3734. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3735. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
  3736. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (my_font "),
  3737. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
  3738. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " NULL"),
  3739. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
  3740. ]),
  3741. /* @__PURE__ */ createTextVNode("\n"),
  3742. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3743. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
  3744. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " const"),
  3745. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
  3746. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3747. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "text "),
  3748. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  3749. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#032F62", "--shiki-dark": "#9ECBFF" } }, ' "Hello from QMK!"'),
  3750. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
  3751. ]),
  3752. /* @__PURE__ */ createTextVNode("\n"),
  3753. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3754. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " int16_t"),
  3755. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " width "),
  3756. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
  3757. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_textwidth"),
  3758. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(my_font, text);")
  3759. ]),
  3760. /* @__PURE__ */ createTextVNode("\n"),
  3761. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3762. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawtext"),
  3763. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, ("),
  3764. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
  3765. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
  3766. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " width), ("),
  3767. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "320"),
  3768. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
  3769. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_font->line_height), my_font, text);")
  3770. ]),
  3771. /* @__PURE__ */ createTextVNode("\n"),
  3772. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3773. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
  3774. ]),
  3775. /* @__PURE__ */ createTextVNode("\n"),
  3776. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3777. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
  3778. ])
  3779. ])
  3780. ])
  3781. ], -1);
  3782. const _hoisted_230 = /* @__PURE__ */ createBaseVNode("p", null, "These functions allow external code to retrieve the current width, height, rotation, and drawing offsets.", -1);
  3783. const _hoisted_231 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3784. /* @__PURE__ */ createBaseVNode("button", {
  3785. title: "Copy Code",
  3786. class: "copy"
  3787. }),
  3788. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3789. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3790. /* @__PURE__ */ createBaseVNode("code", null, [
  3791. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3792. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3793. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_width"),
  3794. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3795. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3796. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3797. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3798. ])
  3799. ])
  3800. ])
  3801. ], -1);
  3802. const _hoisted_232 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3803. /* @__PURE__ */ createBaseVNode("button", {
  3804. title: "Copy Code",
  3805. class: "copy"
  3806. }),
  3807. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3808. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3809. /* @__PURE__ */ createBaseVNode("code", null, [
  3810. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3811. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3812. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_height"),
  3813. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3814. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3815. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3816. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3817. ])
  3818. ])
  3819. ])
  3820. ], -1);
  3821. const _hoisted_233 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3822. /* @__PURE__ */ createBaseVNode("button", {
  3823. title: "Copy Code",
  3824. class: "copy"
  3825. }),
  3826. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3827. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3828. /* @__PURE__ */ createBaseVNode("code", null, [
  3829. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3830. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_rotation_t"),
  3831. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_rotation"),
  3832. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3833. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3834. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3835. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3836. ])
  3837. ])
  3838. ])
  3839. ], -1);
  3840. const _hoisted_234 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3841. /* @__PURE__ */ createBaseVNode("button", {
  3842. title: "Copy Code",
  3843. class: "copy"
  3844. }),
  3845. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3846. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3847. /* @__PURE__ */ createBaseVNode("code", null, [
  3848. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3849. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3850. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_offset_x"),
  3851. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3852. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3853. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3854. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3855. ])
  3856. ])
  3857. ])
  3858. ], -1);
  3859. const _hoisted_235 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3860. /* @__PURE__ */ createBaseVNode("button", {
  3861. title: "Copy Code",
  3862. class: "copy"
  3863. }),
  3864. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3865. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3866. /* @__PURE__ */ createBaseVNode("code", null, [
  3867. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3868. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3869. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_offset_y"),
  3870. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3871. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3872. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3873. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3874. ])
  3875. ])
  3876. ])
  3877. ], -1);
  3878. const _hoisted_236 = /* @__PURE__ */ createBaseVNode("p", null, [
  3879. /* @__PURE__ */ createTextVNode("Convenience function to call all the previous ones at once. Note: You can pass "),
  3880. /* @__PURE__ */ createBaseVNode("code", null, "NULL"),
  3881. /* @__PURE__ */ createTextVNode(" for the values you are not interested in.")
  3882. ], -1);
  3883. const _hoisted_237 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3884. /* @__PURE__ */ createBaseVNode("button", {
  3885. title: "Copy Code",
  3886. class: "copy"
  3887. }),
  3888. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3889. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3890. /* @__PURE__ */ createBaseVNode("code", null, [
  3891. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3892. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3893. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_geometry"),
  3894. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3895. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3896. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3897. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3898. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3899. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3900. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "width"),
  3901. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3902. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3903. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3904. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "height"),
  3905. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3906. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_rotation_t"),
  3907. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3908. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "rotation"),
  3909. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3910. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3911. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3912. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "offset_x"),
  3913. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3914. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3915. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  3916. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "offset_y"),
  3917. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3918. ])
  3919. ])
  3920. ])
  3921. ], -1);
  3922. const _hoisted_238 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3923. /* @__PURE__ */ createBaseVNode("button", {
  3924. title: "Copy Code",
  3925. class: "copy"
  3926. }),
  3927. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3928. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3929. /* @__PURE__ */ createBaseVNode("code", null, [
  3930. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3931. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
  3932. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_set_viewport_offsets"),
  3933. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3934. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3935. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3936. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3937. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3938. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " offset_x"),
  3939. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3940. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3941. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " offset_y"),
  3942. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3943. ])
  3944. ])
  3945. ])
  3946. ], -1);
  3947. const _hoisted_239 = /* @__PURE__ */ createBaseVNode("p", null, [
  3948. /* @__PURE__ */ createTextVNode("The "),
  3949. /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets"),
  3950. /* @__PURE__ */ createTextVNode(" function can be used to offset all subsequent drawing operations. For example, if a display controller is internally 240x320, but the display panel is 240x240 and has a Y offset of 80 pixels, you could invoke "),
  3951. /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets(display, 0, 80);"),
  3952. /* @__PURE__ */ createTextVNode(" and the drawing positioning would be corrected.")
  3953. ], -1);
  3954. const _hoisted_240 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3955. /* @__PURE__ */ createBaseVNode("button", {
  3956. title: "Copy Code",
  3957. class: "copy"
  3958. }),
  3959. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3960. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3961. /* @__PURE__ */ createBaseVNode("code", null, [
  3962. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3963. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  3964. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_viewport"),
  3965. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  3966. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  3967. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  3968. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3969. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3970. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " left"),
  3971. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3972. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3973. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " top"),
  3974. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3975. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3976. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " right"),
  3977. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  3978. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
  3979. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " bottom"),
  3980. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  3981. ])
  3982. ])
  3983. ])
  3984. ], -1);
  3985. const _hoisted_241 = /* @__PURE__ */ createBaseVNode("p", null, [
  3986. /* @__PURE__ */ createTextVNode("The "),
  3987. /* @__PURE__ */ createBaseVNode("code", null, "qp_viewport"),
  3988. /* @__PURE__ */ createTextVNode(" function controls where raw pixel data is written to.")
  3989. ], -1);
  3990. const _hoisted_242 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
  3991. /* @__PURE__ */ createBaseVNode("button", {
  3992. title: "Copy Code",
  3993. class: "copy"
  3994. }),
  3995. /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
  3996. /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
  3997. /* @__PURE__ */ createBaseVNode("code", null, [
  3998. /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
  3999. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
  4000. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_pixdata"),
  4001. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
  4002. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
  4003. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
  4004. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  4005. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
  4006. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " void"),
  4007. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
  4008. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "pixel_data"),
  4009. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
  4010. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint32_t"),
  4011. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " native_pixel_count"),
  4012. /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
  4013. ])
  4014. ])
  4015. ])
  4016. ], -1);
  4017. const _hoisted_243 = /* @__PURE__ */ createBaseVNode("p", null, [
  4018. /* @__PURE__ */ createTextVNode("The "),
  4019. /* @__PURE__ */ createBaseVNode("code", null, "qp_pixdata"),
  4020. /* @__PURE__ */ createTextVNode(" function allows raw pixel data to be streamed to the display. It requires a native pixel count rather than the number of bytes to transfer, to ensure display panel data alignment is respected. E.g. for display panels using RGB565 internal format, sending 10 pixels will result in 20 bytes of transfer.")
  4021. ], -1);
  4022. const _hoisted_244 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
  4023. /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
  4024. /* @__PURE__ */ createBaseVNode("p", null, [
  4025. /* @__PURE__ */ createTextVNode("Under normal circumstances, users will not need to manually call either "),
  4026. /* @__PURE__ */ createBaseVNode("code", null, "qp_viewport"),
  4027. /* @__PURE__ */ createTextVNode(" or "),
  4028. /* @__PURE__ */ createBaseVNode("code", null, "qp_pixdata"),
  4029. /* @__PURE__ */ createTextVNode(". These allow for writing of raw pixel information, in the display panel's native format, to the area defined by the viewport.")
  4030. ])
  4031. ], -1);
  4032. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  4033. const _component_PluginTabsTab = resolveComponent("PluginTabsTab");
  4034. const _component_PluginTabs = resolveComponent("PluginTabs");
  4035. return openBlock(), createElementBlock("div", null, [
  4036. _hoisted_1,
  4037. createVNode(_component_PluginTabs, null, {
  4038. default: withCtx(() => [
  4039. createVNode(_component_PluginTabsTab, { label: "`qmk painter-convert-graphics`" }, {
  4040. default: withCtx(() => [
  4041. _hoisted_15,
  4042. _hoisted_16,
  4043. _hoisted_17,
  4044. _hoisted_18,
  4045. _hoisted_19,
  4046. _hoisted_20,
  4047. _hoisted_21,
  4048. _hoisted_22,
  4049. _hoisted_23
  4050. ]),
  4051. _: 1
  4052. }),
  4053. createVNode(_component_PluginTabsTab, { label: "`qmk painter-make-font-image`" }, {
  4054. default: withCtx(() => [
  4055. _hoisted_24,
  4056. _hoisted_25,
  4057. _hoisted_26,
  4058. _hoisted_27,
  4059. _hoisted_28,
  4060. _hoisted_29,
  4061. _hoisted_30,
  4062. _hoisted_31
  4063. ]),
  4064. _: 1
  4065. }),
  4066. createVNode(_component_PluginTabsTab, { label: "`qmk painter-convert-font-image`" }, {
  4067. default: withCtx(() => [
  4068. _hoisted_32,
  4069. _hoisted_33,
  4070. _hoisted_34,
  4071. _hoisted_35,
  4072. _hoisted_36,
  4073. _hoisted_37,
  4074. _hoisted_38,
  4075. _hoisted_39
  4076. ]),
  4077. _: 1
  4078. })
  4079. ]),
  4080. _: 1
  4081. }),
  4082. _hoisted_40,
  4083. createVNode(_component_PluginTabs, null, {
  4084. default: withCtx(() => [
  4085. createVNode(_component_PluginTabsTab, { label: "LCD" }, {
  4086. default: withCtx(() => [
  4087. _hoisted_41,
  4088. _hoisted_42,
  4089. _hoisted_43,
  4090. createVNode(_component_PluginTabs, null, {
  4091. default: withCtx(() => [
  4092. createVNode(_component_PluginTabsTab, { label: "GC9A01" }, {
  4093. default: withCtx(() => [
  4094. _hoisted_44,
  4095. _hoisted_45,
  4096. _hoisted_46,
  4097. _hoisted_47,
  4098. _hoisted_48,
  4099. _hoisted_49,
  4100. _hoisted_50,
  4101. _hoisted_51
  4102. ]),
  4103. _: 1
  4104. }),
  4105. createVNode(_component_PluginTabsTab, { label: "ILI9163" }, {
  4106. default: withCtx(() => [
  4107. _hoisted_52,
  4108. _hoisted_53,
  4109. _hoisted_54,
  4110. _hoisted_55,
  4111. _hoisted_56,
  4112. _hoisted_57,
  4113. _hoisted_58,
  4114. _hoisted_59
  4115. ]),
  4116. _: 1
  4117. }),
  4118. createVNode(_component_PluginTabsTab, { label: "ILI9341" }, {
  4119. default: withCtx(() => [
  4120. _hoisted_60,
  4121. _hoisted_61,
  4122. _hoisted_62,
  4123. _hoisted_63,
  4124. _hoisted_64,
  4125. _hoisted_65,
  4126. _hoisted_66,
  4127. _hoisted_67
  4128. ]),
  4129. _: 1
  4130. }),
  4131. createVNode(_component_PluginTabsTab, { label: "ILI9486" }, {
  4132. default: withCtx(() => [
  4133. _hoisted_68,
  4134. _hoisted_69,
  4135. _hoisted_70,
  4136. _hoisted_71,
  4137. _hoisted_72,
  4138. _hoisted_73,
  4139. _hoisted_74,
  4140. _hoisted_75,
  4141. _hoisted_76,
  4142. _hoisted_77
  4143. ]),
  4144. _: 1
  4145. }),
  4146. createVNode(_component_PluginTabsTab, { label: "ILI9488" }, {
  4147. default: withCtx(() => [
  4148. _hoisted_78,
  4149. _hoisted_79,
  4150. _hoisted_80,
  4151. _hoisted_81,
  4152. _hoisted_82,
  4153. _hoisted_83,
  4154. _hoisted_84,
  4155. _hoisted_85
  4156. ]),
  4157. _: 1
  4158. }),
  4159. createVNode(_component_PluginTabsTab, { label: "ST7735" }, {
  4160. default: withCtx(() => [
  4161. _hoisted_86,
  4162. _hoisted_87,
  4163. _hoisted_88,
  4164. _hoisted_89,
  4165. _hoisted_90,
  4166. _hoisted_91,
  4167. _hoisted_92,
  4168. _hoisted_93,
  4169. _hoisted_94
  4170. ]),
  4171. _: 1
  4172. }),
  4173. createVNode(_component_PluginTabsTab, { label: "ST7789" }, {
  4174. default: withCtx(() => [
  4175. _hoisted_95,
  4176. _hoisted_96,
  4177. _hoisted_97,
  4178. _hoisted_98,
  4179. _hoisted_99,
  4180. _hoisted_100,
  4181. _hoisted_101,
  4182. _hoisted_102,
  4183. _hoisted_103
  4184. ]),
  4185. _: 1
  4186. })
  4187. ]),
  4188. _: 1
  4189. })
  4190. ]),
  4191. _: 1
  4192. }),
  4193. createVNode(_component_PluginTabsTab, { label: "OLED" }, {
  4194. default: withCtx(() => [
  4195. _hoisted_104,
  4196. _hoisted_105,
  4197. _hoisted_106,
  4198. createVNode(_component_PluginTabs, null, {
  4199. default: withCtx(() => [
  4200. createVNode(_component_PluginTabsTab, { label: "SSD1351" }, {
  4201. default: withCtx(() => [
  4202. _hoisted_107,
  4203. _hoisted_108,
  4204. _hoisted_109,
  4205. _hoisted_110,
  4206. _hoisted_111,
  4207. _hoisted_112,
  4208. _hoisted_113,
  4209. _hoisted_114
  4210. ]),
  4211. _: 1
  4212. }),
  4213. createVNode(_component_PluginTabsTab, { label: "SH1106" }, {
  4214. default: withCtx(() => [
  4215. _hoisted_115,
  4216. _hoisted_116,
  4217. _hoisted_117,
  4218. _hoisted_118,
  4219. _hoisted_119,
  4220. _hoisted_120,
  4221. _hoisted_121,
  4222. _hoisted_122
  4223. ]),
  4224. _: 1
  4225. }),
  4226. createVNode(_component_PluginTabsTab, { label: "SSD1306" }, {
  4227. default: withCtx(() => [
  4228. _hoisted_123
  4229. ]),
  4230. _: 1
  4231. }),
  4232. createVNode(_component_PluginTabsTab, { label: "LD7032" }, {
  4233. default: withCtx(() => [
  4234. _hoisted_124,
  4235. _hoisted_125,
  4236. _hoisted_126,
  4237. _hoisted_127,
  4238. _hoisted_128,
  4239. _hoisted_129,
  4240. _hoisted_130,
  4241. _hoisted_131
  4242. ]),
  4243. _: 1
  4244. })
  4245. ]),
  4246. _: 1
  4247. })
  4248. ]),
  4249. _: 1
  4250. }),
  4251. createVNode(_component_PluginTabsTab, { label: "Surface" }, {
  4252. default: withCtx(() => [
  4253. _hoisted_132,
  4254. _hoisted_133,
  4255. _hoisted_134,
  4256. _hoisted_135,
  4257. _hoisted_136,
  4258. _hoisted_137,
  4259. _hoisted_138,
  4260. _hoisted_139,
  4261. _hoisted_140,
  4262. _hoisted_141,
  4263. _hoisted_142,
  4264. _hoisted_143,
  4265. _hoisted_144,
  4266. _hoisted_145,
  4267. _hoisted_146,
  4268. _hoisted_147,
  4269. _hoisted_148,
  4270. _hoisted_149
  4271. ]),
  4272. _: 1
  4273. })
  4274. ]),
  4275. _: 1
  4276. }),
  4277. _hoisted_150,
  4278. createVNode(_component_PluginTabs, null, {
  4279. default: withCtx(() => [
  4280. createVNode(_component_PluginTabsTab, { label: "General Notes" }, {
  4281. default: withCtx(() => [
  4282. _hoisted_154,
  4283. _hoisted_155,
  4284. _hoisted_156,
  4285. _hoisted_157,
  4286. _hoisted_158
  4287. ]),
  4288. _: 1
  4289. }),
  4290. createVNode(_component_PluginTabsTab, { label: "Device Control" }, {
  4291. default: withCtx(() => [
  4292. createVNode(_component_PluginTabs, null, {
  4293. default: withCtx(() => [
  4294. createVNode(_component_PluginTabsTab, { label: "Display Initialisation" }, {
  4295. default: withCtx(() => [
  4296. _hoisted_159,
  4297. _hoisted_160,
  4298. _hoisted_161
  4299. ]),
  4300. _: 1
  4301. }),
  4302. createVNode(_component_PluginTabsTab, { label: "Display Power" }, {
  4303. default: withCtx(() => [
  4304. _hoisted_162,
  4305. _hoisted_163,
  4306. _hoisted_164,
  4307. _hoisted_165
  4308. ]),
  4309. _: 1
  4310. }),
  4311. createVNode(_component_PluginTabsTab, { label: "Display Clear" }, {
  4312. default: withCtx(() => [
  4313. _hoisted_166,
  4314. _hoisted_167
  4315. ]),
  4316. _: 1
  4317. }),
  4318. createVNode(_component_PluginTabsTab, { label: "Display Flush" }, {
  4319. default: withCtx(() => [
  4320. _hoisted_168,
  4321. _hoisted_169,
  4322. _hoisted_170,
  4323. _hoisted_171
  4324. ]),
  4325. _: 1
  4326. })
  4327. ]),
  4328. _: 1
  4329. })
  4330. ]),
  4331. _: 1
  4332. }),
  4333. createVNode(_component_PluginTabsTab, { label: "Drawing Primitives" }, {
  4334. default: withCtx(() => [
  4335. createVNode(_component_PluginTabs, null, {
  4336. default: withCtx(() => [
  4337. createVNode(_component_PluginTabsTab, { label: "Set Pixel" }, {
  4338. default: withCtx(() => [
  4339. _hoisted_172,
  4340. _hoisted_173,
  4341. _hoisted_174,
  4342. _hoisted_175
  4343. ]),
  4344. _: 1
  4345. }),
  4346. createVNode(_component_PluginTabsTab, { label: "Draw Line" }, {
  4347. default: withCtx(() => [
  4348. _hoisted_176,
  4349. _hoisted_177,
  4350. _hoisted_178
  4351. ]),
  4352. _: 1
  4353. }),
  4354. createVNode(_component_PluginTabsTab, { label: "Draw Rect" }, {
  4355. default: withCtx(() => [
  4356. _hoisted_179,
  4357. _hoisted_180,
  4358. _hoisted_181
  4359. ]),
  4360. _: 1
  4361. }),
  4362. createVNode(_component_PluginTabsTab, { label: "Draw Circle" }, {
  4363. default: withCtx(() => [
  4364. _hoisted_182,
  4365. _hoisted_183,
  4366. _hoisted_184
  4367. ]),
  4368. _: 1
  4369. }),
  4370. createVNode(_component_PluginTabsTab, { label: "Draw Ellipse" }, {
  4371. default: withCtx(() => [
  4372. _hoisted_185,
  4373. _hoisted_186,
  4374. _hoisted_187
  4375. ]),
  4376. _: 1
  4377. })
  4378. ]),
  4379. _: 1
  4380. })
  4381. ]),
  4382. _: 1
  4383. }),
  4384. createVNode(_component_PluginTabsTab, { label: "Image Functions" }, {
  4385. default: withCtx(() => [
  4386. _hoisted_188,
  4387. _hoisted_189,
  4388. _hoisted_190,
  4389. _hoisted_191,
  4390. createVNode(_component_PluginTabs, null, {
  4391. default: withCtx(() => [
  4392. createVNode(_component_PluginTabsTab, { label: "Load Image" }, {
  4393. default: withCtx(() => [
  4394. _hoisted_192,
  4395. _hoisted_193,
  4396. _hoisted_194,
  4397. _hoisted_195,
  4398. _hoisted_196,
  4399. _hoisted_197,
  4400. _hoisted_198
  4401. ]),
  4402. _: 1
  4403. }),
  4404. createVNode(_component_PluginTabsTab, { label: "Unload Image" }, {
  4405. default: withCtx(() => [
  4406. _hoisted_199,
  4407. _hoisted_200
  4408. ]),
  4409. _: 1
  4410. }),
  4411. createVNode(_component_PluginTabsTab, { label: "Draw image" }, {
  4412. default: withCtx(() => [
  4413. _hoisted_201,
  4414. _hoisted_202,
  4415. _hoisted_203
  4416. ]),
  4417. _: 1
  4418. }),
  4419. createVNode(_component_PluginTabsTab, { label: "Animate Image" }, {
  4420. default: withCtx(() => [
  4421. _hoisted_204,
  4422. _hoisted_205,
  4423. _hoisted_206,
  4424. _hoisted_207,
  4425. _hoisted_208
  4426. ]),
  4427. _: 1
  4428. }),
  4429. createVNode(_component_PluginTabsTab, { label: "Stop Animation" }, {
  4430. default: withCtx(() => [
  4431. _hoisted_209,
  4432. _hoisted_210,
  4433. _hoisted_211
  4434. ]),
  4435. _: 1
  4436. })
  4437. ]),
  4438. _: 1
  4439. })
  4440. ]),
  4441. _: 1
  4442. }),
  4443. createVNode(_component_PluginTabsTab, { label: "Font Functions" }, {
  4444. default: withCtx(() => [
  4445. _hoisted_212,
  4446. _hoisted_213,
  4447. _hoisted_214,
  4448. _hoisted_215,
  4449. createVNode(_component_PluginTabs, null, {
  4450. default: withCtx(() => [
  4451. createVNode(_component_PluginTabsTab, { label: "Load Font" }, {
  4452. default: withCtx(() => [
  4453. _hoisted_216,
  4454. _hoisted_217,
  4455. _hoisted_218,
  4456. _hoisted_219,
  4457. _hoisted_220,
  4458. _hoisted_221,
  4459. _hoisted_222
  4460. ]),
  4461. _: 1
  4462. }),
  4463. createVNode(_component_PluginTabsTab, { label: "Unload Font" }, {
  4464. default: withCtx(() => [
  4465. _hoisted_223,
  4466. _hoisted_224
  4467. ]),
  4468. _: 1
  4469. }),
  4470. createVNode(_component_PluginTabsTab, { label: "Measure Text" }, {
  4471. default: withCtx(() => [
  4472. _hoisted_225,
  4473. _hoisted_226
  4474. ]),
  4475. _: 1
  4476. }),
  4477. createVNode(_component_PluginTabsTab, { label: "Draw Text" }, {
  4478. default: withCtx(() => [
  4479. _hoisted_227,
  4480. _hoisted_228,
  4481. _hoisted_229
  4482. ]),
  4483. _: 1
  4484. })
  4485. ]),
  4486. _: 1
  4487. })
  4488. ]),
  4489. _: 1
  4490. }),
  4491. createVNode(_component_PluginTabsTab, { label: "Advanced Functions" }, {
  4492. default: withCtx(() => [
  4493. createVNode(_component_PluginTabs, null, {
  4494. default: withCtx(() => [
  4495. createVNode(_component_PluginTabsTab, { label: "Getters" }, {
  4496. default: withCtx(() => [
  4497. _hoisted_230,
  4498. createVNode(_component_PluginTabs, null, {
  4499. default: withCtx(() => [
  4500. createVNode(_component_PluginTabsTab, { label: "Width" }, {
  4501. default: withCtx(() => [
  4502. _hoisted_231
  4503. ]),
  4504. _: 1
  4505. }),
  4506. createVNode(_component_PluginTabsTab, { label: "Height" }, {
  4507. default: withCtx(() => [
  4508. _hoisted_232
  4509. ]),
  4510. _: 1
  4511. }),
  4512. createVNode(_component_PluginTabsTab, { label: "Rotation" }, {
  4513. default: withCtx(() => [
  4514. _hoisted_233
  4515. ]),
  4516. _: 1
  4517. }),
  4518. createVNode(_component_PluginTabsTab, { label: "Offset X" }, {
  4519. default: withCtx(() => [
  4520. _hoisted_234
  4521. ]),
  4522. _: 1
  4523. }),
  4524. createVNode(_component_PluginTabsTab, { label: "Offset Y" }, {
  4525. default: withCtx(() => [
  4526. _hoisted_235
  4527. ]),
  4528. _: 1
  4529. }),
  4530. createVNode(_component_PluginTabsTab, { label: "Everything" }, {
  4531. default: withCtx(() => [
  4532. _hoisted_236,
  4533. _hoisted_237
  4534. ]),
  4535. _: 1
  4536. })
  4537. ]),
  4538. _: 1
  4539. })
  4540. ]),
  4541. _: 1
  4542. }),
  4543. createVNode(_component_PluginTabsTab, { label: "Set Viewport Offsets" }, {
  4544. default: withCtx(() => [
  4545. _hoisted_238,
  4546. _hoisted_239
  4547. ]),
  4548. _: 1
  4549. }),
  4550. createVNode(_component_PluginTabsTab, { label: "Set Viewport" }, {
  4551. default: withCtx(() => [
  4552. _hoisted_240,
  4553. _hoisted_241
  4554. ]),
  4555. _: 1
  4556. }),
  4557. createVNode(_component_PluginTabsTab, { label: "Stream Pixel Data" }, {
  4558. default: withCtx(() => [
  4559. _hoisted_242,
  4560. _hoisted_243,
  4561. _hoisted_244
  4562. ]),
  4563. _: 1
  4564. })
  4565. ]),
  4566. _: 1
  4567. })
  4568. ]),
  4569. _: 1
  4570. })
  4571. ]),
  4572. _: 1
  4573. })
  4574. ]);
  4575. }
  4576. const quantum_painter = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
  4577. export {
  4578. __pageData,
  4579. quantum_painter as default
  4580. };