The coding class finished programming their recent robot. They learned how to have multiple threads of program execution and how to interrupt one thread from another and how to use global variables as flags to send quick messages across threads.
利用multiple threads和program execution, 機器狗終於完成了!
In this week's coding class we discussed program threads and how Lego Mindstorms software allows kids to create multi-threaded programming. The kids finished building the Znap robot from instructions and then started programming it with only the rough outline that was written on the board as a guide. They need to use multiple loops, variables, and a new loop interrupt instruction.
這星期我們探討了電腦程式裡的multi-threading功能，利用Lego Mindstorms的程式設計軟體，孩子們練習了multiple loops, variables, 還有 loop interrupt。
In this week's coding class we wrote a color calibration program to ensure the EV3 color sensor always works in any light situation. We also ended up having a mini-science class discussing how reflective light affects color perception. If a blue toy is in a closed room with only a red light shining on it, what color does the toy look like?