Skip to content

Commit

Permalink
Minor Update (#36)
Browse files Browse the repository at this point in the history
* Update images for Network examples: changing from AmebaWiFi to WiFi
* Update SPI example: image and example name
  • Loading branch information
daphwl committed Jun 29, 2022
1 parent a8303b5 commit 5707879
Show file tree
Hide file tree
Showing 177 changed files with 2,813 additions and 2,079 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ HTTP - Set up Server to Control LED
| For BW16 board, you may consider to re-define "LED_PIN" macro to **10** for built-in green LED, or **11** for blue built-in LED, or **12** for red built-in LED to avoid using extra components.

| Then open ``“File” -> “Examples” -> “AmebaWiFi” -> “SimpleWebServerWiFi”``
| Then open ``“File” -> “Examples” -> “WiFi” -> “SimpleWebServerWiFi”``
|2|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ HTTP - Set up Server to Get the Ameba Status

| In this example, we connect Ameba to WiFi and use Ameba as server to
send message to connected client.
| First, open ``“File” -> “Examples” -> “AmebaWiFi” -> “WiFiWebServer”``
| First, open ``“File” -> “Examples” -> “WiFi” -> “WiFiWebServer”``
|1|

Expand Down Expand Up @@ -81,8 +81,8 @@ HTTP - Set up Server to Get the Ameba Status


.. |1| image:: /media/ambd_arduino/HTTP_Set_Up_Server_To_Get_The_Ameba_Status/image1.png
:width: 716
:height: 1226
:width: 1156
:height: 958
:scale: 70 %
.. |2| image:: /media/ambd_arduino/HTTP_Set_Up_Server_To_Get_The_Ameba_Status/image2.png
:width: 716
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Pinterest etc.

| Once the Applet is ready in the IFTTT dashboard, the example program can be flashed
onto the Ameba board to post the HTTP request.
| Open the example code in ``“File” -> “Examples” -> “AmebaWiFi” -> “HTTP_IFTTT_Post”``
| Open the example code in ``“File” -> “Examples” -> “WiFi” -> “HTTP_IFTTT_Post”``
| In the example program, edit the following 3 items inside the code to make the
program work.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Note that this example only works after you have set up the server and then conf
**Procedure**

Step 1. IPv6TCPServer
Open the example, ``“Files” -> “Examples” -> “AmebaWiFi” -> “IPv6TCPServer”``.
Open the example, ``“Files” -> “Examples” -> “WiFi” -> “IPv6TCPServer”``.

|1|

Expand All @@ -38,7 +38,7 @@ Open Serial Monitor and copy the IPv6 address of the Server (the highlighted are
|3|

Step 2. IPv6TCPClient
Now take the second Ameba D and open another example, ``“Files” -> “Examples” -> “AmebaWiFi” -> “IPv6TCPClient”``.
Now take the second Ameba D and open another example, ``“Files” -> “Examples” -> “WiFi” -> “IPv6TCPClient”``.

|4|

Expand All @@ -60,8 +60,8 @@ IPv6 address to “IPv6TCPClient” example in the highlighted area below,
|8|

.. |1| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_TCP/image1.png
:width: 379
:height: 444
:width: 1160
:height: 962
:scale: 100 %
.. |2| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_TCP/image2.png
:width: 427
Expand All @@ -72,8 +72,8 @@ IPv6 address to “IPv6TCPClient” example in the highlighted area below,
:height: 294
:scale: 100 %
.. |4| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_TCP/image4.png
:width: 391
:height: 452
:width: 1196
:height: 957
:scale: 100 %
.. |5| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_TCP/image5.png
:width: 431
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Open Serial Monitor and copy the IPv6 address of the Server (the highlighted are
|3|

Step 2. IPv6UDPClient
Now take the second Ameba D and open another example, ``“Files” -> “Examples” -> “AmebaWiFi” -> “IPv6UDPClient”``.
Now take the second Ameba D and open another example, ``“Files” -> “Examples” -> “WiFi” -> “IPv6UDPClient”``.

|4|

Expand All @@ -54,9 +54,9 @@ IPv6 address to “IPv6UDPClient” example in the highlighted area below,

|8|

.. |1| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_TCP/image1.png
:width: 453
:height: 525
.. |1| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_UDP/image1.png
:width: 1158
:height: 961
:scale: 100 %
.. |2| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_UDP/image2.png
:width: 458
Expand All @@ -67,8 +67,8 @@ IPv6 address to “IPv6UDPClient” example in the highlighted area below,
:height: 294
:scale: 100 %
.. |4| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_UDP/image4.png
:width: 426
:height: 491
:width: 1156
:height: 962
:scale: 100 %
.. |5| image:: /media/ambd_arduino/IPv6_Ameba_As_IPv6_Server_Client_Over_UDP/image5.png
:width: 436
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ calculates the UDP receive delay. 
**Ameba Preparation** 
Open the “CalculateUdpReceiveDelay” example in
``“File” -> “Examples” -> “AmebaWiFi” -> “UDP_Calculation” -> “CalculateUdpReceiveDelay”``.
``“File” -> “Examples” -> “WiFi” -> “UDP_Calculation” -> “CalculateUdpReceiveDelay”``.

|1|

Expand Down Expand Up @@ -68,8 +68,8 @@ monitor. It may take up to a few minutes for 10000 packets to be sent.
|5|

.. |1| image:: /media/ambd_arduino/WiFi_Approximate_UDP_Receive_Delay/image1.png
:width: 852
:height: 1006
:width: 1157
:height: 962
:scale: 80 %
.. |2| image:: /media/ambd_arduino/WiFi_Approximate_UDP_Receive_Delay/image2.png
:width: 721
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ calculates the allowed UDP receive timeout setting.
**Ameba Preparation**

Open the “CalculateUdpReceiveTimeout” example in
``“File” -> “Examples” -> “AmebaWiFi” -> ” UDP_Calculation ” -> “CalculateUdpReceiveTimeout”``.
``“File” -> “Examples” -> “WiFi” -> ” UDP_Calculation ” -> “CalculateUdpReceiveTimeout”``.

|1|

Expand Down Expand Up @@ -72,8 +72,8 @@ packet and increases the timeout value. Open the serial monitor and
observe the timeout value converge to a minimum value.

.. |1| image:: /media/ambd_arduino/WiFi_Approximate_UDP_Receive_Timeout/image1.png
:width: 852
:height: 1006
:width: 1152
:height: 962
:scale: 70 %
.. |2| image:: /media/ambd_arduino/WiFi_Approximate_UDP_Receive_Timeout/image2.png
:width: 721
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the UDP sending delay.
**Ameba Preparation**

Open the “CalculateUdpSendDelay” example in ``“File” -> “Examples” ->
AmebaWiFi” -> ” UDP_Calculation ” -> “CalculateUdpSendDelay”``.
WiFi” -> ” UDP_Calculation ” -> “CalculateUdpSendDelay”``.

|1|

Expand Down Expand Up @@ -70,8 +70,8 @@ It will take some time for 10000 packets to be sent.
|4|

.. |1| image:: /media/ambd_arduino/WiFi_Approximate_UDP_Sending_Delay/image1.png
:width: 852
:height: 1006
:width: 1153
:height: 960
:scale: 70 %
.. |2| image:: /media/ambd_arduino/WiFi_Approximate_UDP_Sending_Delay/image2.png
:width: 721
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ First, make sure the correct Ameba development board is selected in
- Open (WiFi connection without password)

Open the “ConnectNoEncryption” example in ``“File” -> “Examples” ->
AmebaWiFi” -> “ConnectWithWiFi” -> “ConnectNoEncryption”`` |1| \
WiFi” -> “ConnectWithWiFi” -> “ConnectNoEncryption”`` |1| \

In the sample code, modify “ssid” to be the same as the WiFi SSID to be
connected to.
Expand All @@ -44,7 +44,7 @@ First, make sure the correct Ameba development board is selected in

- WiFi connection with WPA encryption

Open the “ConnectWithWPA” example in ``“File” -> “Examples” -> “AmebaWiFi
Open the “ConnectWithWPA” example in ``“File” -> “Examples” -> “WiFi
-> “ConnectWithWiFi” -> “ConnectWithWPA”`` |3|\

In the sample code, modify “ssid” to the WiFi SSID to be connected to
Expand All @@ -57,7 +57,7 @@ First, make sure the correct Ameba development board is selected in

- WiFi connection with WEP encryption

Open the “ConnectWithWEP” example in ``“File” -> “Examples” -> “AmebaWiFi
Open the “ConnectWithWEP” example in ``“File” -> “Examples” -> “WiFi
-> “ConnectWithWiFi” -> “ConnectWithWEP”`` |4|\

In the sample code, modify “ssid” to the SSID to be connected, “key” to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WiFi - Retrieve Universal Time (UTC) by UDP
NTP request, the NTP server replies current UTC (Coordinated Universal
Time) packet. We will parse the UTC packet to show current UTC time in
the serial monitor.
| Open the example: ``“File” -> “Examples” -> “AmebaWiFi” -> “WiFiUdpNtpClient”``
| Open the example: ``“File” -> “Examples” -> “WiFi” -> “WiFiUdpNtpClient”``
| |1|
| Modify the highlighted code section (ssid, password, keyindex) to connect
to your WiFi network.
Expand All @@ -32,9 +32,9 @@ WiFi - Retrieve Universal Time (UTC) by UDP
| |3|
.. |1| image:: /media/ambd_arduino/WiFi_Retrieve_universal_time_(UTC)_by_UDP/image1.png
:width: 716
:height: 1006
:scale: 50 %
:width: 897
:height: 957
:scale: 70 %
.. |2| image:: /media/ambd_arduino/WiFi_Retrieve_universal_time_(UTC)_by_UDP/image2.png
:width: 716
:height: 867
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WiFi - Scan the surrounding WiFi networks
| First, make sure the correct Ameba development board is selected in
Arduino IDE: ``“Tools” -> “Board”``
| Open the “ScanNetworks” example in
``“File” -> “Examples” -> “AmebaWiFi” -> “ScanNetworks”``:
``“File” -> “Examples” -> “WiFi” -> “ScanNetworks”``:
|image1|

Expand Down Expand Up @@ -59,9 +59,9 @@ detected WiFi hotspots and the information of each hotspot.
``#include`` is not needed.
.. |image1| image:: /media/ambd_arduino/WiFi _Scan_the_surrounding_WiFi_networks/image1.png
:width: 716
:height: 1006
:scale: 80 %
:width: 901
:height: 960
:scale: 70 %
.. |image2| image:: /media/ambd_arduino/WiFi_Scan_the_surrounding_WiFi_networks/image2.png
:width: 704
:height: 530
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WiFi - Set up Client to Retrieve Google Search Informations
| First, make sure the correct Ameba development board is selected in
“Tools” -> “Board”
| Then open ``“File” -> “Examples” -> “AmebaWiFi” -> “WiFiWebClient”``
| Then open ``“File” -> “Examples” -> “WiFi” -> “WiFiWebClient”``
|1|

Expand Down Expand Up @@ -66,8 +66,8 @@ monitor.
| https://www.arduino.cc/en/Reference/WiFIClientStop
.. |1| image:: /media/ambd_arduino/WiFi_Set_Up_Client_To_Retrieve_Google_Search_Informations/image1.png
:width: 716
:height: 1006
:width: 1155
:height: 961
:scale: 70 %
.. |2| image:: /media/ambd_arduino/WiFi_Set_Up_Client_To_Retrieve_Google_Search_Informations/image2.png
:width: 716
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cryptographic protocol designed to provide communications security over
a computer network, by encrypting the messages passed between server and
client.

Open the “WiFiSSLClient” example in ``“File” -> “Examples” -> “AmebaWiFi
Open the “WiFiSSLClient” example in ``“File” -> “Examples” -> “WiFi
-> “WiFiSSLClient”``.

|1|
Expand All @@ -47,8 +47,8 @@ Use “WiFiSSLClient client;” to create a client that uses SSL. After
creation, the client can be used in the same way as a regular client.

.. |1| image:: /media/ambd_arduino/WiFi_Set_Up_SSL_Client_For_HTTPS_Communications/image1.png
:width: 716
:height: 1006
:width: 1158
:height: 960
:scale: 70 %
.. |2| image:: /media/ambd_arduino/WiFi_Set_Up_SSL_Client_For_HTTPS_Communications/image2.png
:width: 716
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ First, we make sure the correct Ameba development board is set in
“Tools” -> “Board”

Then, open the Simple WiFi Server example in ``“File” -> “Examples” ->
AmebaWiFi” -> “SimpleServerWiFi”``
WiFi” -> “SimpleServerWiFi”``

|1|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ WiFi - Set up UDP Server to Communicate
server. When Ameba receives a message from UDP client, it replies
“acknowledged” message to client.
| Open the WiFi Web Server example. ``“File” -> “Examples” -> “AmebaWiFi
| Open the WiFi Web Server example. ``“File” -> “Examples” -> “WiFi
-> “WiFiUdpSendReceiveString”``
| |1|
| Modify the highlighted code section (ssid, password, keyindex) to
Expand Down Expand Up @@ -71,8 +71,8 @@ connection to server” message and waits for client connection.
| https://www.arduino.cc/en/Reference/WiFiUDPEndPacket
.. |1| image:: /media/ambd_arduino/WiFi_Set_Up_UDP_Server_To_Communicate/image1.png
:width: 716
:height: 1006
:width: 898
:height: 961
:scale: 70 %
.. |2| image:: /media/ambd_arduino/WiFi_Set_Up_UDP_Server_To_Communicate/image2.png
:width: 716
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set to open mode or WPA2 mode.

| In this example, we turn on the AP mode of Ameba and connect station to
Ameba.
| Open the WiFi AP example, ``“File” -> “Examples” -> “AmebaWiFi” ->
| Open the WiFi AP example, ``“File” -> “Examples” -> “WiFi” ->
“WiFiAPMode”``
|1|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ And add the library to Ameba: https://www.arduino.cc/en/Guide/Libraries#toc4
|
| To know more about motor movement and the technical details of the L298N H-Bridge,
please check out this `link <https://www.amebaiot.com/en/ameba-arduino-amebamotors-basic/>`.
| Open the example, ``“Files” -> “Examples” -> “AmebaWiFi” -> “WiFiControlCar”``.
| Open the example, ``“Files” -> “Examples” -> “WiFi” -> “WiFiControlCar”``.
| You will see we use the following pins in the example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ Open the example, ``“Files” -> “Examples” -> “AmebaSPI” -> “ILI934
:scale: 60 %
.. |3| image:: /media/ambd_arduino/SPI_Print_Image_And_Text_On_LCD_Screen/image3.png
:alt: 2
:width: 683
:height: 1006
:width: 960
:height: 1029
:scale: 70 %
.. |4| image:: /media/ambd_arduino/SPI_Print_Image_And_Text_On_LCD_Screen/image4.png
:alt: 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SPI <https://www.amebaiot.com/spi-intro/>`__ first.
|2-4|

Open the example, ``“Files” -> “Examples” -> “AmebaSPI” -> “PM25_on_ILI9341_TFT_LCD``
Open the example, ``“Files” -> “Examples” -> “AmebaSPI” -> “ILI9341_TFT_LCD_PM2.5``

|3|

Expand All @@ -59,6 +59,8 @@ LCD.

|4|

|5|

:raw-html:`<p style="color:#E67E22; font-size:24px">`
**Code Reference**
:raw-html:`</p>`
Expand Down Expand Up @@ -97,6 +99,11 @@ inside the circle.
:height: 1006
:scale: 70 %
.. |4| image:: /media/ambd_arduino/SPI_Show_PM2.5_Concentration_On_ILI9341_LCD/image4.png
:width: 1428
:height: 601
:scale: 50 %
:width: 979
:height: 749
:scale: 50 %
.. |5| image:: /media/ambd_arduino/SPI_Show_PM2.5_Concentration_On_ILI9341_LCD/image5.png
:width: 1000
:height: 750
:scale: 50 %

0 comments on commit 5707879

Please sign in to comment.