# Case 30: The Ambient Lighting ## Purpose --- Make an ambient lighting. ![](./images/Wonder-Building-Kit-case-30-01.png) ## Link: --- [micro:bit Wonder Building Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-32-in-1-wonder-building-kit-without-micro-bit-board?_pos=5&_sid=2094afd2f&_ss=r) ## Materials Required --- ![](./images/Wonder-Building-Kit-step-case-30-01.png) ## Bricks build-up --- ![](./images/Wonder-Building-Kit-step-case-30-02.png) ![](./images/Wonder-Building-Kit-step-case-30-03.png) ![](./images/Wonder-Building-Kit-step-case-30-04.png) ![](./images/Wonder-Building-Kit-step-case-30-05.png) ![](./images/Wonder-Building-Kit-step-case-30-06.png) ![](./images/Wonder-Building-Kit-step-case-30-07.png) ![](./images/Wonder-Building-Kit-step-case-30-08.png) ![](./images/Wonder-Building-Kit-step-case-30-09.png) ![](./images/Wonder-Building-Kit-step-case-30-10.png) ![](./images/Wonder-Building-Kit-step-case-30-11.png) ![](./images/Wonder-Building-Kit-step-case-30-12.png) ![](./images/Wonder-Building-Kit-step-case-30-13.png) ![](./images/Wonder-Building-Kit-step-case-30-14.png) ![](./images/Wonder-Building-Kit-step-case-30-15.png) ![](./images/Wonder-Building-Kit-step-case-30-16.png) ![](./images/Wonder-Building-Kit-step-case-30-17.png) ![](./images/Wonder-Building-Kit-step-case-30-18.png) ![](./images/Wonder-Building-Kit-step-case-30-19.png) ![](./images/Wonder-Building-Kit-step-case-30-20.png) ![](./images/Wonder-Building-Kit-step-case-30-21.png) ![](./images/Wonder-Building-Kit-step-case-30-22.png) ![](./images/Wonder-Building-Kit-step-case-30-23.png) ![](./images/Wonder-Building-Kit-step-case-30-24.png) ## Software Platform --- [MakeCode](https://makecode.microbit.org/) ## Coding --- ### Add extensions Click "Advanced" in the MakeCode to see more choices. ![](./images/Wonder-Building-Kit-case-21-02.png) Search with Wukong in the dialogue box to download it. ![](./images/Wonder-Building-Kit-case-21-03.png) ### Program ![](./images/Wonder-Building-Kit-case-30-04.png) Link:[https://makecode.microbit.org/_hHDAH6Fz6YCb](https://makecode.microbit.org/_hHDAH6Fz6YCb) ### Result When button A is pressed, the four Rainbow LEDs of the Wukong breakout board will light up. Pressing button A again, the color will change; and when button B is pressed, all LEDs are off.