Skip to content

Commit 4ce468a

Browse files
author
Alan Shaw
committed
Formatting fixes
1 parent 08ebfac commit 4ce468a

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

exercises/ping_bell/problem.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
__Create a UDP server that plays a sound when a message is received.__
22

3-
* Attach a piezo to pin 8.
4-
* Use the `dgram` node module to create a **udp4** socket.
5-
* Bind your server to port **1337** and listen for messages.
6-
* When a message is received, have the piezo play a tune.
3+
* Attach a piezo to pin 8
4+
* Use the `dgram` node module to create a **udp4** socket
5+
* Bind your server to port **1337** and listen for messages
6+
* When a message is received, have the piezo play a tune
77

88
## Circuit diagram
99

@@ -19,3 +19,5 @@ __Create a UDP server that plays a sound when a message is received.__
1919

2020
- http://nodejs.org/api/dgram.html
2121
- https://github.com/rwaldron/johnny-five/blob/master/docs/piezo.md
22+
23+
---

exercises/remote_temperature/problem.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ __Temperature near you as a service.__
33
Use dnode to create an rpc server that allows anyone to query the last known
44
temperature of a TMP36 temperature sensor.
55

6-
* Attach temperature sensor to **A0**.
7-
* Install dnode `npm install dnode`.
8-
* Setup your dnode server to listen on port 1337.
9-
* Your rpc endpoint should expose a function called `getTemperature`.
10-
* `getTemperature` should callback with the temperature in **celsius**.
6+
* Attach temperature sensor to **A0**
7+
* Install dnode `npm install dnode`
8+
* Setup your dnode server to listen on port 1337
9+
* Your rpc endpoint should expose a function called `getTemperature`
10+
* `getTemperature` should callback with the temperature in **celsius**
1111

1212
## Circuit diagram
1313

@@ -32,13 +32,15 @@ GND o-----'
3232
3333
## Hints
3434

35-
- Remember, you're always working with voltages on pins.
36-
- The value from a sensor is a representation of the voltage on that pin.
35+
- Remember, you're always working with voltages on pins
36+
- The value from a sensor is a representation of the voltage on that pin
3737
- You'll need to convert that value into a useful temperature reading...
38-
- To create an enpoint, pass dnode an object with your endpoint as a method.
39-
- Your endpoint should take a callback and pass the value to it.
38+
- To create an enpoint, pass dnode an object with your endpoint as a method
39+
- Your endpoint should take a callback and pass the value to it
4040

4141
## Docs
4242

4343
- https://github.com/rwaldron/johnny-five/blob/master/docs/sensor-temperature-tmp36.md
4444
- dnode - https://github.com/substack/dnode
45+
46+
---

exercises/robot_arm/problem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ GND o---.------/\/\/------.
4646
- A pot produces input values between 0 and 1023.
4747
- A servo can typically be moved between 0 and 179 degrees.
4848
- `five.Fn.map` can map the pot values (0 - 1023) to servo angles (0 - 179).
49+
50+
---

exercises/street_lamp/problem.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
__Build a street lamp that turns on as it gets dark.__
22

3-
* Use photoresistor and an LED.
4-
* Connect the photoresistor to A0 and the LED to 9.
5-
* Make the LED turn on when the photoresistor's value is greater than 600.
3+
* Use photoresistor and an LED
4+
* Connect the photoresistor to A0 and the LED to 9
5+
* Make the LED turn on when the photoresistor's value is greater than 600
66

77
## Circuit diagram
88

@@ -28,3 +28,5 @@ __Build a street lamp that turns on as it gets dark.__
2828
`johnny-five` has a generic Sensor object for handling various analog inputs.
2929
It fires a data event with the current reading of the sensor.
3030
The sensor value is available to the callback as `this.value`
31+
32+
---

0 commit comments

Comments
 (0)