Skip to content

Commit 238fbc0

Browse files
committed
Docs update
Quick start guide review edits. Adding GH pages build files.
1 parent a461bb8 commit 238fbc0

File tree

7 files changed

+73
-26
lines changed

7 files changed

+73
-26
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build Documentation
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow files to be committed to gh-pages branch
12+
permissions:
13+
contents: write
14+
15+
16+
jobs:
17+
deploy:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Instal pgnquant for optimize plugin
27+
run: sudo apt-get install pngquant
28+
29+
- name: Set up Python runtime
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: 3.x
33+
34+
- name: Install Python dependencies
35+
run: pip install mkdocs-monorepo-plugin mkdocs-redirects mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 Pillow 'mkdocs-material[imaging]'
36+
37+
- name: Set up build cache
38+
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
39+
- uses: actions/cache@v4
40+
with:
41+
key: mkdocs-material-${{ env.cache_id }}
42+
path: .cache
43+
restore-keys: |
44+
mkdocs-material-
45+
46+
- name: Install Insiders build
47+
env:
48+
MKDOCS_TOKEN: ${{ secrets.MKDOCS_SECRET }}
49+
run: pip install git+https://${MKDOCS_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
50+
- run: mkdocs gh-deploy --clean

README.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,25 @@
1-
SparkFun <PRODUCT NAME>
2-
========================================
1+
[![SparkFun Teensy Ethernet Adapter](./docs/assets/img/Ethernet_Adapter-GH_Banner.png)](https://www.sparkfun.com/sparkfun-ethernet-adapter-for-teensy.html)
32

4-
[![SparkFun Part Name](URL for picture of part)](URL for product on Sparkfun.com)
5-
6-
[*SparkFun Part Name (SKU)*](URL for product on Sparkfun.com)
3+
[*SparkFun Teensy Ethernet Adapter (PRT-29920)*](https://www.sparkfun.com/sparkfun-ethernet-adapter-for-teensy.html)
74

85
<Basic description of the part.>
96

107
Repository Contents
118
-------------------
129

10+
* **/docs** - Tutorial content files
1311
* **/Documentation** - Data sheets, additional product information
14-
* **/Enclosure** - Enclosure files
15-
* **/Firmware** - Example code
1612
* **/Hardware** - Eagle design files (.brd, .sch)
17-
* **/Libraries** - Libraries for use with the <PRODUCT NAME>
1813
* **/Production** - Production panel files (.brd)
19-
* **/Software** - Related software for the <PRODUCT NAME>
2014

2115
Documentation
2216
--------------
23-
* **[Library](GitHub library URL)** - <LANGUAGE> library for the <PRODUCT NAME>.
24-
* **[Hookup Guide](Learn.SparkFun URL)** - Basic hookup guide for the <PRODUCT NAME>.
25-
* **[SparkFun Fritzing repo](https://github.com/sparkfun/Fritzing_Parts)** - Fritzing diagrams for SparkFun products.
26-
* **[SparkFun 3D Model repo](https://github.com/sparkfun/3D_Models)** - 3D models of SparkFun products.
27-
* **[SparkFun Graphical Datasheets](https://github.com/sparkfun/Graphical_Datasheets)** -Graphical Datasheets for various SparkFun products.
17+
* **[Quick Start Guide](Learn.SparkFun URL)** - A quick guide to get started with the SparkFun Teensy Ethernet Adapter.
2818

2919
Product Versions
3020
----------------
31-
* [Part SKU](part URL) - Basic part and short description here
32-
* [Retail part SKU](retail URL) - Retail packaging of standard description here
33-
* [Any other parts this repo covers](any other URLs) - Description of said parts
21+
* [PRT-29920](https://www.sparkfun.com/sparkfun-ethernet-adapter-for-teensy.html) - Initial release of SparkFun Teensy Ethernet Adapter
3422

35-
Version History
36-
---------------
37-
* [vExxFxxZxxHxxLxxSxx](URL for tag specific to this version) - Description
38-
* [vEyyFyyZyyHyyLyySyy](URL for tag specific to this version) - Description
3923

4024
License Information
4125
-------------------
@@ -48,6 +32,4 @@ If you have any questions or concerns on licensing, please contact technical sup
4832

4933
Distributed as-is; no warranty is given.
5034

51-
- Your friends at SparkFun.
52-
53-
_<COLLABORATION CREDIT>_
35+
- Your friends at SparkFun.
211 KB
Loading

docs/assets/img/sfe_logo_sm.png

5.41 KB
Loading

docs/assets/img/sfe_logo_sq.png

14.5 KB
Loading

docs/assets/img/thumbnail.jpg

39.8 KB
Loading

docs/quickstart.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@ If the Ethernet library is not already installed, open the "Library Manager" too
7676

7777
## Arduino Example
7878

79-
Now that we have everything assembled, connected and installed, let's run a quick test sketch in Arduino to make sure we can connect to the Internet. For this we'll use the **WebClient** example included in the **Ethernet Arduino Library** to connect to a website (in this case, http://www.google.com). Open the example by navigating to **File** > **Examples** > **Ethernet** > **WebClient**. Select your Board and Port and click the "Upload" button.
79+
Now that we have everything assembled, connected and installed, let's run a quick test sketch in Arduino to make sure we can connect to the Internet. For this we'll use the **WebClient** example included in the **Ethernet Arduino Library** to connect to a website (in this case, http://www.pjrc.com) and print out . Open the example by navigating to **File** > **Examples** > **Ethernet** > **WebClient**. Select your Board and Port and click the "Upload" button.
8080

81-
After the code finishes compiling and uploading, open the [serial monitor](https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-serial-monitor/) with the baud set to **9600**.
81+
After the code finishes compiling and uploading, open the [serial monitor](https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-serial-monitor/) with the baud set to **9600**. The example attempts to
82+
83+
<figure markdown>
84+
[![Screenshot of WebClient serial printout](./assets/img/Ethernet_Adapter-Serial.png){ width="600"}](./assets/img/Ethernet_Adapter-Serial.png "Click to enlarge")
85+
</figure>
86+
87+
### Code to Note
88+
89+
You may notice in the screenshot above that the Teensy is connecting to "www.pjrc.com" instead of "www.google.com". The code defaults to use DNS to connect to a website here:
90+
91+
``` c++
92+
//IPAddress server(74,125,232,128); // numeric IP for Google (no DNS)
93+
char server[] = "www.google.com"; // name address for Google (using DNS)
94+
```
95+
96+
You can enter any full web address here so we changed it to PJRC's website. Alternatively, you can uncomment the <code>IPAddress server ();</code> line and comment out the <code>char server[] = "www.google.com";</code> to connect directly to an IP address and bypass DNS to reduce the size of the sketch.

0 commit comments

Comments
 (0)