<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Halocode by </title>
      <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe</link>
      <description>Made with wonder</description>
      <language>en-us</language>
      <pubDate>2022-05-24 08:33:34 UTC</pubDate>
      <lastBuildDate>2022-05-24 15:26:56 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Chapter 1 Activity 1</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197343933</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; halo.led.show_animation('rainbow')</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 08:35:32 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197343933</guid>
      </item>
      <item>
         <title>Chapter 1 Activity 2</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197356591</link>
         <description><![CDATA[<div># generated by mBlock5 for HaloCode</div><div># codes make you happy</div><div><br></div><div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; halo.led.show_single(1, 0, 0, 255)</div><div>&nbsp; &nbsp; halo.led.show_single(2, 0, 255, 0)</div><div>&nbsp; &nbsp; halo.led.show_single(3, 255, 255, 255)</div><div>&nbsp; &nbsp; halo.led.show_single(4, 255, 0, 0)</div><div>&nbsp; &nbsp; halo.led.show_single(5, 0, 0, 255)</div><div>&nbsp; &nbsp; halo.led.show_single(6, 0, 255, 0)</div><div>&nbsp; &nbsp; halo.led.show_single(7, 255, 255, 255)</div><div>&nbsp; &nbsp; halo.led.show_single(8, 255, 0, 0)</div><div>&nbsp; &nbsp; halo.led.show_single(9, 0, 0, 255)</div><div>&nbsp; &nbsp; halo.led.show_single(10, 0, 255, 0)</div><div>&nbsp; &nbsp; halo.led.show_single(11, 255, 255, 255)</div><div>&nbsp; &nbsp; halo.led.show_single(12, 255, 0, 0)</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 08:44:23 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197356591</guid>
      </item>
      <item>
         <title>Chapter 1 Activity 3</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197365269</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; global count</div><div>&nbsp; &nbsp; count = 0</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; count = count + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(count, 255, 0, 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 08:50:42 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197365269</guid>
      </item>
      <item>
         <title>Chapter 1 Activity 3 (random color)</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197395077</link>
         <description><![CDATA[<div>import event, halo, time, random</div><div><br><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; global count</div><div>&nbsp; &nbsp; count = 0</div><div>&nbsp; &nbsp; red = 0</div><div>&nbsp; &nbsp; green = 0</div><div>&nbsp; &nbsp; blue = 0</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; count = count + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; red = random.randint(0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; green = random.randint(0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; blue = random.randint(0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(count, red, green, blue)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 09:13:49 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197395077</guid>
      </item>
      <item>
         <title>Chapter 1 Activity 3 (anticlockwise)</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197398067</link>
         <description><![CDATA[<div>import event, halo, time, random</div><div><br><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; global count</div><div>&nbsp; &nbsp; count = 12</div><div>&nbsp; &nbsp; red = 0</div><div>&nbsp; &nbsp; green = 0</div><div>&nbsp; &nbsp; blue = 0</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; red = random.randint(0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; green = random.randint(0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; blue = random.randint(0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(count, red, green, blue)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; count = count - 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 09:16:27 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197398067</guid>
      </item>
      <item>
         <title>Chapter 2 Activity 1</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197404643</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.button.is_pressed():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_all(255, 0, 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.off_all()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad0.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_all(0, 0, 255)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad1.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_all(0, 255, 0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad2.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_all(255, 0, 255)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad3.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_all(0, 255, 255)</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 09:22:27 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197404643</guid>
      </item>
      <item>
         <title>Chapter 2 Activity 2</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197407985</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.motion_sensor.is_tilted_left():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_rainbow()</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.motion_sensor.is_tilted_right():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_rainbow()</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.motion_sensor.is_arrow_up():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; up_rainbow()</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.motion_sensor.is_arrow_down():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; down_rainbow()</div><div><br></div><div>def left_rainbow ():</div><div>&nbsp; &nbsp; halo.led.show_ring('black black black black black purple blue cyan green yellow orange red')</div><div><br></div><div>def right_rainbow ():</div><div>&nbsp; &nbsp; halo.led.show_ring('orange yellow green cyan blue purple black black black black black red')</div><div><br></div><div>def up_rainbow ():</div><div>&nbsp; &nbsp; halo.led.show_ring('black black blue green orange red yellow cyan purple black black black')</div><div><br></div><div>def down_rainbow ():</div><div>&nbsp; &nbsp; halo.led.show_ring('orange green blue black black black black black purple cyan yellow red')</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 09:25:12 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197407985</guid>
      </item>
      <item>
         <title>Chapter 2 Challenge</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197461697</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad0.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad0.get_value() &gt; 90:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strong()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad0.get_value() &lt; 90:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; weak()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div><br></div><div>def strong():</div><div>&nbsp; &nbsp; halo.led.show_all(255, 0,0)</div><div>&nbsp; &nbsp; time.sleep(1)</div><div>&nbsp; &nbsp; halo.led.off_all()</div><div>&nbsp; &nbsp; time.sleep(1)</div><div><br></div><div>def weak():</div><div>&nbsp; &nbsp; halo.led.show_all(0, 0,255)</div><div>&nbsp; &nbsp; time.sleep(1)</div><div>&nbsp; &nbsp; halo.led.off_all()</div><div>&nbsp; &nbsp; time.sleep(1)</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 10:14:24 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197461697</guid>
      </item>
      <item>
         <title>Chapter 3 Actuators Activity 1 Tilt Smile</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197510595</link>
         <description><![CDATA[<div># generated by mBlock5 for HaloCode</div><div># codes make you happy</div><div><br></div><div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.motion_sensor.get_pitch() &gt; 70:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_ring('yellow black black yellow yellow yellow yellow yellow black black yellow black')</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; else:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.off_all()</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 10:59:48 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197510595</guid>
      </item>
      <item>
         <title>Chapter 3 Actuators Activity 2 Jump Counter</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197516084</link>
         <description><![CDATA[<div># generated by mBlock5 for HaloCode</div><div># codes make you happy</div><div><br></div><div>import event, halo, time</div><div><br></div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; global jump_count</div><div>&nbsp; &nbsp; jump_count = 0</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; while not halo.motion_sensor.is_shaked():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pass</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; jump_count = jump_count + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(jump_count, 255, 0, 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 11:05:35 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197516084</guid>
      </item>
      <item>
         <title>Chapter 3 Actuators Challenge JumpCounterV2</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197519680</link>
         <description><![CDATA[<div><br></div><div><br></div><div>import event, halo, time</div><div># initialize variables</div><div>jump_count = 0</div><div>rounds = 0</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; global jump_count, rounds</div><div>&nbsp; &nbsp; jump_count = 0</div><div>&nbsp; &nbsp; rounds = 1</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if jump_count == 12 and rounds == 3:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jump_count = 0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rounds = 1</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if jump_count == 12:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rounds = rounds + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jump_count = 0</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; while not halo.motion_sensor.is_shaked():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pass</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; jump_count = jump_count + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if rounds == 1:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(jump_count, 255, 0, 0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if rounds == 2:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(jump_count, 0, 255, 0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if rounds == 3:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(jump_count, 0, 0, 255)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(1)</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 11:09:01 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197519680</guid>
      </item>
      <item>
         <title>Chapter 4 ServoMotor Activity 1 ServoTouch</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197698633</link>
         <description><![CDATA[<div># generated by mBlock5 for HaloCode</div><div># codes make you happy</div><div><br></div><div>import event, halo, time</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad1.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.pin0.servo_write(0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.touchpad2.is_touched():</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.pin0.servo_write(180)</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 13:25:38 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197698633</guid>
      </item>
      <item>
         <title>Chapter 4 ServoMotor Activity 2 WindscreenWiper</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197710180</link>
         <description><![CDATA[<div># generated by mBlock5 for HaloCode</div><div># codes make you happy</div><div><br></div><div>import event, halo, time</div><div># initialize variables</div><div>WiperSpeed = 0</div><div><br></div><div>@event.start</div><div>def on_start():</div><div>&nbsp; &nbsp; global WiperSpeed</div><div>&nbsp; &nbsp; WiperSpeed = 2</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if WiperSpeed == 0:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WiperSpeed = 2</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; halo.pin0.servo_write(0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(float(WiperSpeed))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; halo.pin0.servo_write(180)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(float(WiperSpeed))</div><div><br></div><div>@event.button_pressed</div><div>def on_button_pressed():</div><div>&nbsp; &nbsp; global WiperSpeed</div><div>&nbsp; &nbsp; WiperSpeed = WiperSpeed - 0.5</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 13:32:31 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197710180</guid>
      </item>
      <item>
         <title>Chapter 5 ExternalSensor Activity 1 MoistureDetector</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197858437</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div>@event.button_pressed</div><div>def on_button_pressed():</div><div>&nbsp; &nbsp; halo.led.off_all()</div><div>&nbsp; &nbsp; while halo.pin2.read_analog() &gt; 0:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_analog() &lt; 974:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(7, 255, 0, 0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_analog() &lt; 500:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(6, 0, 0, 255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(8, 0, 0, 255)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_analog() &lt; 90:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(5, 0, 255, 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(9, 0, 255, 0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_analog() &lt; 80:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(4, 100, 0 ,255)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(10, 100, 0 ,255)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_analog() &lt; 70:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(3, 0, 100, 50)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_single(11, 0, 100, 50)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; else:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.off_all()</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; print(halo.pin2.read_analog())</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 15:02:28 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197858437</guid>
      </item>
      <item>
         <title>Chapter 5 ExternalSensor Activity 2 ProximitySensor</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197889048</link>
         <description><![CDATA[<div>import event, halo, time</div><div><br></div><div>@event.button_pressed</div><div>def on_button_pressed():</div><div>&nbsp; &nbsp; halo.led.off_all()</div><div>&nbsp; &nbsp; while True:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_digital() == 0:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for count in range(1):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_ring('red white white white red red red white white white red red')</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_ring('red white white white red red red white white white red red', 3)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; else:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.off_all()</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 15:22:24 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197889048</guid>
      </item>
      <item>
         <title>Chapter 5 ExternalSensor Challenge (VisitorCounter)</title>
         <author>kwangyongyew1</author>
         <link>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197896334</link>
         <description><![CDATA[<div><br>import event, halo, time<br># initialize variables<br>count = 0<br>@event.start<br>def on_start():<br>&nbsp; &nbsp; global count<br>&nbsp; &nbsp; halo.led.off_all()<br>&nbsp; &nbsp; while True:<br>&nbsp; &nbsp; &nbsp; &nbsp; if halo.pin2.read_digital() == 0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count = count + 1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_ring('red white white white red red red white white white red red')<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.show_ring('red white white white red red red white white white red red', 3)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time.sleep(2)<br>&nbsp; &nbsp; &nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halo.led.off_all()<br>@event.button_pressed<br>def on_button_pressed():<br>&nbsp; &nbsp; global count<br>&nbsp; &nbsp; print(count)<br>&nbsp; &nbsp;&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-24 15:26:16 UTC</pubDate>
         <guid>https://padlet.com/kwangyongyew1/bl5o0t00zx3p7eqe/wish/2197896334</guid>
      </item>
   </channel>
</rss>
