| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580 |
- 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";
- const __pageData = JSON.parse('{"title":"Quantum Painter","description":"","frontmatter":{},"headers":[],"relativePath":"quantum_painter.md","filePath":"quantum_painter.md","lastUpdated":null}');
- const _sfc_main = { name: "quantum_painter.md" };
- const _hoisted_1 = /* @__PURE__ */ createStaticVNode("", 14);
- const _hoisted_15 = /* @__PURE__ */ createBaseVNode("p", null, "This command converts images to a format usable by QMK, i.e. the QGF File Format.", -1);
- const _hoisted_16 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("strong", null, "Usage"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_17 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "usage: qmk painter-convert-graphics [-h] [-w] [-d] [-r] -f FORMAT [-o OUTPUT] -i INPUT [-v]")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "options:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -h, --help show this help message and exit")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -w, --raw Writes out the QGF file as raw data instead of c/h combo.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -d, --no-deltas Disables the use of delta frames when encoding animations.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -r, --no-rle Disables the use of RLE when encoding images.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -f FORMAT, --format FORMAT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Output format, valid types: rgb888, rgb565, pal256, pal16, pal4, pal2, mono256, mono16, mono4, mono2")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -o OUTPUT, --output OUTPUT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Specify output directory. Defaults to same directory as input.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -i INPUT, --input INPUT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Specify input graphic file.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -v, --verbose Turns on verbose output.")
- ])
- ])
- ])
- ], -1);
- const _hoisted_18 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "INPUT"),
- /* @__PURE__ */ createTextVNode(" argument can be any image file loadable by Python's Pillow module. Common formats include PNG, or Animated GIF.")
- ], -1);
- const _hoisted_19 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "OUTPUT"),
- /* @__PURE__ */ createTextVNode(" argument needs to be a directory, and will default to the same directory as the input argument.")
- ], -1);
- const _hoisted_20 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "FORMAT"),
- /* @__PURE__ */ createTextVNode(" argument can be any of the following:")
- ], -1);
- const _hoisted_21 = /* @__PURE__ */ createBaseVNode("table", null, [
- /* @__PURE__ */ createBaseVNode("thead", null, [
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("th", null, "Format"),
- /* @__PURE__ */ createBaseVNode("th", null, "Meaning")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tbody", null, [
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "rgb888")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createTextVNode("16,777,216 colors in 8-8-8 RGB format (requires "),
- /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS"),
- /* @__PURE__ */ createTextVNode(")")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "rgb565")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createTextVNode("65,536 colors in 5-6-5 RGB format (requires "),
- /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS"),
- /* @__PURE__ */ createTextVNode(")")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "pal256")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createTextVNode("256-color palette (requires "),
- /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_256_PALETTE"),
- /* @__PURE__ */ createTextVNode(")")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "pal16")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, "16-color palette")
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "pal4")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, "4-color palette")
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "pal2")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, "2-color palette")
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "mono256")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createTextVNode("256-shade grayscale (requires "),
- /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_SUPPORTS_256_PALETTE"),
- /* @__PURE__ */ createTextVNode(")")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "mono16")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, "16-shade grayscale")
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "mono4")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, "4-shade grayscale")
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "mono2")
- ]),
- /* @__PURE__ */ createBaseVNode("td", null, "2-shade grayscale")
- ])
- ])
- ], -1);
- const _hoisted_22 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("strong", null, "Examples"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_23 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "$ cd /home/qmk/qmk_firmware/keyboards/my_keeb")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "$ qmk painter-convert-graphics -f mono16 -i my_image.gif -o ./generated/")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/my_image.qgf.h...")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/my_image.qgf.c...")
- ])
- ])
- ])
- ], -1);
- 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);
- const _hoisted_25 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("strong", null, "Usage"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_26 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "usage: qmk painter-make-font-image [-h] [-a] [-u UNICODE_GLYPHS] [-n] [-s SIZE] -o OUTPUT -f FONT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "optional arguments:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -h, --help show this help message and exit")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -a, --no-aa Disable anti-aliasing on fonts.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -u UNICODE_GLYPHS, --unicode-glyphs UNICODE_GLYPHS")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Also generate the specified unicode glyphs.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -n, --no-ascii Disables output of the full ASCII character set (0x20..0x7E), exporting only the glyphs specified.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -s SIZE, --size SIZE Specify font size. Default 12.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -o OUTPUT, --output OUTPUT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Specify output image path.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -f FONT, --font FONT Specify input font file.")
- ])
- ])
- ])
- ], -1);
- const _hoisted_27 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "FONT"),
- /* @__PURE__ */ createTextVNode(" argument is generally a TrueType Font file (TTF).")
- ], -1);
- const _hoisted_28 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "OUTPUT"),
- /* @__PURE__ */ createTextVNode(" argument is the output image to generate, generally something like "),
- /* @__PURE__ */ createBaseVNode("code", null, "my_font.png"),
- /* @__PURE__ */ createTextVNode(".")
- ], -1);
- const _hoisted_29 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "UNICODE_GLYPHS"),
- /* @__PURE__ */ createTextVNode(" argument allows for specifying extra unicode glyphs to generate, and accepts a string.")
- ], -1);
- const _hoisted_30 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("strong", null, "Examples"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_31 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, '$ qmk painter-make-font-image --font NotoSans-ExtraCondensedBold.ttf --size 11 -o noto11.png --unicode-glyphs "ĄȽɂɻɣɈʣ"')
- ])
- ])
- ])
- ], -1);
- const _hoisted_32 = /* @__PURE__ */ createBaseVNode("p", null, "This command converts an intermediate font image to the QFF File Format.", -1);
- const _hoisted_33 = /* @__PURE__ */ createBaseVNode("p", null, "This command expects an image that conforms to the following format:", -1);
- const _hoisted_34 = /* @__PURE__ */ createBaseVNode("ul", null, [
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("Top-left pixel (at "),
- /* @__PURE__ */ createBaseVNode("code", null, "0,0"),
- /* @__PURE__ */ createTextVNode(') is the "delimiter" color: '),
- /* @__PURE__ */ createBaseVNode("ul", null, [
- /* @__PURE__ */ createBaseVNode("li", null, "Each glyph in the font starts when a pixel of this color is found on the first row"),
- /* @__PURE__ */ createBaseVNode("li", null, "The first row is discarded when converting to the QFF format")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("The number of delimited glyphs must match the supplied arguments to the command: "),
- /* @__PURE__ */ createBaseVNode("ul", null, [
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("The full ASCII set "),
- /* @__PURE__ */ createBaseVNode("code", null, "0x20..0x7E"),
- /* @__PURE__ */ createTextVNode(" (if "),
- /* @__PURE__ */ createBaseVNode("code", null, "--no-ascii"),
- /* @__PURE__ */ createTextVNode(" was not specified)")
- ]),
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("The corresponding number of unicode glyphs if any were specified with "),
- /* @__PURE__ */ createBaseVNode("code", null, "--unicode-glyphs")
- ])
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("li", null, "The order of the glyphs matches the ASCII set, if any, followed by the Unicode glyph set, if any.")
- ], -1);
- const _hoisted_35 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("strong", null, "Usage"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_36 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "usage: qmk painter-convert-font-image [-h] [-w] [-r] -f FORMAT [-u UNICODE_GLYPHS] [-n] [-o OUTPUT] [-i INPUT]")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "options:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -h, --help show this help message and exit")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -w, --raw Writes out the QFF file as raw data instead of c/h combo.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -r, --no-rle Disable the use of RLE to minimise converted image size.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -f FORMAT, --format FORMAT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Output format, valid types: rgb565, pal256, pal16, pal4, pal2, mono256, mono16, mono4, mono2")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -u UNICODE_GLYPHS, --unicode-glyphs UNICODE_GLYPHS")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Also generate the specified unicode glyphs.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -n, --no-ascii Disables output of the full ASCII character set (0x20..0x7E), exporting only the glyphs specified.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -o OUTPUT, --output OUTPUT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Specify output directory. Defaults to same directory as input.")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " -i INPUT, --input INPUT")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, " Specify input graphic file.")
- ])
- ])
- ])
- ], -1);
- const _hoisted_37 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The same arguments for "),
- /* @__PURE__ */ createBaseVNode("code", null, "--no-ascii"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "--unicode-glyphs"),
- /* @__PURE__ */ createTextVNode(" need to be specified, as per "),
- /* @__PURE__ */ createBaseVNode("code", null, "qmk painter-make-font-image"),
- /* @__PURE__ */ createTextVNode(".")
- ], -1);
- const _hoisted_38 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("strong", null, "Examples"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_39 = /* @__PURE__ */ createBaseVNode("div", { class: "language- vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "$ cd /home/qmk/qmk_firmware/keyboards/my_keeb")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, '$ qmk painter-convert-font-image --input noto11.png -f mono4 --unicode-glyphs "ĄȽɂɻɣɈʣ"')
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/noto11.qff.h...")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", null, "Writing /home/qmk/qmk_firmware/keyboards/my_keeb/generated/noto11.qff.c...")
- ])
- ])
- ])
- ], -1);
- const _hoisted_40 = /* @__PURE__ */ createBaseVNode("h2", {
- id: "quantum-painter-drivers",
- tabindex: "-1"
- }, [
- /* @__PURE__ */ createTextVNode("Quantum Painter Display Drivers "),
- /* @__PURE__ */ createBaseVNode("a", {
- class: "header-anchor",
- href: "#quantum-painter-drivers",
- "aria-label": 'Permalink to "Quantum Painter Display Drivers {#quantum-painter-drivers}"'
- }, "")
- ], -1);
- 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);
- const _hoisted_42 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("For these displays, QMK's "),
- /* @__PURE__ */ createBaseVNode("code", null, "spi_master"),
- /* @__PURE__ */ createTextVNode(" must already be correctly configured for the platform you're building for.")
- ], -1);
- const _hoisted_43 = /* @__PURE__ */ createBaseVNode("p", null, "The pin assignments for SPI CS, D/C, and RST are specified during device construction.", -1);
- const _hoisted_44 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the GC9A01 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_45 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += gc9a01_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_46 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a GC9A01 device in firmware can then be done with the following API:", -1);
- const _hoisted_47 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_gc9a01_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_48 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_gc9a01_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_49 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_50 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " GC9A01_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_51 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with GC9A01", -1);
- const _hoisted_52 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the ILI9163 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_53 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9163_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_54 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9163 device in firmware can then be done with the following API:", -1);
- const _hoisted_55 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9163_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_56 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_ili9163_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_57 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_58 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9163_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_59 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ILI9163", -1);
- const _hoisted_60 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the ILI9341 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_61 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9341_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_62 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9341 device in firmware can then be done with the following API:", -1);
- const _hoisted_63 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9341_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_64 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_ili9341_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_65 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_66 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9341_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_67 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ILI9341", -1);
- const _hoisted_68 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the ILI9486 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_69 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9486_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_70 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9486 device in firmware can then be done with the following API:", -1);
- const _hoisted_71 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9486_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_72 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("There's another variant for this "),
- /* @__PURE__ */ createBaseVNode("a", {
- href: "https://www.waveshare.com/wiki/3.5inch_TFT_Touch_Shield",
- target: "_blank",
- rel: "noreferrer"
- }, "Waveshare module"),
- /* @__PURE__ */ createTextVNode(", because it has a quirky SPI->Parallel converter. You can create it with:")
- ], -1);
- const _hoisted_73 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9486_make_spi_waveshare_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_74 = /* @__PURE__ */ createBaseVNode("p", null, "The device handle returned from these functions can be used to perform all other drawing operations.", -1);
- const _hoisted_75 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_76 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9486_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- 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);
- const _hoisted_78 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the ILI9488 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_79 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ili9488_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_80 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ILI9488 device in firmware can then be done with the following API:", -1);
- const _hoisted_81 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ili9488_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_82 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_ili9488_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_83 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_84 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ILI9488_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_85 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb888 is compatible with ILI9488", -1);
- const _hoisted_86 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the ST7735 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_87 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += st7735_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_88 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ST7735 device in firmware can then be done with the following API:", -1);
- const _hoisted_89 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_st7735_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_90 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_st7735_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_91 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_92 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ST7735_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_93 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ST7735", -1);
- const _hoisted_94 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__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 "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets"),
- /* @__PURE__ */ createTextVNode(" above for information on how to override the offsets if they aren't correctly rendered.")
- ])
- ], -1);
- const _hoisted_95 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the ST7789 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_96 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += st7789_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_97 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a ST7789 device in firmware can then be done with the following API:", -1);
- const _hoisted_98 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_st7789_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_99 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_st7789_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_100 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_101 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " ST7789_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_102 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with ST7789", -1);
- const _hoisted_103 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__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 "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets"),
- /* @__PURE__ */ createTextVNode(" above for information on how to override the offsets if they aren't correctly rendered.")
- ])
- ], -1);
- 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);
- const _hoisted_105 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("When using these displays, either "),
- /* @__PURE__ */ createBaseVNode("code", null, "spi_master"),
- /* @__PURE__ */ createTextVNode(" or "),
- /* @__PURE__ */ createBaseVNode("code", null, "i2c_master"),
- /* @__PURE__ */ createTextVNode(" must already be correctly configured for both the platform and panel you're building for.")
- ], -1);
- 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);
- const _hoisted_107 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the SSD1351 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_108 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ssd1351_spi")
- ])
- ])
- ])
- ], -1);
- const _hoisted_109 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a SSD1351 device in firmware can then be done with the following API:", -1);
- const _hoisted_110 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ssd1351_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_111 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_ssd1351_make_spi_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_112 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_113 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SSD1351_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_114 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format rgb565 is compatible with SSD1351", -1);
- const _hoisted_115 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the SH1106 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_116 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For SPI:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += sh1106_spi")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For I2C:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += sh1106_i2c")
- ])
- ])
- ])
- ], -1);
- const _hoisted_117 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a SH1106 device in firmware can then be done with the following APIs:", -1);
- const _hoisted_118 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// SPI-based SH1106:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_sh1106_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// I2C-based SH1106:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_sh1106_make_i2c_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " i2c_address"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_119 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_sh1106_make_???_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_120 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays of each type can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_121 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 SPI displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SH1106_NUM_SPI_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 I2C displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SH1106_NUM_I2C_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_122 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format mono2 is compatible with SH1106", -1);
- 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);
- const _hoisted_124 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for the LD7032 in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_125 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For SPI:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ld7032_spi")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "# For I2C:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += ld7032_i2c")
- ])
- ])
- ])
- ], -1);
- const _hoisted_126 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a SH1106 device in firmware can then be done with the following APIs:", -1);
- const _hoisted_127 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// SPI-based LD7032:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ld7032_make_spi_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " chip_select_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " dc_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "pin_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " reset_pin"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_divisor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " spi_mode"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// I2C-based LD7032:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ld7032_make_i2c_device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " i2c_address"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_128 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_ld7032_make_???_device"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_129 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of displays of each type can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_130 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 SPI displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " LD7032_NUM_SPI_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 I2C displays:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " LD7032_NUM_I2C_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- const _hoisted_131 = /* @__PURE__ */ createBaseVNode("p", null, "Native color format mono2 is compatible with LD7032.", -1);
- 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);
- const _hoisted_133 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__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.")
- ], -1);
- const _hoisted_134 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Enabling support for surfaces in Quantum Painter is done by adding the following to "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_135 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_ENABLE = yes")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "QUANTUM_PAINTER_DRIVERS += surface")
- ])
- ])
- ])
- ], -1);
- const _hoisted_136 = /* @__PURE__ */ createBaseVNode("p", null, "Creating a surface in firmware can then be done with the following APIs:", -1);
- const _hoisted_137 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 16bpp RGB565 surface:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_make_rgb565_surface"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 1bpp monochrome surface:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_make_mono1bpp_surface"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " panel_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_138 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "buffer"),
- /* @__PURE__ */ createTextVNode(" is a user-supplied area of memory, which can be statically allocated using "),
- /* @__PURE__ */ createBaseVNode("code", null, "SURFACE_REQUIRED_BUFFER_BYTE_SIZE"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_139 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Buffer required for a 240x80 16bpp surface:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " framebuffer"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "["),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "SURFACE_REQUIRED_BUFFER_BYTE_SIZE"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "80"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "16"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ")];")
- ])
- ])
- ])
- ], -1);
- const _hoisted_140 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The device handle returned from the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_make_?????_surface"),
- /* @__PURE__ */ createTextVNode(" function can be used to perform all other drawing operations.")
- ], -1);
- const _hoisted_141 = /* @__PURE__ */ createBaseVNode("p", null, "Example:", -1);
- const _hoisted_142 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_surface;")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " my_framebuffer"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "["),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "SURFACE_REQUIRED_BUFFER_BYTE_SIZE"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "80"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "16"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ")];"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Allocate a buffer for a 16bpp 240x80 RGB565 display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_surface "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rgb565_make_surface"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "80"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", my_framebuffer);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_init"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(my_surface, QP_ROTATION_0);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_143 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The maximum number of surfaces can be configured by changing the following in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(" (default is 1):")
- ], -1);
- const _hoisted_144 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// 3 surfaces:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#define"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " SURFACE_NUM_DEVICES"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 3")
- ])
- ])
- ])
- ], -1);
- 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);
- const _hoisted_146 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_surface_draw"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " surface"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " display"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " entire_surface"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_147 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "surface"),
- /* @__PURE__ */ createTextVNode(" is the surface to copy out from. The "),
- /* @__PURE__ */ createBaseVNode("code", null, "display"),
- /* @__PURE__ */ createTextVNode(" is the target display to draw into. "),
- /* @__PURE__ */ createBaseVNode("code", null, "x"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "y"),
- /* @__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 "),
- /* @__PURE__ */ createBaseVNode("code", null, "x"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "y"),
- /* @__PURE__ */ createTextVNode(" coordinates -- changing those will result in partial, overlapping draws. "),
- /* @__PURE__ */ createBaseVNode("code", null, "entire_surface"),
- /* @__PURE__ */ createTextVNode(" whether the entire surface should be drawn, instead of just the dirty region.")
- ], -1);
- const _hoisted_148 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__PURE__ */ createBaseVNode("p", null, "The surface and display panel must have the same native pixel format.")
- ], -1);
- const _hoisted_149 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Calling "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_flush()"),
- /* @__PURE__ */ createTextVNode(" on the surface resets its dirty region. Copying the surface contents to the display also automatically resets the dirty region.")
- ])
- ], -1);
- const _hoisted_150 = /* @__PURE__ */ createStaticVNode("", 4);
- const _hoisted_154 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The coordinate system used in Quantum Painter generally accepts "),
- /* @__PURE__ */ createBaseVNode("code", null, "left"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "top"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "right"),
- /* @__PURE__ */ createTextVNode(", and "),
- /* @__PURE__ */ createBaseVNode("code", null, "bottom"),
- /* @__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 "),
- /* @__PURE__ */ createBaseVNode("code", null, "255"),
- /* @__PURE__ */ createTextVNode(" -- for any value or geometry extent that matches "),
- /* @__PURE__ */ createBaseVNode("code", null, "256"),
- /* @__PURE__ */ createTextVNode(", this would be represented as a "),
- /* @__PURE__ */ createBaseVNode("code", null, "0"),
- /* @__PURE__ */ createTextVNode(", instead.")
- ], -1);
- const _hoisted_155 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Drawing a horizontal line 8 pixels long, starting from 4 pixels inside the left side of the display, will need "),
- /* @__PURE__ */ createBaseVNode("code", null, "left=4"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "right=11"),
- /* @__PURE__ */ createTextVNode(".")
- ])
- ], -1);
- const _hoisted_156 = /* @__PURE__ */ createBaseVNode("p", null, "All color data matches the standard QMK HSV triplet definitions:", -1);
- const _hoisted_157 = /* @__PURE__ */ createBaseVNode("ul", null, [
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("Hue is of the range "),
- /* @__PURE__ */ createBaseVNode("code", null, "0...255"),
- /* @__PURE__ */ createTextVNode(" and is internally mapped to 0...360 degrees.")
- ]),
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("Saturation is of the range "),
- /* @__PURE__ */ createBaseVNode("code", null, "0...255"),
- /* @__PURE__ */ createTextVNode(" and is internally mapped to 0...100% saturation.")
- ]),
- /* @__PURE__ */ createBaseVNode("li", null, [
- /* @__PURE__ */ createTextVNode("Value is of the range "),
- /* @__PURE__ */ createBaseVNode("code", null, "0...255"),
- /* @__PURE__ */ createTextVNode(" and is internally mapped to 0...100% brightness.")
- ])
- ], -1);
- const _hoisted_158 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
- /* @__PURE__ */ createBaseVNode("p", null, "Colors used in Quantum Painter are not subject to the RGB lighting CIE curve, if it is enabled.")
- ], -1);
- const _hoisted_159 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_init"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_rotation_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " rotation"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_160 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_init"),
- /* @__PURE__ */ createTextVNode(" function is used to initialise a display device after it has been created. This accepts a rotation parameter ("),
- /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_0"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_90"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_180"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "QP_ROTATION_270"),
- /* @__PURE__ */ createTextVNode("), which makes sure that the orientation of what's drawn on the display is correct.")
- ], -1);
- const _hoisted_161 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " display;")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " display "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " qp_make_.......;"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Create the display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_init"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, QP_ROTATION_0);"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Initialise the display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_162 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_power"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " power_on"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_163 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_power"),
- /* @__PURE__ */ createTextVNode(" function instructs the display whether or not the display panel should be on or off.")
- ], -1);
- const _hoisted_164 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("If there is a separate backlight controlled through the normal QMK backlight API, this is not controlled by the "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_power"),
- /* @__PURE__ */ createTextVNode(" function and needs to be manually handled elsewhere.")
- ])
- ], -1);
- const _hoisted_165 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_backlight "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " suspend_power_down_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (last_backlight "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "=="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_backlight "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " get_backlight_level"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " backlight_set"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " rgb_matrix_set_suspend_state"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_power"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "false"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " suspend_wakeup_init_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_power"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " rgb_matrix_set_suspend_state"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "false"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (last_backlight "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " backlight_set"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_backlight);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_backlight "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_166 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_clear"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_167 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_clear"),
- /* @__PURE__ */ createTextVNode(" function clears the display's screen.")
- ], -1);
- const _hoisted_168 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_169 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_flush"),
- /* @__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.')
- ], -1);
- const _hoisted_170 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Some display panels may seem to work even without a call to "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_flush"),
- /* @__PURE__ */ createTextVNode(" -- this may be because the driver cannot queue drawing operations and needs to display them immediately when invoked. In general, calling "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_flush"),
- /* @__PURE__ */ createTextVNode(' at the end is still considered "best practice".')
- ])
- ], -1);
- const _hoisted_171 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw a rect based off the current RGB color")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rect"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "239"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "rgb_matrix_get_hue"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(), "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_172 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_setpixel"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_173 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_setpixel"),
- /* @__PURE__ */ createTextVNode(" can be used to set a specific pixel on the screen to the supplied color.")
- ], -1);
- const _hoisted_174 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Using "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_setpixel"),
- /* @__PURE__ */ createTextVNode(" for large amounts of drawing operations is inefficient and should be avoided unless they cannot be achieved with other drawing APIs.")
- ])
- ], -1);
- const _hoisted_175 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw a 240px high vertical rainbow line on X=0:")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "++"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i) {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_setpixel"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_176 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_line"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x1"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y1"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_177 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_line"),
- /* @__PURE__ */ createTextVNode(" can be used to draw lines on the screen with the supplied color.")
- ], -1);
- const _hoisted_178 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw 8px-wide rainbow down the left side of the display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "++"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i) {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_line"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_179 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rect"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " left"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " top"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " right"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " bottom"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " filled"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_180 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_rect"),
- /* @__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.")
- ], -1);
- const _hoisted_181 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw 8px-wide rainbow filled rectangles down the left side of the display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_rect"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "7"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_182 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_circle"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " radius"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " filled"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_183 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_circle"),
- /* @__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.")
- ], -1);
- const _hoisted_184 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw r=4 filled circles down the left side of the display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_circle"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_185 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ellipse"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sizex"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sizey"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " filled"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_186 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_ellipse"),
- /* @__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.")
- ], -1);
- const _hoisted_187 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "timer_elapsed32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(last_draw) "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, ">"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 33"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Throttle to 30fps")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " last_draw "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " timer_read32"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "();")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, " // Draw 16x8 filled ellipses down the left side of the display")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " for"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 0"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "<"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " 239"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "; i"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_ellipse"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "4"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "+"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "16"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "8"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", i, "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "255"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "true"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_flush"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_188 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Making an image available for use requires compiling it into your firmware. To do so, assuming you've created "),
- /* @__PURE__ */ createBaseVNode("code", null, "my_image.qgf.c"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "my_image.qgf.h"),
- /* @__PURE__ */ createTextVNode(" as per the CLI examples above, you'd add the following to your "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_189 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "SRC += my_image.qgf.c")
- ])
- ])
- ])
- ], -1);
- const _hoisted_190 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("...and in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "keymap.c"),
- /* @__PURE__ */ createTextVNode(", you'd add to the top of the file:")
- ], -1);
- const _hoisted_191 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#include"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#032F62", "--shiki-dark": "#9ECBFF" } }, ' "my_image.qgf.h"')
- ])
- ])
- ])
- ], -1);
- const _hoisted_192 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_image_mem"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_193 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_load_image_mem"),
- /* @__PURE__ */ createTextVNode(" function loads a QGF image from memory or flash.")
- ], -1);
- const _hoisted_194 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "qp_load_image_mem"),
- /* @__PURE__ */ createTextVNode(" returns a handle to the loaded image, which can then be used to draw to the screen using "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage_recolor"),
- /* @__PURE__ */ createTextVNode(", "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_animate"),
- /* @__PURE__ */ createTextVNode(", or "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_animate_recolor"),
- /* @__PURE__ */ createTextVNode(". If an image is no longer required, it can be unloaded by calling "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_close_image"),
- /* @__PURE__ */ createTextVNode(" below.")
- ], -1);
- const _hoisted_195 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("See the "),
- /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter#quantum-painter-cli" }, "CLI Commands"),
- /* @__PURE__ */ createTextVNode(" for instructions on how to convert images to "),
- /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter_qgf" }, "QGF"),
- /* @__PURE__ */ createTextVNode(".")
- ], -1);
- const _hoisted_196 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The total number of images available to load at any one time is controlled by the configurable option "),
- /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_NUM_IMAGES"),
- /* @__PURE__ */ createTextVNode(" in the table above. If more images are required, the number should be increased in "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(".")
- ])
- ], -1);
- const _hoisted_197 = /* @__PURE__ */ createBaseVNode("p", null, "Image information is available through accessing the handle:", -1);
- const _hoisted_198 = /* @__PURE__ */ createBaseVNode("table", null, [
- /* @__PURE__ */ createBaseVNode("thead", null, [
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("th", null, "Property"),
- /* @__PURE__ */ createBaseVNode("th", null, "Accessor")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tbody", null, [
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, "Width"),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "image->width")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, "Height"),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "image->height")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, "Frame Count"),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "image->frame_count")
- ])
- ])
- ])
- ], -1);
- const _hoisted_199 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_close_image"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_200 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_close_image"),
- /* @__PURE__ */ createTextVNode(" function releases resources related to the loading of the supplied image.")
- ], -1);
- const _hoisted_201 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawimage"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawimage_recolor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_202 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawimage_recolor"),
- /* @__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.")
- ], -1);
- const _hoisted_203 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Draw an image on the bottom-right of the 240x320 display on initialisation")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image;")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_image_mem"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(gfx_my_image);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (my_image "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " NULL"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawimage"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->width), ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "320"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->height), my_image);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_204 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "deferred_token "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "qp_animate"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "deferred_token "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, "qp_animate_recolor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " image"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_205 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_animate"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_animate_recolor"),
- /* @__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.")
- ], -1);
- 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);
- const _hoisted_207 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Both functions return a "),
- /* @__PURE__ */ createBaseVNode("code", null, "deferred_token"),
- /* @__PURE__ */ createTextVNode(", which can then be used to stop the animation, using "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_stop_animation"),
- /* @__PURE__ */ createTextVNode(" below.")
- ], -1);
- const _hoisted_208 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Animate an image on the bottom-right of the 240x320 display on initialisation")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_image_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image;")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " deferred_token my_anim;")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_image_mem"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(gfx_my_image);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (my_image "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " NULL"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_anim "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_animate"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->width), ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "320"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_image->height), my_image);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_209 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_stop_animation"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(deferred_token "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "anim_token"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_210 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_stop_animation"),
- /* @__PURE__ */ createTextVNode(" function stops the previously-started animation.")
- ], -1);
- const _hoisted_211 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " housekeeping_task_user"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (some_random_stop_reason) {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_stop_animation"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(my_anim);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_212 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Making a font available for use requires compiling it into your firmware. To do so, assuming you've created "),
- /* @__PURE__ */ createBaseVNode("code", null, "my_font.qff.c"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "my_font.qff.h"),
- /* @__PURE__ */ createTextVNode(" as per the CLI examples above, you'd add the following to your "),
- /* @__PURE__ */ createBaseVNode("code", null, "rules.mk"),
- /* @__PURE__ */ createTextVNode(":")
- ], -1);
- const _hoisted_213 = /* @__PURE__ */ createBaseVNode("div", { class: "language-make vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "make"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "SRC += noto11.qff.c")
- ])
- ])
- ])
- ], -1);
- const _hoisted_214 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("...and in your "),
- /* @__PURE__ */ createBaseVNode("code", null, "keymap.c"),
- /* @__PURE__ */ createTextVNode(", you'd add to the top of the file:")
- ], -1);
- const _hoisted_215 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "#include"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#032F62", "--shiki-dark": "#9ECBFF" } }, ' "noto11.qff.h"')
- ])
- ])
- ])
- ], -1);
- const _hoisted_216 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_font_mem"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "buffer"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_217 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_load_font_mem"),
- /* @__PURE__ */ createTextVNode(" function loads a QFF font from memory or flash.")
- ], -1);
- const _hoisted_218 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "qp_load_font_mem"),
- /* @__PURE__ */ createTextVNode(" returns a handle to the loaded font, which can then be measured using "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_textwidth"),
- /* @__PURE__ */ createTextVNode(", or drawn to the screen using "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext"),
- /* @__PURE__ */ createTextVNode(", or "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext_recolor"),
- /* @__PURE__ */ createTextVNode(". If a font is no longer required, it can be unloaded by calling "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_close_font"),
- /* @__PURE__ */ createTextVNode(" below.")
- ], -1);
- const _hoisted_219 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("See the "),
- /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter#quantum-painter-cli" }, "CLI Commands"),
- /* @__PURE__ */ createTextVNode(" for instructions on how to convert TTF fonts to "),
- /* @__PURE__ */ createBaseVNode("a", { href: "./quantum_painter_qff" }, "QFF"),
- /* @__PURE__ */ createTextVNode(".")
- ], -1);
- const _hoisted_220 = /* @__PURE__ */ createBaseVNode("div", { class: "tip custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "TIP"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The total number of fonts available to load at any one time is controlled by the configurable option "),
- /* @__PURE__ */ createBaseVNode("code", null, "QUANTUM_PAINTER_NUM_FONTS"),
- /* @__PURE__ */ createTextVNode(" in the table above. If more fonts are required, the number should be increased in "),
- /* @__PURE__ */ createBaseVNode("code", null, "config.h"),
- /* @__PURE__ */ createTextVNode(".")
- ])
- ], -1);
- const _hoisted_221 = /* @__PURE__ */ createBaseVNode("p", null, "Font information is available through accessing the handle:", -1);
- const _hoisted_222 = /* @__PURE__ */ createBaseVNode("table", null, [
- /* @__PURE__ */ createBaseVNode("thead", null, [
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("th", null, "Property"),
- /* @__PURE__ */ createBaseVNode("th", null, "Accessor")
- ])
- ]),
- /* @__PURE__ */ createBaseVNode("tbody", null, [
- /* @__PURE__ */ createBaseVNode("tr", null, [
- /* @__PURE__ */ createBaseVNode("td", null, "Line Height"),
- /* @__PURE__ */ createBaseVNode("td", null, [
- /* @__PURE__ */ createBaseVNode("code", null, "image->line_height")
- ])
- ])
- ])
- ], -1);
- const _hoisted_223 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_close_font"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_224 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_close_font"),
- /* @__PURE__ */ createTextVNode(" function releases resources related to the loading of the supplied font.")
- ], -1);
- const _hoisted_225 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_textwidth"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "str"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_226 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_textwidth"),
- /* @__PURE__ */ createTextVNode(" function allows measurement of how many pixels wide the supplied string would result in, for the given font.")
- ], -1);
- const _hoisted_227 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawtext"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "str"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "int16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawtext_recolor"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_font_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " font"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "str"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_fg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " hue_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " sat_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint8_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " val_bg"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_228 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext"),
- /* @__PURE__ */ createTextVNode(" and "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_drawtext_recolor"),
- /* @__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.")
- ], -1);
- const _hoisted_229 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6A737D", "--shiki-dark": "#6A737D" } }, "// Draw a text message on the bottom-right of the 240x320 display on initialisation")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " painter_font_handle_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_font;")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " keyboard_post_init_kb"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_font "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_load_font_mem"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(font_noto11);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " if"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " (my_font "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "!="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, " NULL"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ") {")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " static"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " char"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "text "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#032F62", "--shiki-dark": "#9ECBFF" } }, ' "Hello from QMK!"'),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ";")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " int16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " width "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "="),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_textwidth"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(my_font, text);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_drawtext"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "(display, ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "240"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " width), ("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "320"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " -"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " my_font->line_height), my_font, text);")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, " }")
- ]),
- /* @__PURE__ */ createTextVNode("\n"),
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "}")
- ])
- ])
- ])
- ], -1);
- const _hoisted_230 = /* @__PURE__ */ createBaseVNode("p", null, "These functions allow external code to retrieve the current width, height, rotation, and drawing offsets.", -1);
- const _hoisted_231 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_232 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_233 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_rotation_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_rotation"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_234 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_offset_x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_235 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_offset_y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_236 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Convenience function to call all the previous ones at once. Note: You can pass "),
- /* @__PURE__ */ createBaseVNode("code", null, "NULL"),
- /* @__PURE__ */ createTextVNode(" for the values you are not interested in.")
- ], -1);
- const _hoisted_237 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_get_geometry"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "width"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "height"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_rotation_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "rotation"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "offset_x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "offset_y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_238 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_set_viewport_offsets"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " offset_x"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " offset_y"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_239 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets"),
- /* @__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 "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_set_viewport_offsets(display, 0, 80);"),
- /* @__PURE__ */ createTextVNode(" and the drawing positioning would be corrected.")
- ], -1);
- const _hoisted_240 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_viewport"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " left"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " top"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " right"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint16_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " bottom"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_241 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_viewport"),
- /* @__PURE__ */ createTextVNode(" function controls where raw pixel data is written to.")
- ], -1);
- const _hoisted_242 = /* @__PURE__ */ createBaseVNode("div", { class: "language-c vp-adaptive-theme" }, [
- /* @__PURE__ */ createBaseVNode("button", {
- title: "Copy Code",
- class: "copy"
- }),
- /* @__PURE__ */ createBaseVNode("span", { class: "lang" }, "c"),
- /* @__PURE__ */ createBaseVNode("pre", { class: "shiki shiki-themes github-light github-dark vp-code" }, [
- /* @__PURE__ */ createBaseVNode("code", null, [
- /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "bool"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#6F42C1", "--shiki-dark": "#B392F0" } }, " qp_pixdata"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, "("),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#005CC5", "--shiki-dark": "#79B8FF" } }, "painter_device_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " device"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "const"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " void"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, " *"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, "pixel_data"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ", "),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#D73A49", "--shiki-dark": "#F97583" } }, "uint32_t"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#E36209", "--shiki-dark": "#FFAB70" } }, " native_pixel_count"),
- /* @__PURE__ */ createBaseVNode("span", { style: { "--shiki-light": "#24292E", "--shiki-dark": "#E1E4E8" } }, ");")
- ])
- ])
- ])
- ], -1);
- const _hoisted_243 = /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("The "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_pixdata"),
- /* @__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.")
- ], -1);
- const _hoisted_244 = /* @__PURE__ */ createBaseVNode("div", { class: "warning custom-block" }, [
- /* @__PURE__ */ createBaseVNode("p", { class: "custom-block-title" }, "WARNING"),
- /* @__PURE__ */ createBaseVNode("p", null, [
- /* @__PURE__ */ createTextVNode("Under normal circumstances, users will not need to manually call either "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_viewport"),
- /* @__PURE__ */ createTextVNode(" or "),
- /* @__PURE__ */ createBaseVNode("code", null, "qp_pixdata"),
- /* @__PURE__ */ createTextVNode(". These allow for writing of raw pixel information, in the display panel's native format, to the area defined by the viewport.")
- ])
- ], -1);
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_PluginTabsTab = resolveComponent("PluginTabsTab");
- const _component_PluginTabs = resolveComponent("PluginTabs");
- return openBlock(), createElementBlock("div", null, [
- _hoisted_1,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "`qmk painter-convert-graphics`" }, {
- default: withCtx(() => [
- _hoisted_15,
- _hoisted_16,
- _hoisted_17,
- _hoisted_18,
- _hoisted_19,
- _hoisted_20,
- _hoisted_21,
- _hoisted_22,
- _hoisted_23
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "`qmk painter-make-font-image`" }, {
- default: withCtx(() => [
- _hoisted_24,
- _hoisted_25,
- _hoisted_26,
- _hoisted_27,
- _hoisted_28,
- _hoisted_29,
- _hoisted_30,
- _hoisted_31
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "`qmk painter-convert-font-image`" }, {
- default: withCtx(() => [
- _hoisted_32,
- _hoisted_33,
- _hoisted_34,
- _hoisted_35,
- _hoisted_36,
- _hoisted_37,
- _hoisted_38,
- _hoisted_39
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- _hoisted_40,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "LCD" }, {
- default: withCtx(() => [
- _hoisted_41,
- _hoisted_42,
- _hoisted_43,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "GC9A01" }, {
- default: withCtx(() => [
- _hoisted_44,
- _hoisted_45,
- _hoisted_46,
- _hoisted_47,
- _hoisted_48,
- _hoisted_49,
- _hoisted_50,
- _hoisted_51
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "ILI9163" }, {
- default: withCtx(() => [
- _hoisted_52,
- _hoisted_53,
- _hoisted_54,
- _hoisted_55,
- _hoisted_56,
- _hoisted_57,
- _hoisted_58,
- _hoisted_59
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "ILI9341" }, {
- default: withCtx(() => [
- _hoisted_60,
- _hoisted_61,
- _hoisted_62,
- _hoisted_63,
- _hoisted_64,
- _hoisted_65,
- _hoisted_66,
- _hoisted_67
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "ILI9486" }, {
- default: withCtx(() => [
- _hoisted_68,
- _hoisted_69,
- _hoisted_70,
- _hoisted_71,
- _hoisted_72,
- _hoisted_73,
- _hoisted_74,
- _hoisted_75,
- _hoisted_76,
- _hoisted_77
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "ILI9488" }, {
- default: withCtx(() => [
- _hoisted_78,
- _hoisted_79,
- _hoisted_80,
- _hoisted_81,
- _hoisted_82,
- _hoisted_83,
- _hoisted_84,
- _hoisted_85
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "ST7735" }, {
- default: withCtx(() => [
- _hoisted_86,
- _hoisted_87,
- _hoisted_88,
- _hoisted_89,
- _hoisted_90,
- _hoisted_91,
- _hoisted_92,
- _hoisted_93,
- _hoisted_94
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "ST7789" }, {
- default: withCtx(() => [
- _hoisted_95,
- _hoisted_96,
- _hoisted_97,
- _hoisted_98,
- _hoisted_99,
- _hoisted_100,
- _hoisted_101,
- _hoisted_102,
- _hoisted_103
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "OLED" }, {
- default: withCtx(() => [
- _hoisted_104,
- _hoisted_105,
- _hoisted_106,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "SSD1351" }, {
- default: withCtx(() => [
- _hoisted_107,
- _hoisted_108,
- _hoisted_109,
- _hoisted_110,
- _hoisted_111,
- _hoisted_112,
- _hoisted_113,
- _hoisted_114
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "SH1106" }, {
- default: withCtx(() => [
- _hoisted_115,
- _hoisted_116,
- _hoisted_117,
- _hoisted_118,
- _hoisted_119,
- _hoisted_120,
- _hoisted_121,
- _hoisted_122
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "SSD1306" }, {
- default: withCtx(() => [
- _hoisted_123
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "LD7032" }, {
- default: withCtx(() => [
- _hoisted_124,
- _hoisted_125,
- _hoisted_126,
- _hoisted_127,
- _hoisted_128,
- _hoisted_129,
- _hoisted_130,
- _hoisted_131
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Surface" }, {
- default: withCtx(() => [
- _hoisted_132,
- _hoisted_133,
- _hoisted_134,
- _hoisted_135,
- _hoisted_136,
- _hoisted_137,
- _hoisted_138,
- _hoisted_139,
- _hoisted_140,
- _hoisted_141,
- _hoisted_142,
- _hoisted_143,
- _hoisted_144,
- _hoisted_145,
- _hoisted_146,
- _hoisted_147,
- _hoisted_148,
- _hoisted_149
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- _hoisted_150,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "General Notes" }, {
- default: withCtx(() => [
- _hoisted_154,
- _hoisted_155,
- _hoisted_156,
- _hoisted_157,
- _hoisted_158
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Device Control" }, {
- default: withCtx(() => [
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "Display Initialisation" }, {
- default: withCtx(() => [
- _hoisted_159,
- _hoisted_160,
- _hoisted_161
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Display Power" }, {
- default: withCtx(() => [
- _hoisted_162,
- _hoisted_163,
- _hoisted_164,
- _hoisted_165
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Display Clear" }, {
- default: withCtx(() => [
- _hoisted_166,
- _hoisted_167
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Display Flush" }, {
- default: withCtx(() => [
- _hoisted_168,
- _hoisted_169,
- _hoisted_170,
- _hoisted_171
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Drawing Primitives" }, {
- default: withCtx(() => [
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "Set Pixel" }, {
- default: withCtx(() => [
- _hoisted_172,
- _hoisted_173,
- _hoisted_174,
- _hoisted_175
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Draw Line" }, {
- default: withCtx(() => [
- _hoisted_176,
- _hoisted_177,
- _hoisted_178
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Draw Rect" }, {
- default: withCtx(() => [
- _hoisted_179,
- _hoisted_180,
- _hoisted_181
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Draw Circle" }, {
- default: withCtx(() => [
- _hoisted_182,
- _hoisted_183,
- _hoisted_184
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Draw Ellipse" }, {
- default: withCtx(() => [
- _hoisted_185,
- _hoisted_186,
- _hoisted_187
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Image Functions" }, {
- default: withCtx(() => [
- _hoisted_188,
- _hoisted_189,
- _hoisted_190,
- _hoisted_191,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "Load Image" }, {
- default: withCtx(() => [
- _hoisted_192,
- _hoisted_193,
- _hoisted_194,
- _hoisted_195,
- _hoisted_196,
- _hoisted_197,
- _hoisted_198
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Unload Image" }, {
- default: withCtx(() => [
- _hoisted_199,
- _hoisted_200
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Draw image" }, {
- default: withCtx(() => [
- _hoisted_201,
- _hoisted_202,
- _hoisted_203
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Animate Image" }, {
- default: withCtx(() => [
- _hoisted_204,
- _hoisted_205,
- _hoisted_206,
- _hoisted_207,
- _hoisted_208
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Stop Animation" }, {
- default: withCtx(() => [
- _hoisted_209,
- _hoisted_210,
- _hoisted_211
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Font Functions" }, {
- default: withCtx(() => [
- _hoisted_212,
- _hoisted_213,
- _hoisted_214,
- _hoisted_215,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "Load Font" }, {
- default: withCtx(() => [
- _hoisted_216,
- _hoisted_217,
- _hoisted_218,
- _hoisted_219,
- _hoisted_220,
- _hoisted_221,
- _hoisted_222
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Unload Font" }, {
- default: withCtx(() => [
- _hoisted_223,
- _hoisted_224
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Measure Text" }, {
- default: withCtx(() => [
- _hoisted_225,
- _hoisted_226
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Draw Text" }, {
- default: withCtx(() => [
- _hoisted_227,
- _hoisted_228,
- _hoisted_229
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Advanced Functions" }, {
- default: withCtx(() => [
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "Getters" }, {
- default: withCtx(() => [
- _hoisted_230,
- createVNode(_component_PluginTabs, null, {
- default: withCtx(() => [
- createVNode(_component_PluginTabsTab, { label: "Width" }, {
- default: withCtx(() => [
- _hoisted_231
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Height" }, {
- default: withCtx(() => [
- _hoisted_232
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Rotation" }, {
- default: withCtx(() => [
- _hoisted_233
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Offset X" }, {
- default: withCtx(() => [
- _hoisted_234
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Offset Y" }, {
- default: withCtx(() => [
- _hoisted_235
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Everything" }, {
- default: withCtx(() => [
- _hoisted_236,
- _hoisted_237
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Set Viewport Offsets" }, {
- default: withCtx(() => [
- _hoisted_238,
- _hoisted_239
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Set Viewport" }, {
- default: withCtx(() => [
- _hoisted_240,
- _hoisted_241
- ]),
- _: 1
- }),
- createVNode(_component_PluginTabsTab, { label: "Stream Pixel Data" }, {
- default: withCtx(() => [
- _hoisted_242,
- _hoisted_243,
- _hoisted_244
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]),
- _: 1
- })
- ]);
- }
- const quantum_painter = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
- export {
- __pageData,
- quantum_painter as default
- };
|