22:
1580:
1637:
1554:
458:
996:
277:
51:
821:
113:
1299:
124:
but has specific limitations, such as the maximum number of subroutines and variables allowed, which differ depending on the version of
1712:
1621:
1702:
1314:
1304:
1707:
262:
1678:
1178:
886:
290:
871:
480:
216:
1309:
1294:
1137:
1021:
98:
73:
44:
1289:
1102:
304:
741:
487:
344:
136:
A simple test program written in NQC for an RCX with a motor connected to output port A could look like this:
941:
565:
299:
1614:
1237:
881:
876:
615:
1153:
1107:
721:
620:
397:
1284:
761:
600:
34:
314:
1697:
1262:
1172:
951:
836:
781:
630:
121:
38:
30:
1671:
1607:
1384:
1277:
1227:
931:
650:
407:
433:
128:
the RCX has. The language was invented by David Baum. He has released two books on the subject.
1130:
1031:
558:
417:
412:
402:
55:
1446:
1414:
1367:
1257:
1252:
1123:
956:
916:
866:
392:
1587:
1514:
1461:
1393:
1011:
896:
655:
240:
94:
8:
1717:
1232:
891:
533:
498:
1664:
1194:
851:
443:
337:
267:
1652:
1595:
1509:
1478:
1362:
1267:
1086:
1056:
1036:
981:
971:
946:
901:
831:
726:
670:
605:
513:
220:
1272:
1247:
1201:
1167:
991:
841:
706:
675:
1524:
1407:
976:
966:
906:
856:
716:
660:
635:
528:
466:
294:
109:
1579:
1648:
1591:
1441:
1242:
1116:
1051:
1041:
1026:
1006:
846:
801:
776:
665:
645:
625:
590:
364:
117:
287:
1691:
1558:
1539:
1400:
1185:
806:
756:
736:
731:
575:
474:
330:
203:
Thus, motor A will go at full speed for two seconds before being turned off.
1352:
1147:
1016:
936:
921:
861:
680:
640:
595:
548:
309:
1347:
1534:
1494:
1046:
1001:
961:
816:
771:
751:
711:
685:
570:
523:
1473:
1357:
1081:
986:
926:
826:
811:
796:
610:
580:
553:
438:
257:
1636:
1499:
1451:
1342:
1337:
1162:
1061:
791:
786:
746:
585:
543:
538:
206:
1529:
1468:
1456:
1374:
1332:
1222:
766:
701:
518:
224:
212:
125:
105:
102:
1519:
1431:
911:
369:
236:
1504:
228:
457:
1644:
1436:
353:
232:
195:// Let the motor run for two seconds, and then turn it off.
322:
219:(IDEs) are available for many platforms including
207:Compilers and integrated development environments
1689:
43:but its sources remain unclear because it lacks
1672:
1615:
338:
1679:
1665:
1622:
1608:
345:
331:
131:
74:Learn how and when to remove this message
1690:
120:systems. It is based primarily on the
326:
1631:
1574:
1095:
15:
1179:Lego Ninjago (video game franchise)
217:integrated development environments
13:
481:Interlego AG v Tyco Industries Inc
305:for OS X (Snow Leopard or Earlier)
14:
1729:
1138:The Lego Movie 2: The Second Part
882:The Lego Movie 2: The Second Part
251:
174:// Turn on motor A at 100% power.
99:application programming interface
1713:Programming language topic stubs
1635:
1578:
1553:
1552:
456:
20:
488:Kirkbi AG v Ritvik Holdings Inc
1:
1703:C programming language family
263:NQC tutorial by Mark Overmars
246:
1651:. You can help Knowledge by
1594:. You can help Knowledge by
1022:Teenage Mutant Ninja Turtles
7:
1708:Robot programming languages
268:NQC tutorial by Matt Miller
10:
1734:
1630:
1573:
742:Avatar: The Last Airbender
398:Godtfred Kirk Christiansen
1548:
1487:
1424:
1383:
1325:
1285:Legoland Discovery Centre
1215:
1074:
694:
506:
497:
465:
454:
426:
385:
378:
360:
942:Pirates of the Caribbean
352:
138:
29:This article includes a
408:Thomas Kirk Kristiansen
58:more precise citations.
1647:-related article is a
1590:-related article is a
1131:The Lego Ninjago Movie
887:The Lego Ninjago Movie
418:Agnete Kirk Thinggaard
413:Sofie Kirk Kristiansen
403:Kjeld Kirk Kristiansen
132:Simple program example
1447:Merlin Entertainments
1415:The Toys That Made Us
1368:FIRST Lego League Jr.
1124:The Lego Batman Movie
1103:Films & TV series
997:SpongeBob SquarePants
872:The Lego Batman Movie
722:The Angry Birds Movie
621:The Lord of the Rings
393:Ole Kirk Christiansen
1588:programming-language
1394:A Lego Brickumentary
434:Jørgen Vig Knudstorp
241:Bricx Command Center
95:programming language
1173:List of video games
952:The Powerpuff Girls
782:DC Super Hero Girls
762:Ben 10: Alien Force
1385:In popular culture
1195:Lego Club Magazine
444:Niels Christiansen
427:Notable executives
386:Kristiansen family
293:2005-05-15 at the
273:Compiler sources:
101:(API), and native
31:list of references
1660:
1659:
1603:
1602:
1568:
1567:
1510:Violence and Lego
1479:WildBrain Studios
1462:Traveller's Tales
1425:Related companies
1363:FIRST Lego League
1300:Dallas Fort Worth
1211:
1210:
1070:
1069:
1032:Trolls World Tour
601:Gabby's Dollhouse
559:Modular Buildings
452:
451:
221:Microsoft Windows
84:
83:
76:
1725:
1681:
1674:
1667:
1639:
1632:
1624:
1617:
1610:
1582:
1575:
1556:
1555:
1202:Lego White Noise
1168:Lego Interactive
1093:
1092:
957:Prince of Persia
917:Monster Fighters
867:Legends of Chima
504:
503:
460:
383:
382:
347:
340:
333:
324:
323:
199:
196:
193:
190:
187:
184:
181:
178:
175:
172:
169:
166:
163:
160:
157:
154:
151:
148:
145:
142:
108:toolkit for the
79:
72:
68:
65:
59:
54:this article by
45:inline citations
24:
23:
16:
1733:
1732:
1728:
1727:
1726:
1724:
1723:
1722:
1698:Lego Mindstorms
1688:
1687:
1686:
1685:
1629:
1628:
1571:
1569:
1564:
1544:
1483:
1420:
1408:The Brick Bible
1379:
1321:
1207:
1091:
1066:
1012:Stranger Things
932:Pharaoh's Quest
897:The Lone Ranger
690:
656:Speed Champions
493:
461:
448:
422:
374:
356:
351:
320:
295:Wayback Machine
254:
249:
209:
201:
200:
197:
194:
191:
188:
185:
182:
179:
176:
173:
170:
167:
164:
161:
158:
155:
152:
150:// Main program
149:
146:
143:
140:
134:
110:Lego Mindstorms
80:
69:
63:
60:
49:
35:related reading
25:
21:
12:
11:
5:
1731:
1721:
1720:
1715:
1710:
1705:
1700:
1684:
1683:
1676:
1669:
1661:
1658:
1657:
1640:
1627:
1626:
1619:
1612:
1604:
1601:
1600:
1583:
1566:
1565:
1563:
1562:
1549:
1546:
1545:
1543:
1542:
1537:
1532:
1527:
1522:
1517:
1512:
1507:
1502:
1497:
1491:
1489:
1485:
1484:
1482:
1481:
1476:
1471:
1466:
1465:
1464:
1454:
1449:
1444:
1442:The Lego Group
1439:
1434:
1428:
1426:
1422:
1421:
1419:
1418:
1411:
1404:
1397:
1389:
1387:
1381:
1380:
1378:
1377:
1372:
1371:
1370:
1360:
1355:
1350:
1345:
1340:
1335:
1329:
1327:
1323:
1322:
1320:
1319:
1318:
1317:
1312:
1307:
1302:
1297:
1292:
1282:
1281:
1280:
1275:
1270:
1265:
1260:
1255:
1250:
1245:
1240:
1235:
1230:
1219:
1217:
1213:
1212:
1209:
1208:
1206:
1205:
1198:
1191:
1190:
1189:
1182:
1175:
1170:
1165:
1157:
1154:Piece by Piece
1150:
1145:
1144:
1143:
1142:
1141:
1134:
1127:
1120:
1117:The Lego Movie
1109:The Lego Movie
1099:
1097:
1090:
1089:
1084:
1078:
1076:
1075:Other products
1072:
1071:
1068:
1067:
1065:
1064:
1059:
1054:
1049:
1044:
1039:
1034:
1029:
1024:
1019:
1014:
1009:
1004:
999:
994:
989:
984:
979:
974:
969:
964:
959:
954:
949:
944:
939:
934:
929:
924:
919:
914:
909:
904:
899:
894:
892:Life of George
889:
884:
879:
877:The Lego Movie
874:
869:
864:
859:
854:
849:
844:
839:
834:
829:
824:
819:
814:
809:
804:
799:
794:
789:
784:
779:
774:
769:
764:
759:
754:
749:
744:
739:
734:
729:
724:
719:
714:
709:
704:
698:
696:
692:
691:
689:
688:
683:
678:
673:
668:
663:
658:
653:
648:
643:
638:
633:
628:
623:
618:
616:Jurassic World
613:
608:
603:
598:
593:
588:
583:
578:
573:
568:
563:
562:
561:
556:
546:
541:
536:
534:Brick Sketches
531:
526:
521:
516:
510:
508:
501:
499:Product ranges
495:
494:
492:
491:
484:
477:
471:
469:
463:
462:
455:
453:
450:
449:
447:
446:
441:
436:
430:
428:
424:
423:
421:
420:
415:
410:
405:
400:
395:
389:
387:
380:
376:
375:
373:
372:
367:
365:The Lego Group
361:
358:
357:
350:
349:
342:
335:
327:
318:
317:
312:
307:
302:
297:
281:
280:
271:
270:
265:
260:
253:
252:External links
250:
248:
245:
208:
205:
139:
133:
130:
118:LEGO Spybotics
82:
81:
39:external links
28:
26:
19:
9:
6:
4:
3:
2:
1730:
1719:
1716:
1714:
1711:
1709:
1706:
1704:
1701:
1699:
1696:
1695:
1693:
1682:
1677:
1675:
1670:
1668:
1663:
1662:
1656:
1654:
1650:
1646:
1641:
1638:
1634:
1633:
1625:
1620:
1618:
1613:
1611:
1606:
1605:
1599:
1597:
1593:
1589:
1584:
1581:
1577:
1576:
1572:
1561:
1560:
1551:
1550:
1547:
1541:
1540:Tokio Express
1538:
1536:
1533:
1531:
1528:
1526:
1523:
1521:
1518:
1516:
1513:
1511:
1508:
1506:
1503:
1501:
1498:
1496:
1493:
1492:
1490:
1486:
1480:
1477:
1475:
1472:
1470:
1467:
1463:
1460:
1459:
1458:
1455:
1453:
1450:
1448:
1445:
1443:
1440:
1438:
1435:
1433:
1430:
1429:
1427:
1423:
1417:
1416:
1412:
1410:
1409:
1405:
1402:
1401:Brick Like Me
1398:
1396:
1395:
1391:
1390:
1388:
1386:
1382:
1376:
1373:
1369:
1366:
1365:
1364:
1361:
1359:
1356:
1354:
1351:
1349:
1346:
1344:
1341:
1339:
1336:
1334:
1331:
1330:
1328:
1324:
1316:
1313:
1311:
1308:
1306:
1303:
1301:
1298:
1296:
1293:
1291:
1288:
1287:
1286:
1283:
1279:
1276:
1274:
1271:
1269:
1266:
1264:
1261:
1259:
1256:
1254:
1251:
1249:
1246:
1244:
1241:
1239:
1236:
1234:
1231:
1229:
1226:
1225:
1224:
1221:
1220:
1218:
1214:
1204:
1203:
1199:
1197:
1196:
1192:
1188:
1187:
1186:Lego Universe
1183:
1181:
1180:
1176:
1174:
1171:
1169:
1166:
1164:
1161:
1160:
1158:
1156:
1155:
1151:
1149:
1146:
1140:
1139:
1135:
1133:
1132:
1128:
1126:
1125:
1121:
1119:
1118:
1114:
1113:
1112:
1110:
1106:
1105:
1104:
1101:
1100:
1098:
1094:
1088:
1085:
1083:
1080:
1079:
1077:
1073:
1063:
1060:
1058:
1055:
1053:
1050:
1048:
1045:
1043:
1040:
1038:
1035:
1033:
1030:
1028:
1025:
1023:
1020:
1018:
1015:
1013:
1010:
1008:
1005:
1003:
1000:
998:
995:
993:
990:
988:
985:
983:
980:
978:
975:
973:
970:
968:
965:
963:
960:
958:
955:
953:
950:
948:
945:
943:
940:
938:
935:
933:
930:
928:
925:
923:
920:
918:
915:
913:
910:
908:
905:
903:
900:
898:
895:
893:
890:
888:
885:
883:
880:
878:
875:
873:
870:
868:
865:
863:
860:
858:
855:
853:
852:Indiana Jones
850:
848:
845:
843:
840:
838:
835:
833:
830:
828:
825:
823:
820:
818:
815:
813:
810:
808:
805:
803:
800:
798:
795:
793:
790:
788:
785:
783:
780:
778:
775:
773:
770:
768:
765:
763:
760:
758:
755:
753:
750:
748:
745:
743:
740:
738:
735:
733:
730:
728:
725:
723:
720:
718:
715:
713:
710:
708:
705:
703:
700:
699:
697:
693:
687:
684:
682:
679:
677:
674:
672:
669:
667:
664:
662:
659:
657:
654:
652:
649:
647:
644:
642:
639:
637:
634:
632:
629:
627:
624:
622:
619:
617:
614:
612:
609:
607:
604:
602:
599:
597:
594:
592:
589:
587:
584:
582:
579:
577:
574:
572:
569:
567:
566:Despicable Me
564:
560:
557:
555:
552:
551:
550:
547:
545:
542:
540:
537:
535:
532:
530:
527:
525:
522:
520:
517:
515:
512:
511:
509:
505:
502:
500:
496:
490:
489:
485:
483:
482:
478:
476:
473:
472:
470:
468:
464:
459:
445:
442:
440:
437:
435:
432:
431:
429:
425:
419:
416:
414:
411:
409:
406:
404:
401:
399:
396:
394:
391:
390:
388:
384:
381:
377:
371:
368:
366:
363:
362:
359:
355:
348:
343:
341:
336:
334:
329:
328:
325:
321:
316:
313:
311:
308:
306:
303:
301:
298:
296:
292:
289:
286:
285:
284:
283:IDE sources:
279:
276:
275:
274:
269:
266:
264:
261:
259:
256:
255:
244:
242:
239:. One is the
238:
234:
230:
226:
222:
218:
214:
204:
137:
129:
127:
123:
119:
115:
111:
107:
104:
100:
96:
92:
88:
78:
75:
67:
57:
53:
47:
46:
40:
36:
32:
27:
18:
17:
1653:expanding it
1642:
1596:expanding it
1585:
1570:
1557:
1488:Other topics
1413:
1406:
1392:
1353:Brick Fiesta
1200:
1193:
1184:
1177:
1152:
1148:Lego Masters
1136:
1129:
1122:
1115:
1108:
1087:Serious Play
1057:World Racers
1037:Ultra Agents
972:Rock Raiders
947:Power Miners
922:Nexo Knights
902:Mars Mission
837:Hero Factory
832:Ghostbusters
747:Primo / Baby
727:Aqua Raiders
695:Discontinued
671:Super Heroes
606:Harry Potter
514:Architecture
486:
479:
319:
282:
272:
258:NQC Homepage
210:
202:
135:
90:
86:
85:
70:
61:
50:Please help
42:
1535:Hilary Page
1495:Lego fandom
1437:Takara Tomy
1315:Westchester
1305:Kansas City
1238:Deutschland
1216:Theme parks
992:Speed Racer
842:Hidden Side
707:Adventurers
676:Super Mario
631:Minifigures
310:for Windows
114:Cybermaster
87:Not Quite C
64:August 2018
56:introducing
1718:Lego stubs
1692:Categories
1525:Minifigure
1515:Lego House
1474:Epic Games
1358:Brickworld
1233:California
977:Scooby-Doo
967:RoboRiders
907:Mindstorms
857:Jack Stone
717:Alpha Team
661:Spider-Man
636:Monkie Kid
529:BrickHeadz
439:Bali Padda
278:for Ubuntu
247:References
122:C language
1500:Brickfilm
1452:BrickLink
1348:Brickfête
1343:BrickFest
1338:BrickFair
1163:Lego Life
1159:Software
1111:franchise
1052:Wild West
1042:Unikitty!
1027:Toy Story
1007:Spybotics
847:Homemaker
802:Exo-Force
666:Star Wars
646:Overwatch
626:Minecraft
591:Education
315:for Linux
213:compilers
1559:Category
1530:BrainPop
1469:Gameloft
1457:TT Games
1375:Robofest
1333:BrickCon
1268:New York
1263:Malaysia
1223:Legoland
982:Simpsons
807:Fabuland
767:Bionicle
757:Belville
737:Atlantis
732:Aquazone
576:Dreamzzz
475:Timeline
300:for BeOS
291:Archived
225:Mac OS X
168:OUT_FULL
156:SetPower
126:firmware
106:compiler
103:bytecode
1310:Toronto
1295:Chicago
1278:Windsor
1273:Sichuan
1248:Florida
1228:Billund
1017:Studios
937:Pirates
862:Juniors
822:Galidor
681:Technic
641:Ninjago
596:Friends
549:Creator
507:Current
467:History
288:for DOS
93:) is a
52:improve
1520:LUGNET
1432:HASBRO
1326:Events
1290:Boston
1047:Vidiyo
1002:Sports
962:Racers
912:Mixels
817:Fusion
772:Castle
752:Batman
712:Agents
686:Trains
571:Disney
524:Avatar
379:People
370:Kirkbi
237:MS-DOS
235:, and
1643:This
1586:This
1505:LDraw
1258:Korea
1253:Japan
1243:Dubai
1096:Media
1082:Games
987:Space
927:Ninja
827:Games
812:FORMA
797:Elves
777:Dacta
651:Sonic
611:Ideas
581:Duplo
554:Icons
229:Linux
183:OUT_A
177:OnFor
162:OUT_A
37:, or
1649:stub
1645:Lego
1592:stub
1062:Znap
792:DOTS
787:Dino
586:Dune
544:City
539:Cars
354:Lego
233:BeOS
215:and
211:NQC
144:main
141:task
116:and
519:Art
189:200
91:NQC
1694::
702:4+
243:.
231:,
227:,
223:,
192:);
171:);
147:()
112:,
97:,
41:,
33:,
1680:e
1673:t
1666:v
1655:.
1623:e
1616:t
1609:v
1598:.
1403:"
1399:"
346:e
339:t
332:v
198:}
186:,
180:(
165:,
159:(
153:{
89:(
77:)
71:(
66:)
62:(
48:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.