A certainnumberofcharactersacross a certainnumberrose.
Youdo a B C D E 123 youcanyoudoexclamationpoints, thattypeofthing.
Butyoureallycannotdesign a userinterfacetoanygreatdegreeandbasicallyjustputtextonanLCDscreen.
ThecoolpartaboutOhledscreenisthatitessentiallyisjust a verysimplemonitorwhenyoudrawtoitorwhenyouprinttoit, youcancomeupwithyourownuniqueinterfacesforyourusersthataretotallyoriginaltoyousoyoucandrawtexture.
Youcanprintbitmapinvidiousandwhatwe'regoingtoshowyouhowtodotodayisyoucanactuallydrawshapesontothescreeninordertodothingssuchasgiveyourprojectslikelittlebordersfortheuserinterface, orbasicallybeabletodifferentiatedifferentcomponentsonthe O ledscreentomakeiteasierforpeopletoview.
Thinkaboutdrawingshapesonan O ledscreen, muchlikeCSS.
Ifyou'redealingwith a team, ourWebpages, thisisjustsimply a waytogive a little a littleaboutboomtoyourArduinoprojectandmakeiteasierforpeopletounderstandwhatthey'resupposedtobelookingatandwhat's goingon.
Sonowlet's digintothecodeforhowtodrawshapesonan O ledscreen.
Sobasically, whatwe'regoingtobedoingwiththisparticularprojectisthefirstthingthatwe'regoingtodoiswe'regoingtodraw a line, thenwe'regoingtodraw a rectangle.
Thenwe'regoingtodraw a circle.
Thenwe'regoingtodraw a triangleandthentoshowyouhowyoucanlayeralloftheshapesontopofeachothertocreateanimageorevenananimation, werethenactuallygoingtoputmultiplethingsonthescreenatonetime.
Let's goandtake a lookatwhat's requiredinorderortocodeforthisproject.
Ifyoudon't knowwhatitistofindoutwhatitis, Sothisparticularolladyiszero x three c.
We'regonnacomedownhere.
I'm gonnausetheadoffruitunderscoreSSD 1306 Andthenwe'regoingtocreate a display.
Sothisisthereferencenameyoucouldcallus.
Oh, led.
YoucouldcallthisleddisplayGoallessability.
Underscoredisplay.
Thisissimplyhowwe'regoingtobe a referencingthedisplaywhenwestartdrawingtowitdownhereandthenwe'regoingtoplugintheoily D withandtheonlytheheight.
Soitknowswhatthesizeofthedisplayistheyknowwe'regonnadoiscomedownhereandwe'regoingtosetuptheenvironment, andallwe'regoingtobedoingtosetuptheenvironmentiswhere I knewdisplay.
See, See, Youknowhowtomakedifferentlines, makestraightlines, makediagonallines, butwe'regonnabedoingthisisgonnabe a diagonallinethatgoesabouthalfwaydownthescreenjusttokindofgiveyouanideaofhowthisworks.
Thenyousay, Whatcolordoyouwant?
Thelinetobedrawn.
Soifyou'redealingwith a monochromescreensthescreenthatwe'redealingwithtodaybasicallyis a MonicaCrumbstringscream.
Thenthenextthingthat I wanttodois I wanttoshowyouhowto a layerattheseshapesontopofeachother s sothatyoucangetsomekindofuserinterfacedesignifyoudecidetodothatforyourparticularproject.
Weknowprojectsbecausenotonlycanyouwrite a printtexttothem, butyoucandoshapesandbitmapimagesandallkindsofotherfancystuff, muchlike a Webdesignerwoulddesign a Webpagetomakeiteasierforuserstobeinteractwith.
Weknowtomakeiteasierforuserstoagainwith a lotoftechnologyprofessionals, theythink a All I havetodois, youknow, printatprintoutsofstuffon a screen, andtheuserswillbeeverknowwhatthehelltodowithit.
Ifyou'vegot a wholebunchofnumbersor a wholebunchofinformationonthescreen, literallyjustjustdrawing a border, justdrawing a boxaroundwhatevernumberismostimportantthatcouldbeveryusefultoyouanduser.
Rememberyouasthepersonthat I createdthisproject, youknow, everythingthat's goingonwiththisproject.
Sobydoingsimplethings, likeagain, likeputtinglittlebordersandframesandthattypeofthingonyourscreenofEuropeweknowprojectthatcouldmakelife a hellof a loteasierforyourusers.