Skip to content

Commit

Permalink
Modification of code explanation style in ar_calibration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Serendipity-kk committed Sep 20, 2023
1 parent ad59509 commit 31940b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ In the 3-in-1 starter kit, you will find a complete Arduino course to help begin
## Update:
2023-09-20:
- Delete the description of serial number 14 in the car_assemble file (rechargeable is recommended)
- Modification of code explanation style in ar_calibration file

2023-09-19:
- Replace part of the project code link
Expand Down
3 changes: 3 additions & 0 deletions docs/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esbonio.sphinx.confDir": ""
}
18 changes: 9 additions & 9 deletions docs/source/basic_project/ar_calibration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ After 5 seconds, the LED will go out and we can wave our hands on the photoresis

.. code-block:: arduino
const int buzzerPin = 9;
const int ledPin = 8;
const int photocellPin = A0; //photoresistor attach to A2
const int buzzerPin = 9;
const int ledPin = 8;
const int photocellPin = A0; //photoresistor attach to A2
int lightLow = 1023;
int lightHigh = 0;
int lightLow = 1023;
int lightHigh = 0;
int sensorValue = 0; // value read from the sensor
int pitch = 0; // sensor value converted into LED 'bars'
int sensorValue = 0; // value read from the sensor
int pitch = 0; // sensor value converted into LED 'bars'
unsigned long previousMillis = 0;
const long interval = 5000;
unsigned long previousMillis = 0;
const long interval = 5000;
#. Set up a calibration process in ``setup()``.

Expand Down

0 comments on commit 31940b7

Please sign in to comment.