[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760965-105":59,"doc-detail-760965-en":129},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","lego-powered-up-programming-blocks-guide","LEGO Powered Up Programming Blocks - Guide","","Learn how to program LEGO® Powered Up models using the app’s simple, easy-to-understand programming language. The guide explains how stacking blocks translates into commands, then walks through common block types: Flow blocks for starting, stopping, waiting, and looping; Sensor blocks for triggering events from color, distance, tilt, and other readings; and Motor blocks for controlling power, speed, direction, and tacho motor position.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/lego-powered-up-programming-blocks-guide/760965/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/lego-powered-up-programming-blocks-guide/760965.png","ImageObject",300,407,{"name":92,"@type":93},"Nguyễn Văn Học","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29",true,{"@type":101,"interactionType":102,"userInteractionCount":4},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"What is the core idea behind LEGO® Powered Up programming blocks?","Question",{"text":111,"@type":112},"The app uses a simple programming language where you stack blocks and watch them snap into place, turning your block sequence into actions.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"What do Yellow Flow Blocks control?",{"text":116,"@type":112},"They control program flow such as starting, stopping, pausing, waiting, and looping commands under conditions.",{"name":118,"@type":109,"acceptedAnswer":119},"How do Orange Sensor Blocks work?",{"text":120,"@type":112},"They trigger actions based on sensor readings like color and distance, or other measured values such as force, orientation, and tilt.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},760965,1795963003,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":4,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":36,"preview_page_count":19,"preview_urls":143},1374402739827,"https://ap-avatar.wpscdn.com/avatar/14000c97e7351f1a627?x-image-process=image/resize,m_fixed,w_180,h_180&k=1787885694763230660","Guide to LEGO® Powered Up programming blocks  \nThe LEGO® Powered Up app features a simple, easy-to-understand programming language that fans of all ages will enjoy learning and experimenting with. It’s based around a core experience any LEGO fan will understand instinctively – stacking blocks next to one another and watching them snap into place.  \nProgramming blocks come in a range of types and colors to tell you what type of block you’re using.  \nHere are some examples of commonly used programming blocks. If you’re not sure what a block does and it’s not listed here, why not try it out in the app? Part of the fun of LEGO Powered Up is in the experimentation, play, and learning.  \nYellow Flow Blocks  \nYellow blocks control the flow of your commands. You can use them to start a program, stop a program, pause a program or even loop commands.  \n\n| | This block starts the program. |  |\n| --- | --- | --- |\n| | This block will start the program if a True condition is met. |  |\n| | This block starts the program when the conditionswitches from False to True. |  |\n| |  | This block starts the attached code sequence when the flag number is triggered. |\n\n\n| | This block triggers a flag number. |  |\n| --- | --- | --- |\n| | This hourglass block will make the program wait for a specified number of seconds. |  |\n| | This hourglass block will wait for the condition to be True. |  |\n| | This block will loop the program section for a set number of times. |  |\n| | This block will loop the program while a condition is true. |  |\n| | This block will loop the program forever! |  |\n| | This block will run the top sequence if the condition is True. If the top sequence isn’t True, it will run the bottom sequence. |  |\n| |  | This block runs both sequences at the same time and waits for both sequences to finish before running the next block. |\n\n\n| | This block stops all other program sequences and continues running the attached code sequence. |  |\n| --- | --- | --- |\n| |  | This block stops all sequences running on the current canvas. If it’s used in the top program, this will end the program. If it’s used in a Model Block and the Model Block is ended, the program containing the Model Block will continue running. |\n\nOrange Sensor Blocks  \nOrange blocks work with the Color and Distance Sensor, the Move Hub’s Tilt Sensor, remote control and WeDo 2.0 sensors. These blocks will trigger an action when a sensor on your model detects something.  \n\n| | Use the Color sensor to trigger an event when a specific color is sensed. |\n| --- | --- |\n| | This block tells the program to wait for the color sensor to detect the color chosen in the block. |\n| | Get current color measured by the sensor. |\n| | Get current ambient light level measured by the sensor. |\n\n\n| | Triggers when the distance measured by the sensor is less than the specified distance. |\n| --- | --- |\n| | Get current distance measured by the sensor. |\n| | Wait for the distance measured by the Sensor to be less than the specified distance. |\n| | Get current force measured by the sensor and affect connected block functions. |\n| | Use internal Gyroscope to trigger an event based on Orientation of the hub. |\n| | Wait for the Hub orientation to be equal to Hub orientation. |\n| | Get tilt orientation of the hub. |\n| | Get X angle position of the hub. |\n\n\n| | Get Y angle position of the hub. |\n| --- | --- |\n| | Get the angle of the specified axis on a tilt sensor. |\n| | Get the specified axis on an internal accelerometer/tilt sensor of a hub. |\n| | Sets the tilt orientation. |\n| | Just for WeDo sensors-Measure distance |\n| | Just for WeDo sensors. Get current WeDo sensor tilt angle on the Y axis (-90/90) . |\n| | Just for WeDo sensors. Get current WeDo sensor tilt angle on the X axis (-90/90) . |\n\n\n| | Uses the X axis tilt position of the smart device (left-right) . 0 is the central position. |\n| --- | --- |\n| | Uses the Y axis tilt position of the smart device (forward to backward) .\u003Cbr>0 is around 30 degrees","cbCaitncTGHHmbFA","https://ap.wps.com/l/cbCaitncTGHHmbFA","pdf",1437730,16,"English","# LEGO® Powered Up programming language\n## Flow blocks for control logic\n## Sensor blocks for event triggering\n## Motor and movement blocks for motion control","[{\"question\":\"What is the core idea behind LEGO® Powered Up programming blocks?\",\"answer\":\"The app uses a simple programming language where you stack blocks and watch them snap into place, turning your block sequence into actions.\"},{\"question\":\"What do Yellow Flow Blocks control?\",\"answer\":\"They control program flow such as starting, stopping, pausing, waiting, and looping commands under conditions.\"},{\"question\":\"How do Orange Sensor Blocks work?\",\"answer\":\"They trigger actions based on sensor readings like color and distance, or other measured values such as force, orientation, and tilt.\"}]","LEGO Powered Up Programming Blocks - Guide | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-29/884e622fbdea12797c619841abfbb23a.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-29/12d3077f9561c308ed68c512aa533410.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-29/ba38f106db2536e0dfe9be48af8d95f6.webp",981,1269,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-29/6feb625e2b46754fd34d1005904214e9.webp",980,1268]