Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
samlcy1997 committed Nov 18, 2021
1 parent f16ca12 commit 591d57f
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/smartcity/case01.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Connect LED light to the P3 port of Smarthon IoT:bit<BR><P>
<BR>![auto_fit](images/Case1/Case1_hardware.png)
<P>

*Pull the buzzer switch 'up' to disconnect the buzzer in this execrise*

## Programming (MakeCode)
<HR>

Expand Down
1 change: 1 addition & 0 deletions docs/smartcity/case02.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Connect Light Sensor to P0 port of IoT:bit<BR><P>
Connect 180° Servo to P2 port of IoT:bit<BR><P>
![auto_fit](images/Case2/Case2_hardware.png)<P>

*Pull the buzzer switch 'up' to disconnect the buzzer in this execrise*
## Programming (MakeCode)
<HR>

Expand Down
1 change: 1 addition & 0 deletions docs/smartcity/case06.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Connect the Raindrop Sensor to P0 port of IoT:bit<BR><P>
Connect the Temperature and humidity Sensor to P2 port of IoT:bit<BR><P>
![auto_fit](images/Case6/Case6_hardware.png)<P>

*Pull the buzzer switch 'up' to disconnect the buzzer in this execrise*

## IoT (ThingSpeak)
<HR>
Expand Down
1 change: 1 addition & 0 deletions docs/smartcity/case07.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Connect the Motion Sensor to P1 port of IoT:bit<BR><P>
Turn on the Buzzer Switch on P0 port of IoT:bit<BR><P>
![auto_fit](images/Case7/Case7_hardware.png)<P>

*Pull the buzzer switch <B>'down'</B> to connect the buzzer in this execrise*
## IoT (IFTTT)
<HR>

Expand Down
1 change: 1 addition & 0 deletions docs/smartcity/case08.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ N/A
Connect the Light Sensor to P0 port of IoT:bit<BR><P>
![auto_fit](images/Case8/Case8a_hardware.png)<P>

*Pull the buzzer switch 'up' to disconnect the buzzer in this execrise*

### Programming (MakeCode)
<HR>
Expand Down
14 changes: 11 additions & 3 deletions docs/smartcity/case10.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ Assembly completed!<BR><P>
## Hardware connect
<HR>

Connect the white LED Light to P1 port of IoT:bit<BR><P>
Connect the white LED Light to P0 port of IoT:bit<BR><P>
![auto_fit](images/Case10/Case10_hardware.png)<P>

*Pull the buzzer switch 'up' to disconnect the buzzer in this execrise*

## Programming (MakeCode)
<HR>

Expand All @@ -65,16 +67,22 @@ Connect the white LED Light to P1 port of IoT:bit<BR><P>
<span id="subtitle">Step 4. Turn on/off LED by WAN command</span><BR><P>
* Snap `if-condition`
* Set variable `WAN_Command` = `lighton` into `if-condition`
* `turn White LED …` from `SmartCity` > `Output`, turn white LED with intensity: 1023 at P1
* `turn White LED …` from `SmartCity` > `Output`, turn white LED with intensity: 1023 at P0
* Set variable `WAN_Command` = `lightoff` into `else-if-condition`
* Snap `turn White LED …` from `SmartCity` > `Output`, turn white LED with intensity: 0 at P1
* Snap `turn White LED …` from `SmartCity` > `Output`, turn white LED with intensity: 0 at P0
![auto_fit](images/Case10/Case10_p4.png)<P>


<span id="subtitle">Full Solution<BR><P>
<<<<<<< HEAD
MakeCode: [https://makecode.microbit.org/_6DuRvwD5PYpU](https://makecode.microbit.org/_6DuRvwD5PYpU)<BR><P>
You could also download the program from the following website:<BR>
<iframe src="https://makecode.microbit.org/#pub:_6DuRvwD5PYpU" width="100%" height="500" frameborder="0"></iframe>
=======
MakeCode: [https://makecode.microbit.org/_2cRf6LWq69AL](https://makecode.microbit.org/_2cRf6LWq69AL)<BR><P>
You could also download the program from the following website:<BR>
<iframe src="https://makecode.microbit.org/#pub:_2cRf6LWq69AL" width="100%" height="500" frameborder="0"></iframe>
>>>>>>> f16ca1229b020beb4e91d7e16791193a6cb0c679

## IoT (IFTTT)
Expand Down
Binary file modified docs/smartcity/images/Case1/Case1_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case10/Case10_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case10/Case10_p4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case2/Case2_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case6/Case6_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case7/Case7_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case8/Case8a_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/smartcity/images/Case8/Case8b_hardware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 591d57f

Please sign in to comment.