| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551 |
- /*
- generate and update c/c++ files
- this also replaces the buildcpp tool
-
-
- Dec 2018:
- There are now two SSD13xx cad procedures:
- u8x8_cad_ssd13xx_i2c Put a I2C start/stop around each command and each argument --> many start/stop commands
- u8x8_cad_ssd13xx_fast_i2c Put a I2C start/stop around each command+arg sequence --> start/stop is probably halfed --> 4% faster
-
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <error.h>
- #include <ctype.h>
- #include <unistd.h>
- /*===========================================*/
- /* ll_hvline */
- #define U8X8_HVLINE "u8g2_ll_hvline_vertical_top_lsb"
- #define COM_4WSPI 0x0001
- #define COM_3WSPI 0x0002
- #define COM_6800 0x0004
- #define COM_8080 0x0008
- #define COM_I2C 0x0010
- #define COM_ST7920SPI 0x0020 /* mostly identical to COM_4WSPI, but does not use DC */
- #define COM_UART 0x0040
- #define COM_KS0108 0x0080 /* mostly identical to 6800 mode, but has more chip select lines */
- #define COM_SED1520 0x0100
- struct interface
- {
- const char *interface_name; /* SW_SPI */
- const char *setpin_function; /* u8x8_SetPin_4Wire_SW_SPI */
- const char *arduino_com_procedure; /* u8x8_byte_4wire_sw_spi */
- const char *arduino_gpio_procedure; /* u8x8_gpio_and_delay_arduino */
- const char *pins_with_type; /* uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE */
- const char *pins_plain; /* clock, data, cs, dc, reset */
- const char *pins_md_plain; /* clock, data, cs, dc, reset */
- const char *generic_com_procedure; /* u8x8_byte_4wire_sw_spi, this is used for documentation, so it suould be generic for all uC architectures */
- };
- struct display
- {
- /* this name must match the display part of the device procedure */
- /* u8x8_d_<controller>_<display> */
-
- const char *name;
- };
- struct controller
- {
- /* the name must match the controller part of the device procedure */
- /* u8x8_d_<controller>_<display> */
- const char *name;
-
- int tile_width;
- int tile_height;
- const char *ll_hvline;
- const char *cad;
- const char *cad_shortname;
- unsigned com;
- char *note;
- unsigned is_generate_u8g2_class; /* currently not used, instead conrolled by COM_UART */
- struct display display_list[16]; /* usually not used completly, but space does not matter much here */
- };
- /* issue #649 */
- /* display_controller_list_start */
- struct controller controller_list[] =
- {
- {
- "ssd1305", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32_noname" },
- { "128x32_adafruit" },
- { NULL }
- }
- },
- {
- "ssd1305", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32_noname" },
- { "128x32_adafruit" },
- { NULL }
- }
- },
- {
- "ssd1305", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_adafruit" },
- { "128x64_raystar" },
- { NULL }
- }
- },
- {
- "ssd1305", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_adafruit" },
- { "128x64_raystar" },
- { NULL }
- }
- },
- {
- "ssd1306", 255, 2, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "2040x16" },
- { NULL }
- }
- },
-
- {
- "ssd1306", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { "128x64_vcomh0" },
- { "128x64_alt0" },
- { NULL }
- }
- },
- {
- "ssd1306", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { "128x64_vcomh0" },
- { "128x64_alt0" },
- { NULL }
- }
- },
- {
- "ssd1312", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { NULL }
- }
- },
- {
- "ssd1312", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { NULL }
- }
- },
- {
- "ssd1306", 9, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "72x40_er" },
- { NULL }
- }
- },
- {
- "ssd1306", 9, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "72x40_er" },
- { NULL }
- }
- },
- {
- "ssd1306", 12, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x40" },
- { "96x39" },
- { NULL }
- }
- },
- {
- "ssd1306", 12, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x40" },
- { "96x39" },
- { NULL }
- }
- },
- {
- "sh1106", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { "128x64_vcomh0" },
- { "128x64_winstar" },
- { NULL }
- }
- },
- {
- "sh1106", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { "128x64_vcomh0" },
- { "128x64_winstar" },
- { NULL }
- }
- },
- {
- "sh1106", 9, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "72x40_wise" },
- { NULL }
- }
- },
- {
- "sh1106", 9, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "72x40_wise" },
- { NULL }
- }
- },
- {
- "sh1106", 8, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "64x32" },
- { NULL }
- }
- },
- {
- "sh1106", 8, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "64x32" },
- { NULL }
- }
- },
-
- {
- "sh1107", 8, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "64x128" },
- { NULL }
- }
- },
- {
- "sh1107", 8, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "64x128" },
- { NULL }
- }
- },
-
- {
- "sh1107", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "seeed_96x96" },
- { "hjr_oel1m0201_96x96" },
- { NULL }
- }
- },
- {
- "sh1107", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "seeed_96x96" },
- { "hjr_oel1m0201_96x96" },
- { NULL }
- }
- },
- {
- "sh1107", 10, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x80" }, /* actually this is a 80x128 display */
- { "tk078f288_80x128" },
- { NULL }
- }
- },
- {
- "sh1107", 10, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x80" }, /* actually this is a 80x128 display */
- { "tk078f288_80x128" },
- { NULL }
- }
- },
- {
- "sh1107", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" }, // not tested
- { "pimoroni_128x128" }, // not tested
- { "seeed_128x128" }, // in lab
- { NULL }
- }
- },
- {
- "sh1107", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" }, // not tested
- { "pimoroni_128x128" }, // not tested
- { "seeed_128x128" }, // in lab
- { NULL }
- }
- },
- {
- "sh1108", 16, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x160" },
- { NULL }
- }
- },
- {
- "sh1108", 16, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x160" },
- { NULL }
- }
- },
- {
- "ch1120", 16, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x160" },
- { NULL }
- }
- },
- {
- "ch1120", 16, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x160" },
- { NULL }
- }
- },
-
- {
- "sh1108", 20, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "160x160" },
- { NULL }
- }
- },
- {
- "sh1108", 20, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "160x160" },
- { NULL }
- }
- },
-
- {
- "sh1122", 32, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64" },
- { NULL }
- }
- },
- {
- "sh1122", 32, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64" },
- { NULL }
- }
- },
- {
- "ssd1306", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32_univision" },
- { "128x32_winstar" },
- { NULL }
- }
- },
- {
- "ssd1306", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32_univision" },
- { "128x32_winstar" },
- { NULL }
- }
- },
- {
- "ssd1306", 13, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "102x64_ea_oleds102" },
- { NULL }
- }
- },
- {
- "ssd1306", 13, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "102x64_ea_oleds102" },
- { NULL }
- }
- },
-
- {
- "sh1106", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32_visionox" },
- { NULL }
- }
- },
- {
- "sh1106", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32_visionox" },
- { NULL }
- }
- },
- {
- "ssd1306", 8, 6, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x48_er" },
- { NULL }
- }
- },
- {
- "ssd1306", 8, 6, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x48_er" },
- { NULL }
- }
- },
-
- {
- "ssd1306", 6, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "48x64_winstar" },
- { NULL }
- }
- },
- {
- "ssd1306", 6, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "48x64_winstar" },
- { NULL }
- }
- },
- {
- "ssd1306", 8, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x32_noname" },
- { "64x32_1f" },
- { NULL }
- }
- },
- {
- "ssd1306", 8, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x32_noname" },
- { "64x32_1f" },
- { NULL }
- }
- },
- {
- "ssd1306", 12, 2, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x16_er" },
- { NULL }
- }
- },
- {
- "ssd1306", 12, 2, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x16_er" },
- { NULL }
- }
- },
-
-
- {
- "ssd1309", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname2" },
- { NULL }
- }
- },
- {
- "ssd1309", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname2" },
- { NULL }
- }
- },
-
- {
- "ssd1309", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname0" },
- { NULL }
- }
- },
- {
- "ssd1309", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname0" },
- { NULL }
- }
- },
- {
- "ssd1309", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128_noname0" },
- { NULL }
- }
- },
- {
- "ssd1309", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128_noname0" },
- { NULL }
- }
- },
-
-
- {
- "ssd1312", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "ssd1312", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "ssd1312", 15, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "120x32" },
- { "120x28" },
- { NULL }
- }
- },
- {
- "ssd1312", 15, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "120x32" },
- { "120x28" },
- { NULL }
- }
- },
-
- /* https://github.com/olikraus/u8g2/issues/919 */
- {
- "ssd1316", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "ssd1316", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
-
- /* https://github.com/olikraus/u8g2/issues/1938 */
- {
- "ssd1316", 12, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x32" },
- { NULL }
- }
- },
- {
- "ssd1316", 12, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x32" },
- { NULL }
- }
- },
- {
- "ssd1317", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x96" },
- { NULL }
- }
- },
- {
- "ssd1317", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x96" },
- { NULL }
- }
- },
-
- /* issue 784 */
- {
- "ssd1318", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x96" },
- { "128x96_xcp" }, // with external charge pump
- { NULL }
- }
- },
- {
- "ssd1318", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x96" },
- { "128x96_xcp" }, // with external charge pump
- { NULL }
- }
- },
-
-
- {
- "ssd1325", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_128x64" },
- { NULL }
- }
- },
- {
- "ssd1325", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_128x64" },
- { NULL }
- }
- },
- {
- "ssd0323", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "os128064" },
- { NULL }
- }
- },
- {
- "ssd0323", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "os128064" },
- { NULL }
- }
- },
- {
- "ssd1326", 32, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "er_256x32" },
- { NULL }
- }
- },
- {
- "ssd1326", 32, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "er_256x32" },
- { NULL }
- }
- },
-
- {
- "ssd1327", 12, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ws_96x64" },
- { NULL }
- }
- },
- {
- "ssd1327", 12, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ws_96x64" },
- { NULL }
- }
- },
- {
- "ssd1327", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "seeed_96x96" },
- { NULL }
- }
- },
- {
- "ssd1327", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "seeed_96x96" },
- { NULL }
- }
- },
- {
- "ssd1327", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_w128128" },
- { "midas_128x128" },
- { "zjy_128x128" }, /* issue 1960 */
- { "ws_128x128" },
- { NULL }
- }
- },
- {
- "ssd1327", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_w128128" },
- { "midas_128x128" },
- { "zjy_128x128" }, /* issue 2407 */
- { "ws_128x128" },
- { NULL }
- }
- },
-
- {
- "ssd1327", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "visionox_128x96" },
- { NULL }
- }
- },
- {
- "ssd1327", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "visionox_128x96" },
- { NULL }
- }
- },
-
- {
- "ssd1329", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x96_noname" },
- { NULL }
- }
- },
- {
- "ssd1329", 12, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x96_noname" },
- { NULL }
- }
- },
-
- {
- "ld7032", 8, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "60x32" },
- { "60x32_alt" },
- { NULL }
- }
- },
- {
- "ld7032", 8, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_ld7032_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "60x32" },
- { "60x32_alt" },
- { NULL }
- }
- },
- {
- "ld7032", 16, 5, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x36" },
- { NULL }
- }
- },
- {
- "ld7032", 16, 5, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_ld7032_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x36" },
- { NULL }
- }
- },
-
- {
- "st7920", 32, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "p", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x32" },
- { NULL }
- }
- },
- {
- "st7920", 32, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_6800,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x32" },
- { NULL }
- }
- },
- {
- "st7920", 32, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_st7920_spi", "s", COM_ST7920SPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x32" },
- { NULL }
- }
- },
- {
- "st7920", 18, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "p", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "144x32" },
- { NULL }
- }
- },
- {
- "st7920", 18, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_6800,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "144x32" },
- { NULL }
- }
- },
- {
- "st7920", 18, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_st7920_spi", "s", COM_ST7920SPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "144x32" },
- { NULL }
- }
- },
- {
- "st7920", 16, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "p", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "st7920", 16, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_6800,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "st7920", 16, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_st7920_spi", "s", COM_ST7920SPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
-
- {
- "st7920", 20, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "p", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x32" },
- { NULL }
- }
- },
- {
- "st7920", 20, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_6800,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x32" },
- { NULL }
- }
- },
- {
- "st7920", 20, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_st7920_spi", "s", COM_ST7920SPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x32" },
- { NULL }
- }
- },
-
-
- {
- "st7920", 24, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "p", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x32" },
- { NULL }
- }
- },
- {
- "st7920", 24, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_6800,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x32" },
- { NULL }
- }
- },
- {
- "st7920", 24, 4, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_st7920_spi", "s", COM_ST7920SPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x32" },
- { NULL }
- }
- },
-
- {
- "st7920", 16, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "p", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
- {
- "st7920", 16, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_6800,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
- {
- "st7920", 16, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_st7920_spi", "s", COM_ST7920SPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
- {
- "ls013b7dh03", 16, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_4WSPI, /* cad procedure is not required (no DC for this display) so it could be a dummy procedure here */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" },
- { NULL }
- }
- },
- {
- "ls027b7dh01", 50, 30, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_4WSPI, /* cad procedure is not required (no DC for this display) so it could be a dummy procedure here */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "400x240" }, // SPI Mode 2
- { "m0_400x240" }, // SPI Mode 0
- { NULL }
- }
- },
- {
- "ls013b7dh05", 18, 21, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_4WSPI, /* cad procedure is not required (no DC for this display) so it could be a dummy procedure here */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "144x168" },
- { NULL }
- }
- },
- {
- "ls011b7dh03", 20, 9, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_4WSPI, /* cad procedure is not required (no DC for this display) so it could be a dummy procedure here */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x68" },
- { NULL }
- }
- },
-
- {
- "uc1701", 13, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogs102" },
- { NULL }
- }
- },
- {
- "uc1701", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "mini12864" },
- { NULL }
- }
- },
- {
- "pcd8544", 11, 6, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI,
- "No HW flip", /* is_generate_u8g2_class= */ 1,
- {
- { "84x48" },
- { NULL }
- }
- },
- {
- "pcf8812", 12, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI,
- "No HW flip", /* is_generate_u8g2_class= */ 1,
- {
- { "96x65" },
- { NULL }
- }
- },
- {
- "pcf8812", 13, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI,
- "No HW flip", /* is_generate_u8g2_class= */ 1,
- {
- { "101x64" },
- { NULL }
- }
- },
- {
- "hx1230", 12, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI,
- "No HW flip", /* is_generate_u8g2_class= */ 1,
- {
- { "96x68" },
- { NULL }
- }
- },
- {
- "uc1604", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx19264" },
- { NULL }
- }
- },
- {
- "uc1604", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx19264" },
- { NULL }
- }
- },
- {
- "uc1604", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx12864" },
- { NULL }
- }
- },
- {
- "uc1604", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx12864" },
- { NULL }
- }
- },
- {
- "uc1608", 30, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc24064" },
- { "dem240064" },
- { NULL }
- }
- },
- {
- "uc1608", 30, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc24064" },
- { "dem240064" },
- { NULL }
- }
- },
- {
- "uc1608", 30, 15, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc240120" },
- { NULL }
- }
- },
- {
- "uc1608", 30, 15, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc240120" },
- { NULL }
- }
- },
- {
- "uc1608", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
- {
- "uc1608", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
- {
- "uc1609", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "slg19264" },
- { NULL }
- }
- },
- {
- "uc1609", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "slg19264" },
- { NULL }
- }
- },
- {
- "uc1628", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
- {
- "uc1628", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "NOT TESTED, CAD not checked", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
-
- {
- "uc1628", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x128" },
- { NULL }
- }
- },
- {
- "uc1628", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "NOT TESTED, CAD not checked", /* is_generate_u8g2_class= */ 1,
- {
- { "256x128" },
- { NULL }
- }
- },
-
- {
- "uc1628", 32, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x32" },
- { NULL }
- }
- },
- {
- "uc1628", 32, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "NOT TESTED, CAD not checked", /* is_generate_u8g2_class= */ 1,
- {
- { "256x32" },
- { NULL }
- }
- },
-
-
- {
- "uc1638", 20, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x128" },
- { NULL }
- }
- },
- {
- "uc1638", 24, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x96" },
- { NULL }
- }
- },
- {
- "uc1638", 24, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc1638_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x96" },
- { NULL }
- }
- },
- {
- "uc1638", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
- {
- "uc1638", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc1638_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
-
- //{
- /* this device requires cd=1 for arguments, not clear whether the u8x8_cad_uc16xx_i2c works */
- //"uc1638", 20, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- //"", /* is_generate_u8g2_class= */ 1,
- //{
- // { "160x128" },
- // { NULL }
- //}
- //},
-
- {
- "uc1610", 20, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "3W SPI not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogxl160" },
- { NULL }
- }
- },
- {
- "uc1610", 20, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "3W SPI not tested, I2C not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogxl160" },
- { NULL }
- }
- },
- {
- "uc1611", 30, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogm240" },
- { NULL }
- }
- },
- {
- "uc1611", 30, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogm240" },
- { NULL }
- }
- },
- {
- "uc1611", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogxl240" },
- { NULL }
- }
- },
- {
- "uc1611", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogxl240" },
- { NULL }
- }
- },
- {
- "uc1611", 30, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "240x160, active high chip select", /* is_generate_u8g2_class= */ 1,
- {
- { "ew50850" }, /* 240x160 */
- { NULL }
- }
- },
- {
- "uc1611", 30, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "240x160, active high chip select", /* is_generate_u8g2_class= */ 1,
- {
- { "ew50850" }, /* 240x160 */
- { NULL }
- }
- },
-
- {
- "uc1611", 20, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "use CS0 as chips select", /* is_generate_u8g2_class= */ 1,
- {
- { "cg160160" },
- { NULL }
- }
- },
- {
- "uc1611", 20, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "cg160160" },
- { NULL }
- }
- },
- {
- "uc1611", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ids4073" },
- { NULL }
- }
- },
- {
- "uc1611", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ids4073" },
- { NULL }
- }
- },
-
- {
- "uc1698", 20, 20, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x160" },
- { NULL }
- }
- },
- {
- "st7511", 40, 30, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "avd_320x240" }, /* 320x240 */
- { NULL }
- }
- },
- {
- "st7511", 80, 40, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "640x320" },
- { NULL }
- }
- },
- {
- "st7528", 20, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_c160100" },
- { NULL }
- }
- },
- {
- "st7528", 20, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_c160100" },
- { NULL }
- }
- },
-
- {
- "st7528", 20, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc16064" },
- { NULL }
- }
- },
- {
- "st7528", 20, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc16064" },
- { NULL }
- }
- },
-
- {
- "uc1617", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx128128" },
- { NULL }
- }
- },
- {
- "uc1617", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx128128" },
- { NULL }
- }
- },
-
- {
- "st7565", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogm128" },
- { "lm6063" }, /* https://github.com/olikraus/u8g2/issues/893 */
- { "64128n" },
- { "zolen_128x64" },
- { "lm6059" },
- { "ks0713" }, /* KS0713 chip, which seems to be almost compatible to ST7565 */
- { "lx12864" },
- { "erc12864" },
- { "erc12864_alt" }, /* issue 790 */
- { "nhd_c12864" },
- { "jlx12864" },
- { NULL }
- },
- },
- {
- "st7565", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_c12832" },
- { NULL }
- }
- },
-
- {
- "st7539", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x64" },
- { NULL }
- }
- },
- {
- "st7539", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "192x64" },
- { NULL }
- }
- },
-
-
- {
- "uc1601", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "uc1601", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x32" },
- { NULL }
- }
- },
- {
- "uc1601", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
- {
- "uc1601", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_uc16xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
-
- {
- "st7565", 17, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "ea_dogm132" },
- { NULL }
- }
- },
-
-
- /* https://www.crystalfontz.com/controllers/Sitronix/ST7567A/ supports I2C */
-
- {
- "st7567", 17, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "pi_132x64" },
- { NULL }
- }
- },
- {
- "st7567", 17, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "pi_132x64" },
- { NULL }
- }
- },
-
- {
- "st7567", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx12864" },
- { "enh_dg128064" },
- { "enh_dg128064i" },
- { "os12864" },
- { NULL }
- }
- },
- {
- "st7567", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx12864" },
- { "enh_dg128064" },
- { "enh_dg128064i" },
- { "os12864" },
- { NULL }
- }
- },
- {
- "st7567", 17, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc13232" },
- { NULL }
- }
- },
- {
- "st7567", 17, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc13232" },
- { NULL }
- }
- },
- {
- "st7567", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc12864" },
- { NULL }
- }
- },
- {
- "st7567", 12, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x65" },
- { NULL }
- }
- },
- {
- "st7567", 12, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "96x65" },
- { NULL }
- }
- },
-
- {
- "st7567", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "122x32" },
- { NULL }
- }
- },
- {
- "st7567", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "122x32" },
- { NULL }
- }
- },
-
- {
- "st7567", 8, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x32" },
- { "hem6432" },
- { NULL }
- }
- },
- {
- "st7567", 8, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x32" },
- { "hem6432" },
- { NULL }
- }
- },
- {
- "st7567", 17, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "lw12832" },
- { "yxd12832" },
- { NULL }
- }
- },
- {
- "st7567", 17, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "lw12832" },
- { NULL }
- }
- },
-
-
-
- {
- "st7571", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" },
- { NULL }
- }
- },
- {
- "st7571", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" },
- { NULL }
- }
- },
- {
- "st7571", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x96" },
- { "g12896" },
- { NULL }
- }
- },
- {
- "st7571", 16, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x96" },
- { "g12896" },
- { NULL }
- }
- },
- {
- "st7302", 16, 32, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "122X250" },
- { NULL }
- },
- },
-
- {
- "st7305", 16, 32, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "122X250" },
- { NULL }
- },
- },
- {
- /* the st7305 requires 12pixel blocks --> 204x200, but u8x8 requires tiles, so we have 208x200 (26x25) */
- "st7305", 26, 25, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "200X200" },
- { NULL }
- },
- },
- {
- "st7305", 21, 48, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "168X384" }, /* https://github.com/olikraus/u8g2/issues/2702 */
- { NULL }
- },
- },
-
- {
- "st7586s", 48, 17, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "s028hn118a" },
- { NULL }
- },
- },
- {
- "st7586s", 48, 20, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx384160" },
- { NULL }
- },
- },
-
- {
- "st7586s", 30, 20, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc240160" },
- { "ymc240160" },
- { NULL }
- },
- },
- {
- /* tile width is little bit larger, 42*8=336 so that it can be devided by 3 and 8 */
- "st7586s", 42, 20, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx320160" },
- { NULL }
- },
- },
-
- {
- "st7586s", 30, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "md240128" },
- { NULL }
- },
- },
-
-
- {
- "st7588", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx12864" },
- { NULL }
- },
- },
- { /* the ST7588 has the same I2C protocol as the SSD13xx */
- "st7588", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx12864" },
- { NULL }
- }
- },
- {
- "st75160", 20, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jm16096" },
- { NULL }
- },
- },
- /* takeover i2c from ST75256 (not sure whether this is correct: */
- /* the ST75256 has the same I2C protocol as the SSD13xx, BUT: for arguments have the data bit set!!!! */
- /* this means, we need to implement a u8x8_cad_ssd13xx_i2c procedure with cad 011 functionality */
- /* done: u8x8_cad_st75256_i2c */
- {
- "st75160", 20, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jm16096" },
- { NULL }
- }
- },
- {
- "st75161", 20, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx160160" },
- { NULL }
- },
- },
- /* takeover i2c from ST75256 (not sure whether this is correct */
- {
- "st75161", 20, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx160160" },
- { NULL }
- }
- },
-
- {
- "st75256", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx256128" },
- { "wo256x128" },
- { NULL }
- },
- },
- /* the ST75256 has the same I2C protocol as the SSD13xx, BUT: for arguments have the data bit set!!!! */
- /* this means, we need to implement a u8x8_cad_ssd13xx_i2c procedure with cad 011 functionality */
- /* done: u8x8_cad_st75256_i2c */
- {
- "st75256", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx256128" },
- { "wo256x128" },
- { NULL }
- }
- },
- {
- "st75256", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" }, /* https://github.com/olikraus/u8g2/issues/2702 */
- { NULL }
- },
- },
- {
- "st75256", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" }, /* https://github.com/olikraus/u8g2/issues/2702 */
- { NULL }
- }
- },
- {
- "st75256", 32, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx256160" },
- { "jlx256160m" },
- { "jlx256160_alt" },
- { NULL }
- },
- },
- /* the ST75256 has the same I2C protocol as the SSD13xx, BUT: for arguments have the data bit set!!!! */
- /* this means, we need to implement a u8x8_cad_ssd13xx_i2c procedure with cad 011 functionality */
- /* done: u8x8_cad_st75256_i2c */
- {
- "st75256", 32, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx256160" },
- { "jlx256160m" },
- { "jlx256160_alt" },
- { NULL }
- }
- },
-
- {
- "st75256", 30, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx240160" },
- { NULL }
- },
- },
- {
- "st75256", 30, 20, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx240160" },
- { NULL }
- }
- },
- {
- "st75256", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx25664" },
- { NULL }
- },
- },
- {
- "st75256", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx25664" },
- { NULL }
- }
- },
-
- {
- "st75256", 22, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx172104" },
- { NULL }
- },
- },
-
- {
- "st75256", 22, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx172104" },
- { NULL }
- },
- },
- {
- "st75256", 24, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx19296" },
- { NULL }
- },
- },
-
- {
- "st75256", 24, 12, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx19296" },
- { NULL }
- },
- },
- {
- "st75256", 20, 10, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx16080" },
- { NULL }
- },
- },
-
- {
- "st75256", 20, 10, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx16080" },
- { NULL }
- },
- },
- {
- "st75320", 40, 30, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx320240" },
- { NULL }
- },
- },
-
- {
- "st75320", 40, 30, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_st75256_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "jlx320240" },
- { NULL }
- },
- },
-
-
- {
- "nt7534", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "tg12864r" },
- { NULL }
- }
- },
- {
- "ist3020", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erc19264" },
- { NULL }
- }
- },
- {
- "ist3088", 40, 30, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "320x240" },
- { NULL }
- }
- },
- {
- "ist7920", 16, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" },
- { NULL }
- }
- },
- {
- "sbn1661", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_SED1520,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "122x32" },
- { NULL }
- },
- },
- {
- "sed1520", 16, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_SED1520,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "122x32" },
- { NULL }
- },
- },
-
- {
- "ks0108", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_KS0108,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- },
- },
- {
- "ks0108", 24, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_KS0108,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "erm19264" },
- { NULL }
- },
- },
- {
- "t7932", 19, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_KS0108,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "150x32" }, /* compatible with hd44102 */
- { NULL }
- },
- },
- {
- "hd44102", 13, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_KS0108,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "100x64" }, /* compatible with t7932 */
- { NULL }
- },
- },
-
-
- {
- "lc7981", 20, 10, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800,
- "U8x8 not supported, no powerdown, no HW flip, no constrast", /* is_generate_u8g2_class= */ 1,
- {
- { "160x80" },
- { NULL }
- }
- },
- {
- "lc7981", 20, 20, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800,
- "U8x8 not supported, no powerdown, no HW flip, no constrast", /* is_generate_u8g2_class= */ 1,
- {
- { "160x160" },
- { NULL }
- }
- },
- {
- "lc7981", 30, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800,
- "U8x8 not supported, no powerdown, no HW flip, no constrast", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
- {
- "lc7981", 30, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800,
- "U8x8 not supported, no powerdown, no HW flip, no constrast", /* is_generate_u8g2_class= */ 1,
- {
- { "240x64" },
- { NULL }
- }
- },
- {
- "lc7981", 16, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800,
- "U8x8 not supported, no powerdown, no HW flip, no constrast", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" },
- { NULL }
- }
- },
-
- {
- "t6963", 30, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
- {
- "t6963", 30, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x64" },
- { NULL }
- }
- },
- {
- "t6963", 32, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64" },
- { NULL }
- }
- },
- {
- "t6963", 16, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { "128x64_alt" },
- { NULL }
- }
- },
- {
- "t6963", 20, 10, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "160x80" },
- { NULL }
- }
- },
- {
- "t6963", 16, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "128x128" },
- { NULL }
- }
- },
- {
- "t6963", 16, 20, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_8080,
- "Not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "128x160" },
- { NULL }
- }
- },
- {
- "ssd1320", 20, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x32" },
- { NULL }
- }
- },
- {
- "ssd1320", 16, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x72" },
- { NULL }
- }
- },
- {
- "ssd1320", 20, 17, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x132" },
- { NULL }
- }
- },
- {
- "ssd1320", 20, 10, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x80" },
- { NULL }
- }
- },
- {
- "ssd1320", 20, 10, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x80" },
- { NULL }
- }
- },
-
- {
- "ssd1322", 30, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { "topwin_240x128" },
- { NULL }
- }
- },
- {
- "ssd1322", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "Requires U8G2_16BIT (see u8g2.h)", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_256x64" },
- { "zjy_256x64" },
- { NULL }
- }
- },
- {
- "ssd1322", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_128x64" },
- { NULL }
- }
- },
- {
- "ssd1362z", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI,
- "Requires U8G2_16BIT (see u8g2.h)", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64_OEL1M0033WE" },
- { NULL }
- }
- },
- {
- "ssd1362z", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C, // not tested
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64_OEL1M0033WE" },
- { NULL }
- }
- },
- {
- "ssd1362", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "Requires U8G2_16BIT (see u8g2.h)", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64" },
- { NULL }
- }
- },
- {
- "ssd1362", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C, // not tested
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x64" },
- { NULL }
- }
- },
- {
- "ssd1362", 26, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "Requires U8G2_16BIT (see u8g2.h)", /* is_generate_u8g2_class= */ 1,
- {
- { "206x36" },
- { NULL }
- }
- },
- {
- "ssd1362", 26, 5, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C, // not tested
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "206x36" },
- { NULL }
- }
- },
- {
- "ssd1363", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI|COM_6800|COM_8080,
- "Requires U8G2_16BIT (see u8g2.h)", /* is_generate_u8g2_class= */ 1,
- {
- { "256x128" },
- { NULL }
- }
- },
- {
- "ssd1363", 32, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011_ssd13xx_i2c", "i2c", COM_I2C, // not tested
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x128" },
- { NULL }
- }
- },
-
-
- {
- "ssd1606", 22, 9, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI,
- "Partly supported by U8x8, no HW flip, no contrast setting", /* is_generate_u8g2_class= */ 1,
- {
- { "172x72" },
- { NULL }
- }
- },
- {
- "ssd1607", 25, 25, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI,
- "Partly supported by U8x8, no HW flip, no contrast setting, v2 includes an optimized LUT", /* is_generate_u8g2_class= */ 1,
- {
- { "200x200" },
- { "gd_200x200" }, // GDEP015OC1
- { "ws_200x200" }, // Waveshare issue #637
- { NULL }
- }
- },
- {
- "il3820", 37, 16, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_3WSPI,
- "Partly supported by U8x8, no HW flip, no contrast setting, V2 produces lesser screen-flicker", /* is_generate_u8g2_class= */ 1,
- {
- { "296x128" },
- { "v2_296x128" },
- { NULL }
- }
- },
- {
- "sed1330", 30, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800|COM_8080,
- "Not tested, might work for RA8835 and SED1335 also", /* is_generate_u8g2_class= */ 1,
- {
- { "240x128" },
- { NULL }
- }
- },
- {
- "sed1330", 30, 8, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800|COM_8080,
- "Not tested, might work for RA8835 and SED1335 also", /* is_generate_u8g2_class= */ 1,
- {
- { "240x64" },
- { NULL }
- }
- },
- {
- "sed1330", 32, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800|COM_8080,
- "Not tested, might work for RA8835 and SED1335 also", /* is_generate_u8g2_class= */ 1,
- {
- { "256x128" },
- { NULL }
- }
- },
- {
- "ra8835", 30, 16, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800|COM_8080,
- "Tested with RA8835", /* is_generate_u8g2_class= */ 1,
- {
- { "nhd_240x128" },
- { NULL }
- }
- },
- {
- "ra8835", 40, 30, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800|COM_8080,
- "not tested", /* is_generate_u8g2_class= */ 1,
- {
- { "320x240" },
- { NULL }
- }
- },
- {
- "sed1330", 40, 25, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_100", "", COM_6800|COM_8080,
- "Not tested, might work for RA8835 and SED1335 also", /* is_generate_u8g2_class= */ 1,
- {
- { "320x200" },
- { NULL }
- }
- },
- {
- "max7219", 8, 1, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_empty", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "64x8" },
- { NULL }
- }
- },
- {
- "max7219", 4, 1, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_empty", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "32x8" },
- { NULL }
- }
- },
- #ifdef NOT_POSSIBLE
- {
- "max7219", 2, 2, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_empty", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "16x16" },
- { NULL }
- }
- },
- #endif
- {
- "max7219", 1, 1, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_empty", "", COM_4WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "8x8" },
- { NULL }
- }
- },
-
-
- { /* cad001 or cad011: this controller doesn't contain two byte commands, argument is not required */
- "s1d15300", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "lm6023" }, /* 128x64 */
- { NULL }
- }
- },
-
- { /* cad001 or cad011: this controller doesn't contain two byte commands, argument is not required */
- "s1d15300", 13, 4, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "97x32" },
- { "100x32" },
- { "100x32i" }, // inverted CS line
- { NULL }
- }
- },
-
- {
- "s1d15e06", 20, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160100" },
- { NULL }
- }
- },
-
- {
- "s1d15721", 20, 13, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_011", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "240x64" },
- { NULL }
- }
- },
- {
- "gu800", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_gu800_cad_110", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64" },
- { NULL }
- }
- },
- {
- "gu800", 20, 2, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_gu800_cad_110", "", COM_4WSPI|COM_6800|COM_8080,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "160x16" },
- { NULL }
- }
- },
- {
- "gp1287ai", 32, 7, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_empty", "", COM_4WSPI, /* DC pin is not used */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x50" },
- { NULL }
- }
- },
- {
- "gp1247ai", 32, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_empty", "", COM_4WSPI, /* DC pin is not used */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "253x63" },
- { NULL }
- }
- },
- {
- "gp1294ai", 32, 6, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_empty", "", COM_4WSPI, /* DC pin is not used */
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "256x48" },
- { NULL }
- }
- },
-
- {
- "a2printer", 48, 30, "u8g2_ll_hvline_horizontal_right_lsb", "u8x8_cad_empty", "", COM_UART,
- "", /* is_generate_u8g2_class= */ 0,
- {
- { "384x240" },
- { NULL }
- }
- },
- {
- "ssd1315", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_001", "", COM_4WSPI|COM_3WSPI,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { NULL }
- }
- },
- {
- "ssd1315", 16, 8, "u8g2_ll_hvline_vertical_top_lsb", "u8x8_cad_ssd13xx_fast_i2c", "i2c", COM_I2C,
- "", /* is_generate_u8g2_class= */ 1,
- {
- { "128x64_noname" },
- { NULL }
- }
- }
- };
- /* display_controller_list_end */
- struct interface interface_list[] =
- {
- /* 0 */
- {
- "4W_SW_SPI",
- "u8x8_SetPin_4Wire_SW_SPI",
- "u8x8_byte_arduino_4wire_sw_spi", /* improved version over u8x8_byte_4wire_sw_spi */
- "u8x8_gpio_and_delay_arduino",
- "uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE",
- "clock, data, cs, dc, reset",
- "clk, data, cs, dc [, reset]",
- "u8x8_byte_4wire_sw_spi"
- },
- /* 1 */
- {
- "4W_HW_SPI",
- "u8x8_SetPin_4Wire_HW_SPI",
- "u8x8_byte_arduino_hw_spi",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE",
- "cs, dc, reset",
- "cs, dc [, reset]",
- "uC specific"
- },
- /* 2 */
- {
- "6800",
- "u8x8_SetPin_8Bit_6800",
- "u8x8_byte_8bit_6800mode",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE",
- "d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset",
- "d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc [, reset]",
- "u8x8_byte_8bit_6800mode"
- },
- /* 3 */
- {
- "8080",
- "u8x8_SetPin_8Bit_8080",
- "u8x8_byte_arduino_8bit_8080mode",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE",
- "d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset",
- "d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc [, reset]",
- "u8x8_byte_8bit_8080mode"
- },
- /* 4 */
- {
- "3W_SW_SPI",
- "u8x8_SetPin_3Wire_SW_SPI",
- "u8x8_byte_arduino_3wire_sw_spi",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE",
- "clock, data, cs, reset",
- "clk, data, cs [, reset]",
- "u8x8_byte_3wire_sw_spi"
- },
- /* 5 */
- {
- "3W_HW_SPI",
- "u8x8_SetPin_3Wire_HW_SPI",
- "u8x8_byte_arduino_3wire_hw_spi",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t cs, uint8_t reset = U8X8_PIN_NONE",
- "cs, reset",
- "cs [, reset]",
- "uC specific"
- },
- /* 6 */
- {
- "SW_I2C",
- "u8x8_SetPin_SW_I2C",
- "u8x8_byte_arduino_sw_i2c" /* u8x8_byte_sw_i2c */,
- "u8x8_gpio_and_delay_arduino",
- "uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE",
- "clock, data, reset",
- "clk, data [, reset]",
- "u8x8_byte_sw_i2c" /* u8x8_byte_sw_i2c */
- },
- /* 7 */
- {
- "HW_I2C",
- "u8x8_SetPin_HW_I2C",
- "u8x8_byte_arduino_hw_i2c",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t reset = U8X8_PIN_NONE, uint8_t clock = U8X8_PIN_NONE, uint8_t data = U8X8_PIN_NONE",
- "reset, clock, data",
- "[reset [, clk, data]]",
- "uC specific"
- },
- /* 8 */
- {
- /* ST7920 */ "SW_SPI",
- "u8x8_SetPin_3Wire_SW_SPI", /* use the 3 wire interface, because the DC is not used */
- "u8x8_byte_arduino_4wire_sw_spi", /* improved version over u8x8_byte_4wire_sw_spi */
- "u8x8_gpio_and_delay_arduino",
- "uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE",
- "clock, data, cs, reset",
- "clk, data, cs [, reset]",
- "u8x8_byte_4wire_sw_spi", /* "u8x8_byte_st7920_sw_spi" */
- },
- /* 9 */
- {
- /* ST7920 */ "HW_SPI",
- "u8x8_SetPin_ST7920_HW_SPI",
- "u8x8_byte_arduino_hw_spi",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t cs, uint8_t reset = U8X8_PIN_NONE",
- "cs, reset",
- "cs [, reset]",
- "uC specific"
- },
- /* 10 */
- {
- "2ND_HW_I2C",
- "u8x8_SetPin_HW_I2C",
- "u8x8_byte_arduino_2nd_hw_i2c",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t reset = U8X8_PIN_NONE",
- "reset",
- "[reset]",
- "uC specific"
- },
- /* 11 */
- {
- "",
- "u8x8_SetPin_KS0108",
- "u8x8_byte_arduino_ks0108",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t dc, uint8_t cs0, uint8_t cs1, uint8_t cs2, uint8_t reset = U8X8_PIN_NONE",
- "d0, d1, d2, d3, d4, d5, d6, d7, enable, dc, cs0, cs1, cs2, reset",
- "d0, d1, d2, d3, d4, d5, d6, d7, enable, dc, cs0, cs1, cs2 [, reset]",
- "u8x8_byte_ks0108"
- },
- /* 12 */
- {
- "2ND_4W_HW_SPI",
- "u8x8_SetPin_4Wire_HW_SPI",
- "u8x8_byte_arduino_2nd_hw_spi",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE",
- "cs, dc, reset",
- "cs, dc [, reset]",
- "uC specific"
- },
- /* 13 */
- {
- "",
- "u8x8_SetPin_SED1520",
- "u8x8_byte_sed1520",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t dc, uint8_t e1, uint8_t e2, uint8_t reset",
- "d0, d1, d2, d3, d4, d5, d6, d7, dc, e1, e2, reset",
- "d0, d1, d2, d3, d4, d5, d6, d7, dc, e1, e2, reset",
- "u8x8_byte_sed1520"
- },
- /* 14 */
- {
- /* ST7920 */ "2ND_HW_SPI",
- "u8x8_SetPin_ST7920_HW_SPI",
- "u8x8_byte_arduino_2nd_hw_spi",
- "u8x8_gpio_and_delay_arduino",
- "uint8_t cs, uint8_t reset = U8X8_PIN_NONE",
- "cs, reset",
- "cs [, reset]",
- "uC specific"
- },
-
-
- };
- /*===========================================*/
- #define STR_MAX 1024
- char *str_list[STR_MAX];
- int str_cnt = 0 ;
- int str_exists(const char *s)
- {
- int i;
- for( i = 0; i < str_cnt; i++ )
- {
- if ( strcmp(str_list[i], s) == 0 )
- return 1;
- }
- return 0;
- }
- void str_add(const char *s)
- {
- if ( str_exists(s) )
- return;
- if ( str_cnt >= STR_MAX )
- {
- error(1,0, "max number of strings reached");
- }
- else
- {
- str_list[str_cnt] = strdup(s);
- str_cnt++;
- }
- }
- /*===========================================*/
- /*
- copy file from source_file_name to dest_file_name
- */
- int file_copy(const char *source_file_name, const char *dest_file_name)
- {
- int ch;
- FILE *source_fp;
- FILE *dest_fp;
-
- source_fp = fopen(source_file_name, "r");
- dest_fp = fopen(dest_file_name, "w");
-
- if ( source_fp == NULL || dest_fp == NULL )
- return 0;
-
- while( ( ch = fgetc(source_fp) ) != EOF )
- fputc(ch, dest_fp);
-
- fclose(source_fp);
- fclose(dest_fp);
-
- return 1;
- }
- /*
- Insert file "insertname" between lines "start_line" and "end_line" of file "filename"
- */
- int insert_into_file(const char *filename, const char *insertname, const char *start_line, const char *end_line)
- {
- int ch;
- static char line[1024*4];
- const char *tmpname = "tmp.h";
- FILE *source_fp;
- FILE *dest_fp;
- FILE *insert_fp;
-
- if ( file_copy(filename, tmpname) == 0 )
- return 0;
- source_fp = fopen(tmpname, "r");
- dest_fp = fopen(filename, "w");
- insert_fp = fopen(insertname, "r");
- if ( source_fp == NULL || dest_fp == NULL || insert_fp == NULL )
- return 0;
-
- for(;;)
- {
- if ( fgets(line, 1024*4, source_fp) == NULL )
- break;
- if ( strncmp(line, start_line, strlen(start_line)) == 0 )
- {
- fputs(line, dest_fp);
- while( ( ch = fgetc(insert_fp) ) != EOF )
- fputc(ch, dest_fp);
-
- fputs("\n", dest_fp);
-
- for(;;)
- {
- if ( fgets(line, 1024*4, source_fp) == NULL )
- break;
- if ( strncmp(line, end_line, strlen(end_line)) == 0 )
- {
- fputs(line, dest_fp);
- break;
- }
- }
- }
- else
- {
- fputs(line, dest_fp);
- }
- }
- fclose(insert_fp);
- fclose(source_fp);
- fclose(dest_fp);
-
- unlink(tmpname);
-
- printf("patched %s\n", filename);
- return 1;
- }
- /*===========================================*/
- char *strlowercase(const char *s)
- {
- int i, len = strlen(s);
- static char buf[1024];
- for( i = 0; i <= len; i++ )
- buf[i] = tolower(s[i]);
- return buf;
- }
- char *struppercase(const char *s)
- {
- int i, len = strlen(s);
- static char buf[1024];
- for( i = 0; i <= len; i++ )
- buf[i] = toupper(s[i]);
- return buf;
- }
- /*===========================================*/
- FILE *buf_code_fp;
- FILE *buf_header_fp;
- FILE *setup_code_fp;
- FILE *setup_header_fp;
- FILE *u8g2_cpp_header_fp;
- FILE *u8x8_cpp_header_fp;
- FILE *u8x8_setup_c_md_fp;
- FILE *u8x8_setup_cpp_md_fp;
- FILE *u8g2_setup_c_md_fp;
- FILE *u8g2_setup_cpp_md_fp;
- const char *get_setup_function_name(int controller_idx, int display_idx, const char *postfix)
- {
- static char s[1024];
- strcpy(s, "u8g2_Setup_");
- strcat(s, strlowercase(controller_list[controller_idx].name));
- strcat(s, "_");
- if ( controller_list[controller_idx].cad_shortname[0] != '\0' )
- {
- strcat(s, strlowercase(controller_list[controller_idx].cad_shortname));
- strcat(s, "_");
- }
- strcat(s, strlowercase(controller_list[controller_idx].display_list[display_idx].name));
- strcat(s, "_");
- strcat(s, postfix);
- return s;
- }
- void do_setup_prototype(FILE *fp, int controller_idx, int display_idx, const char *postfix)
- {
- /*
- fprintf(fp, "void u8g2_Setup_");
- fprintf(fp, "%s_", strlowercase(controller_list[controller_idx].name));
- fprintf(fp, "%s_", strlowercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)", postfix);
- */
- fprintf(fp, "void %s", get_setup_function_name(controller_idx, display_idx, postfix));
- fprintf(fp, "(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)");
- }
- /*===========================================*/
- /*
- class U8X8_SSD1306_128X64_4W_SW_SPI : public U8X8 {
- public: U8X8_SSD1306_128X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
- u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, u8x8_byte_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
- u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
- }
- }
- */
- void do_u8x8_header(int controller_idx, int display_idx, int interface_idx)
- {
- FILE *fp = u8x8_cpp_header_fp;
- fprintf(fp, "class U8X8_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, " : public U8X8 {\n");
- fprintf(fp, " public: ");
- fprintf(fp, "U8X8_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, "(%s) : U8X8() {\n", interface_list[interface_idx].pins_with_type);
- fprintf(fp, " ");
- fprintf(fp, "u8x8_Setup(getU8x8(), u8x8_d_");
- fprintf(fp, "%s_", strlowercase(controller_list[controller_idx].name));
- fprintf(fp, "%s, ", strlowercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s, ", strlowercase(controller_list[controller_idx].cad));
- fprintf(fp, "%s, ", interface_list[interface_idx].arduino_com_procedure);
- fprintf(fp, "%s);\n", interface_list[interface_idx].arduino_gpio_procedure);
- fprintf(fp, " ");
- fprintf(fp, "%s(getU8x8(), ", interface_list[interface_idx].setpin_function);
- fprintf(fp, "%s);\n", interface_list[interface_idx].pins_plain);
- fprintf(fp, " }\n");
- fprintf(fp, "};\n");
-
- }
- /*
- class U8G2_SSD1306_128x64_NONAME_1_SW_SPI : public U8G2
- {
- public:
- U8G2_SSD1306_128x64_NONAME_1_SW_SPI(const u8g2_cb_t *rotation, uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE)
- {
- u8g2_Setup_ssd1306_128x64_noname_1(&u8g2, rotation, u8x8_byte_4wire_sw_spi, u8x8_gpio_and_delay_arduino,);
- u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
- }
- };
- */
- void do_display_interface(int controller_idx, int display_idx, const char *postfix, int interface_idx)
- {
-
- FILE *fp = u8g2_cpp_header_fp;
-
- printf(" %s %s", postfix, interface_list[interface_idx].interface_name);
-
- fprintf(fp, "class U8G2_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s", struppercase(postfix));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, " : public U8G2 {\n");
- fprintf(fp, " public: ");
- fprintf(fp, "U8G2_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s", struppercase(postfix));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, "(const u8g2_cb_t *rotation, ");
- fprintf(fp, "%s) : U8G2() {\n", interface_list[interface_idx].pins_with_type);
- fprintf(fp, " ");
- /*
- fprintf(fp, "u8g2_Setup_");
- fprintf(fp, "%s_", strlowercase(controller_list[controller_idx].name));
- fprintf(fp, "%s_", strlowercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s", postfix);
- */
- fprintf(fp, "%s", get_setup_function_name(controller_idx, display_idx, postfix));
- fprintf(fp, "(&u8g2, ");
- fprintf(fp, "rotation, ");
- fprintf(fp, "%s, ", interface_list[interface_idx].arduino_com_procedure);
- fprintf(fp, "%s);\n", interface_list[interface_idx].arduino_gpio_procedure);
- fprintf(fp, " ");
- fprintf(fp, "%s(getU8x8(), ", interface_list[interface_idx].setpin_function);
- fprintf(fp, "%s);\n", interface_list[interface_idx].pins_plain);
- fprintf(fp, " }\n");
- fprintf(fp, "};\n");
-
- if ( strcmp(postfix, "1") == 0 )
- do_u8x8_header(controller_idx, display_idx, interface_idx);
-
- }
- /*===========================================*/
- void do_display(int controller_idx, int display_idx, const char *postfix)
- {
-
- do_setup_prototype(setup_header_fp, controller_idx, display_idx, postfix);
- fprintf(setup_header_fp, ";\n");
-
- do_setup_prototype(setup_code_fp, controller_idx, display_idx, postfix);
- fprintf(setup_code_fp, "\n");
- fprintf(setup_code_fp, "{\n");
- fprintf(setup_code_fp, " uint8_t tile_buf_height;\n");
- fprintf(setup_code_fp, " uint8_t *buf;\n");
- fprintf(setup_code_fp, " u8g2_SetupDisplay(u8g2, u8x8_d_");
- fprintf(setup_code_fp, "%s_", strlowercase(controller_list[controller_idx].name));
- fprintf(setup_code_fp, "%s, ", strlowercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(setup_code_fp, "%s, ", controller_list[controller_idx].cad);
- fprintf(setup_code_fp, "byte_cb, gpio_and_delay_cb);\n");
- fprintf(setup_code_fp, " buf = ");
- //fprintf(setup_code_fp, "u8g2_m_%s_%d_%s(&tile_buf_height);\n", strlowercase(controller_list[controller_idx].name), controller_list[controller_idx].tile_width, postfix);
- fprintf(setup_code_fp, "u8g2_m_%d_%d_%s(&tile_buf_height);\n", controller_list[controller_idx].tile_width, controller_list[controller_idx].tile_height, postfix);
- fprintf(setup_code_fp, " u8g2_SetupBuffer(u8g2, buf, tile_buf_height, %s, rotation);\n", controller_list[controller_idx].ll_hvline);
- fprintf(setup_code_fp, "}\n");
-
- /* generate interfaces for this display */
- if ( controller_list[controller_idx].com & COM_4WSPI )
- {
- do_display_interface(controller_idx, display_idx, postfix, 0); /* SW SPI */
- do_display_interface(controller_idx, display_idx, postfix, 1); /* HW SPI */
- do_display_interface(controller_idx, display_idx, postfix, 12); /* 2nd HW SPI */
- }
- if ( controller_list[controller_idx].com & COM_3WSPI )
- {
- do_display_interface(controller_idx, display_idx, postfix, 4); /* 3wire SW SPI */
- do_display_interface(controller_idx, display_idx, postfix, 5); /* 3wire HW SPI (not implemented) */
- }
- if ( controller_list[controller_idx].com & COM_6800 )
- {
- do_display_interface(controller_idx, display_idx, postfix, 2); /* 6800 mode */
- }
- if ( controller_list[controller_idx].com & COM_8080 )
- {
- do_display_interface(controller_idx, display_idx, postfix, 3); /* 8080 mode */
- }
- if ( controller_list[controller_idx].com & COM_I2C )
- {
- do_display_interface(controller_idx, display_idx, postfix, 6); /* SW I2C */
- do_display_interface(controller_idx, display_idx, postfix, 7); /* HW I2C */
- do_display_interface(controller_idx, display_idx, postfix, 10); /* 2nd HW I2C */
- }
- if ( controller_list[controller_idx].com & COM_ST7920SPI )
- {
- do_display_interface(controller_idx, display_idx, postfix, 8); /* ST7920 SW SPI */
- do_display_interface(controller_idx, display_idx, postfix, 9); /* HW SPI */
- do_display_interface(controller_idx, display_idx, postfix, 14); /* 2ND HW SPI */
- }
- if ( controller_list[controller_idx].com & COM_UART )
- {
- /* currently there is no Arduino C++ interface, instead the interface is created manually in the example */
- }
- if ( controller_list[controller_idx].com & COM_KS0108 )
- {
- do_display_interface(controller_idx, display_idx, postfix, 11); /* KS0108 6800 parallel mode */
- }
- if ( controller_list[controller_idx].com & COM_SED1520 )
- {
- do_display_interface(controller_idx, display_idx, postfix, 13);
- }
-
- }
- void do_controller_buffer_code(int idx, const char *postfix, int buf_len, int rows)
- {
- int display_idx;
- char s[1024];
- //sprintf(s, "u8g2_m_%s_%d_%d_%s", strlowercase(controller_list[idx].name), controller_list[idx].tile_width, controller_list[idx].tile_height, postfix);
- /* this should fix #370, additionally the controller is removed (hope that this will not break anything) */
- sprintf(s, "u8g2_m_%d_%d_%s", controller_list[idx].tile_width, controller_list[idx].tile_height, postfix);
-
- if ( str_exists(s) == 0 )
- {
- str_add(s);
- //FILE *fp = stdout;
- fprintf(buf_code_fp, "uint8_t *%s(uint8_t *page_cnt)\n", s);
- fprintf(buf_code_fp, "{\n");
- fprintf(buf_code_fp, " #ifdef U8G2_USE_DYNAMIC_ALLOC\n");
- fprintf(buf_code_fp, " *page_cnt = %d;\n", rows);
- fprintf(buf_code_fp, " return 0;\n");
- fprintf(buf_code_fp, " #else\n");
- fprintf(buf_code_fp, " static uint8_t buf[%d];\n", buf_len);
- fprintf(buf_code_fp, " *page_cnt = %d;\n", rows);
- fprintf(buf_code_fp, " return buf;\n");
- fprintf(buf_code_fp, " #endif\n");
- fprintf(buf_code_fp, "}\n");
-
- fprintf(buf_header_fp, "uint8_t *%s(uint8_t *page_cnt);\n", s);
- }
-
- display_idx = 0;
- fprintf(setup_code_fp, "/* %s %s */\n", controller_list[idx].name, postfix);
- while( controller_list[idx].display_list[display_idx].name != NULL )
- {
- do_display(idx, display_idx, postfix);
- display_idx++;
- }
-
- }
- void do_controller_list(void)
- {
- int i;
- for( i = 0; i < sizeof(controller_list)/sizeof(*controller_list); i++ )
- {
- printf("%s: ",controller_list[i].name);
- fprintf(setup_code_fp, "/* %s */\n", controller_list[i].name);
- do_controller_buffer_code(i, "1", controller_list[i].tile_width*8, 1);
- do_controller_buffer_code(i, "2", controller_list[i].tile_width*8*2, 2);
- do_controller_buffer_code(i, "f", controller_list[i].tile_width*8*controller_list[i].tile_height, controller_list[i].tile_height);
- printf("\n");
- }
- }
- int is_arduino_cpp = 1;
- int is_u8g2 = 1;
- FILE *md_fp;
- void do_md_display(int controller_idx, int display_idx)
- {
- FILE *fp = md_fp;
- /*
- fprintf(fp, "%s:", controller_list[controller_idx].name);
- fprintf(fp, "%s\n", controller_list[controller_idx].display_list[display_idx].name);
- */
-
- if ( is_u8g2 )
- {
- fprintf(fp, "\n");
- fprintf(fp, "## %s ", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "\n");
- #ifdef MD_TABLES
- fprintf(fp, "| Controller \"%s\", ", controller_list[controller_idx].name);
- fprintf(fp, "Display \"%s\" | ", controller_list[controller_idx].display_list[display_idx].name);
- fprintf(fp, "Description |\n");
- fprintf(fp, "|---|---|\n");
- #else
- fprintf(fp, "Controller \"%s\", ", controller_list[controller_idx].name);
- fprintf(fp, "Display \"%s\" ", controller_list[controller_idx].display_list[display_idx].name);
- fprintf(fp, "\n");
- #endif
- }
- else
- {
- if ( is_u8g2 != 0 || strcmp(controller_list[controller_idx].ll_hvline, U8X8_HVLINE ) == 0 )
- {
- fprintf(fp, "\n");
- fprintf(fp, "## %s ", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "\n");
- fprintf(fp, "| Controller \"%s\", ", controller_list[controller_idx].name);
- fprintf(fp, "Display \"%s\" |\n", controller_list[controller_idx].display_list[display_idx].name);
- fprintf(fp, "|---|\n");
- }
- }
- }
- void do_md_display_interface_buffer(int controller_idx, int display_idx, int interface_idx, char *postfix, int size, int rows)
- {
- FILE *fp = md_fp;
-
- #ifdef MD_TABLES
- if ( is_u8g2 )
- {
- if ( is_arduino_cpp )
- {
- fprintf(fp, "| U8G2_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s", struppercase(postfix));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, "(rotation, %s)", interface_list[interface_idx].pins_md_plain);
- if ( postfix[0] == 'f' )
- {
- fprintf(fp, " | full framebuffer, size = %d bytes |\n", size);
- }
- else
- {
- fprintf(fp, " | page buffer, size = %d bytes |\n", size);
- }
- }
- else
- {
- fprintf(fp, "| ");
- fprintf(fp, "%s", get_setup_function_name(controller_idx, display_idx, postfix));
- fprintf(fp, "(u8g2, ");
- fprintf(fp, "rotation, ");
- fprintf(fp, "%s, ", interface_list[interface_idx].generic_com_procedure);
- fprintf(fp, "%s)", "uC specific");
- if ( postfix[0] == 'f' )
- {
- fprintf(fp, " | full framebuffer, size = %d bytes |\n", size);
- }
- else
- {
- fprintf(fp, " | page buffer, size = %d bytes |\n", size);
- }
- }
- }
- #else
- if ( is_u8g2 )
- {
- if ( is_arduino_cpp )
- {
- fprintf(fp, " * U8G2_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s", struppercase(postfix));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, "(rotation, %s)", interface_list[interface_idx].pins_md_plain);
- /* removed to reduce the size of the md file */
- /*
- if ( postfix[0] == 'f' )
- {
- fprintf(fp, " [full framebuffer, size = %d bytes]\n", size);
- }
- else
- {
- fprintf(fp, " [page buffer, size = %d bytes]\n", size);
- }
- */
- fprintf(fp, "\n");
- }
- else
- {
- fprintf(fp, " * ");
- fprintf(fp, "%s", get_setup_function_name(controller_idx, display_idx, postfix));
- fprintf(fp, "(u8g2, ");
- fprintf(fp, "rotation, ");
- fprintf(fp, "%s, ", interface_list[interface_idx].generic_com_procedure);
- fprintf(fp, "%s)", "uC specific");
- /* removed to reduce the size of the md file */
- /*
- if ( postfix[0] == 'f' )
- {
- fprintf(fp, " [full framebuffer, size = %d bytes]\n", size);
- }
- else
- {
- fprintf(fp, " [page buffer, size = %d bytes]\n", size);
- }
- */
- fprintf(fp, "\n");
- }
- }
- #endif
- }
- void do_md_display_interface(int controller_idx, int display_idx, int interface_idx)
- {
- FILE *fp = md_fp;
-
- if ( !is_u8g2 )
- {
- if ( strcmp(controller_list[controller_idx].ll_hvline, U8X8_HVLINE ) == 0 )
- {
- if ( is_arduino_cpp )
- {
- fprintf(fp, "| U8X8_");
- fprintf(fp, "%s_", struppercase(controller_list[controller_idx].name));
- fprintf(fp, "%s", struppercase(controller_list[controller_idx].display_list[display_idx].name));
- if ( interface_list[interface_idx].interface_name[0] != '\0' )
- fprintf(fp, "_%s", struppercase(interface_list[interface_idx].interface_name));
- fprintf(fp, "(%s) |\n", interface_list[interface_idx].pins_md_plain);
- }
- else
- {
-
- fprintf(fp, "| u8x8_Setup(u8x8, u8x8_d_");
- fprintf(fp, "%s_", strlowercase(controller_list[controller_idx].name));
- fprintf(fp, "%s, ", strlowercase(controller_list[controller_idx].display_list[display_idx].name));
- fprintf(fp, "%s, ", strlowercase(controller_list[controller_idx].cad));
- fprintf(fp, "%s, ", strlowercase(interface_list[interface_idx].generic_com_procedure));
- fprintf(fp, "uC specific) |\n");
- }
- }
- }
- do_md_display_interface_buffer(controller_idx, display_idx, interface_idx, "1", controller_list[controller_idx].tile_width*8, 1);
- do_md_display_interface_buffer(controller_idx, display_idx, interface_idx, "2", controller_list[controller_idx].tile_width*8*2, 2);
- do_md_display_interface_buffer(controller_idx, display_idx, interface_idx, "f", controller_list[controller_idx].tile_width*8*controller_list[controller_idx].tile_height, controller_list[controller_idx].tile_height);
-
- }
- void do_md_controller_list(void)
- {
- int controller_idx, display_idx;
-
- for( controller_idx = 0; controller_idx < sizeof(controller_list)/sizeof(*controller_list); controller_idx++ )
- {
- display_idx = 0;
- while( controller_list[controller_idx].display_list[display_idx].name != NULL )
- {
- do_md_display(controller_idx, display_idx);
- /* generate interfaces for this display */
- if ( controller_list[controller_idx].com & COM_4WSPI )
- {
- do_md_display_interface(controller_idx, display_idx, 0); /* SW SPI */
- if ( is_arduino_cpp )
- {
- do_md_display_interface(controller_idx, display_idx, 1); /* HW SPI */
- do_md_display_interface(controller_idx, display_idx, 12); /* 2nd HW SPI */
- }
- }
- if ( controller_list[controller_idx].com & COM_3WSPI )
- {
- do_md_display_interface(controller_idx, display_idx, 4); /* 3wire SW SPI */
- do_md_display_interface(controller_idx, display_idx, 5); /* 3wire HW SPI (not implemented) */
- }
- if ( controller_list[controller_idx].com & COM_6800 )
- {
- do_md_display_interface(controller_idx, display_idx, 2); /* 6800 mode */
- }
- if ( controller_list[controller_idx].com & COM_8080 )
- {
- do_md_display_interface(controller_idx, display_idx, 3); /* 8080 mode */
- }
- if ( controller_list[controller_idx].com & COM_I2C )
- {
- do_md_display_interface(controller_idx, display_idx, 6); /* SW I2C */
- do_md_display_interface(controller_idx, display_idx, 7); /* HW I2C */
- do_md_display_interface(controller_idx, display_idx, 10); /* 2nd HW I2C */
- }
- if ( controller_list[controller_idx].com & COM_ST7920SPI )
- {
- do_md_display_interface(controller_idx, display_idx, 8); /* ST7920 SW SPI */
- do_md_display_interface(controller_idx, display_idx, 9); /* HW SPI (not yet implemented) */
- do_md_display_interface(controller_idx, display_idx, 14); /* 2ND HW SPI */
- }
- if ( controller_list[controller_idx].com & COM_KS0108 )
- {
- do_md_display_interface(controller_idx, display_idx, 11); /* KS0108 */
- }
- if ( controller_list[controller_idx].com & COM_SED1520 )
- {
- do_md_display_interface(controller_idx, display_idx, 13); /* SED1520 */
- }
-
- display_idx++;
- }
- }
- }
- int main(void)
- {
- buf_code_fp = fopen("u8g2_d_memory.c", "w");
- fprintf(buf_code_fp, "/* u8g2_d_memory.c */\n");
- fprintf(buf_code_fp, "/* generated code, codebuild, u8g2 project */\n");
- fprintf(buf_code_fp, "\n");
- fprintf(buf_code_fp, "#include \"u8g2.h\"\n");
- fprintf(buf_code_fp, "\n");
-
- buf_header_fp = fopen("u8g2_memory.h", "w");
- //fprintf(buf_header_fp, "/* start of generated code, codebuild, u8g2 project */\n");
- setup_code_fp = fopen("u8g2_d_setup.c", "w");
- fprintf(setup_code_fp, "/* u8g2_d_setup.c */\n");
- fprintf(setup_code_fp, "/* generated code, codebuild, u8g2 project */\n");
- fprintf(setup_code_fp, "\n");
- fprintf(setup_code_fp, "#include \"u8g2.h\"\n");
- fprintf(setup_code_fp, "\n");
- setup_header_fp = fopen("u8g2_setup.h", "w");
- //fprintf(setup_header_fp, "/* start of generated code, codebuild, u8g2 project */\n");
-
- u8g2_cpp_header_fp = fopen("U8g2lib.h", "w");
- fprintf(u8g2_cpp_header_fp, "/* generated code (codebuild), u8g2 project */\n");
-
- u8x8_cpp_header_fp = fopen("U8x8lib.h", "w");
- fprintf(u8x8_cpp_header_fp, "/* generated code (codebuild), u8g2 project */\n");
- u8x8_setup_c_md_fp = fopen("u8x8setupc.md", "w");
- u8x8_setup_cpp_md_fp = fopen("u8x8setupcpp.md", "w");
- u8g2_setup_c_md_fp = fopen("u8g2setupc.md", "w");
- u8g2_setup_cpp_md_fp = fopen("u8g2setupcpp.md", "w");
- do_controller_list();
-
-
-
- md_fp = u8g2_setup_cpp_md_fp;
- is_arduino_cpp = 1;
- is_u8g2 = 1;
- do_md_controller_list();
-
- md_fp = u8g2_setup_c_md_fp;
- is_arduino_cpp = 0;
- is_u8g2 = 1;
- do_md_controller_list();
-
- md_fp = u8x8_setup_cpp_md_fp;
- is_arduino_cpp = 1;
- is_u8g2 = 0;
- do_md_controller_list();
-
- md_fp = u8x8_setup_c_md_fp;
- is_arduino_cpp = 0;
- is_u8g2 = 0;
- do_md_controller_list();
-
- fprintf(buf_code_fp, "/* end of generated code */\n");
- fclose(buf_code_fp);
-
- //fprintf(buf_header_fp, "/* end of generated code */\n");
- fclose(buf_header_fp);
- fprintf(setup_code_fp, "/* end of generated code */\n");
- fclose(setup_code_fp);
- //fprintf(setup_header_fp, "/* end of generated code */\n");
- fclose(setup_header_fp);
- fclose(u8g2_cpp_header_fp);
- fclose(u8x8_cpp_header_fp);
- fclose(u8x8_setup_c_md_fp);
- fclose(u8x8_setup_cpp_md_fp);
- fclose(u8g2_setup_c_md_fp);
- fclose(u8g2_setup_cpp_md_fp);
- system("cp u8g2_d_memory.c ../../csrc/.");
- puts("generate u8g2_d_memory.c");
- system("cp u8g2_d_setup.c ../../csrc/.");
- puts("generate u8g2_d_setup.c");
- insert_into_file("../../csrc/u8g2.h", "u8g2_memory.h", "/* u8g2_d_memory.c generated code start */", "/* u8g2_d_memory.c generated code end */");
- insert_into_file("../../csrc/u8g2.h", "u8g2_setup.h", "/* u8g2_d_setup.c generated code start */", "/* u8g2_d_setup.c generated code end */");
- insert_into_file("../../cppsrc/U8g2lib.h", "U8g2lib.h", "/* Arduino constructor list start */", "/* Arduino constructor list end */");
- insert_into_file("../../cppsrc/U8x8lib.h", "U8x8lib.h", "// constructor list start", "// constructor list end");
- insert_into_file("../../../u8g2.wiki/u8g2setupc.md", "u8g2setupc.md", "# Setup Function Reference", "# Links");
- insert_into_file("../../../u8g2.wiki/u8g2setupcpp.md", "u8g2setupcpp.md", "# Constructor Reference", "# Links");
- insert_into_file("../../../u8g2.wiki/u8x8setupc.md", "u8x8setupc.md", "# Setup Function Reference", "# Links");
- insert_into_file("../../../u8g2.wiki/u8x8setupcpp.md", "u8x8setupcpp.md", "# Constructor Reference", "# Links");
- return 0;
- }
|