Skip to content

Commit 4fccfa9

Browse files
authored
Merge pull request #635 from arduino/mcmchris/opta-expansions/user-manual-section
[PC-1626] Opta Digital Expansion- Opta User Manual Section Merging to Launch Branch
2 parents e5ed459 + de52a30 commit 4fccfa9

File tree

703 files changed

+19580
-4333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

703 files changed

+19580
-4333
lines changed

.github/actions/cloudflare-upload/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
upload-dir:
55
description: "The name of the app to build and export"
66
required: true
7-
7+
88
project-name:
99
description: "The name of the project to upload to"
1010
required: true
@@ -66,7 +66,7 @@ runs:
6666
### ${{ inputs.project-name }}
6767
🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }}
6868
📍 Commit SHA: ${{ github.sha }}
69-
69+
7070
7171
- name: Update PR Preview Comment
7272
if: github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0

.github/workflows/cloudflare.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
1820
- uses: actions/setup-node@v3
1921
with:
2022
node-version: 18

.github/workflows/deploy-prd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
1921
- uses: actions/setup-node@v3
2022
with:
2123
node-version: 18

.github/workflows/deploy-stg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- run: git log -1 --pretty=format:%aI content/learn/04.electronics/05.servo-motors/servo-motors.md
1821
- uses: actions/setup-node@v3
1922
with:
2023
node-version: 18

content/arduino-cloud/01.guides/04.micropython/content.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Next step is to create some Cloud variables, which we will later interact with v
6161
1. While in Thing configuration, click on **"Add Variable"** which will open a new window.
6262
2. Name your variable `led` and select it to be of an `boolean` type.
6363
3. Click on **"Add Variable"** at the bottom of the window.
64-
4. Create another variable, name it `ledSwitch` and select it to be `int` type.
64+
4. Create another variable, name it `ledSwitch` and select it to be `boolean` type.
6565

6666
You should now have **two variables**:
6767
- `led` - boolean
@@ -153,6 +153,8 @@ led = Pin("LEDB", Pin.OUT) # Configure the desired LED pin as an output.
153153
def on_switch_changed(client, value):
154154
# Toggles the hardware LED on or off.
155155
led.value(not value)
156+
# Depending on the board you use you may need to use "led.value(value)" instead
157+
# so that the LED's state reflects correctly the boolean value.
156158

157159
# Sets the value of the Cloud variable "led" to the current state of the LED
158160
# and thus mirrors the hardware state in the Cloud.
@@ -223,4 +225,4 @@ If the code is not working, there are some common issues we can troubleshoot:
223225

224226
## Conclusion
225227

226-
This tutorial has guided you through the process of connecting your Arduino device to the Arduino Cloud using MicroPython. You learned how to install the necessary library, set up your device, and control an LED via the Arduino Cloud. This opens up possibilities for more complex applications, as you can control and monitor your Arduino device remotely.
228+
This tutorial has guided you through the process of connecting your Arduino device to the Arduino Cloud using MicroPython. You learned how to install the necessary library, set up your device, and control an LED via the Arduino Cloud. This opens up possibilities for more complex applications, as you can control and monitor your Arduino device remotely.
Loading
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Cloud Agent
3+
description: The Cloud Agent allows Arduino boards to interface with the Arduino Cloud.
4+
tags: [Arduino Cloud, Cloud Agent, Cloud Editor]
5+
author: Karl Söderby
6+
---
7+
8+
The [Arduino Cloud Agent](https://create.arduino.cc/getting-started/plugin/welcome) is a plugin that you install on your computer, that enables serial communication between your board and the Arduino Cloud. This allows you to upload sketches, and read/write serial data to/from your board, via your web browser.
9+
10+
The Cloud Agent is a requirement to program your devices in the Arduino Cloud, and takes only a minute to install.
11+
12+
## Installation
13+
14+
When you configure a device or use the Cloud Editor, you will automatically receive a prompt to install the Cloud Agent.
15+
16+
You can also access the download page through [this link](https://create.arduino.cc/getting-started/plugin/welcome). It should look like this:
17+
18+
![Download Cloud Agent.](assets/install-agent.png)
19+
20+
Follow the installation guide in the page, where you will download an installation file. To install it, run the file and follow the instructions for your operating system.
21+
22+
Once installed, you can navigate back to the Cloud Editor, and you should be able to recognize the board connected to your computer.
23+
24+
![Board connected to computer.](assets/board-connected.png)
25+
26+
## Source Code
27+
28+
The source code for the Cloud Agent lives [in this GitHub repository](https://github.com/arduino/arduino-create-agent). To report issues or improvements, please do so inside in this repository.
29+
30+
## Troubleshooting
31+
32+
If you are having issues with the Cloud Agent, you can visit the link below:
33+
- [Arduino Help Center - Create Agent](https://support.arduino.cc/hc/en-us/articles/360014869820-Install-the-Arduino-Create-Agent)

content/arduino-cloud/07.api/05.javascript/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ $ npm install arduino-iot-js
3434
$ yarn add arduino-iot-js
3535
```
3636

37-
***Check out the [JavaScript Setup guide](/arduino-cloud/guides/javascript) for more information and a detailed step by step tutorial.***
37+
***Check out the [JavaScript Setup guide](/arduino-cloud/guides/javascript) for more information and a detailed step by step tutorial.***
3838

3939
## Connection Methods
4040

4141
There are three available methods for connection:
42-
- Using device credentials (recommended method).
42+
- Using device credentials (recommended method).
4343
- Using an API key (generated and listed at [Arduino Cloud API keys](https://app.arduino.cc/app-keys)).
4444
- Using a [JWT token](https://jwt.io/)
4545

0 commit comments

Comments
 (0)