Skip to content

Commit 24ea02d

Browse files
committed
Release Version 3.1.7
Version 3.1.7 – 2024/02/16 Feature: - Update for Wi-Fi coding style - Add RFID examples - Update SimpleHttpExample.ino - Update MQTT examples - Update UDP Calculation examples - Update WiFiAPMode examples - Remove unnecessary "shield" check for Wi-Fi examples - Update Power Save TicklessMode example - Update arduboy zip - Fix BLE stack overflow when compiling with standard printf enabled - Add BLEV7RC_CAR.ino - Add DCT api examples - Add include files in compile flag - Add sub module of Preferences Credits to https://github.com/vshymanskyy/Preferences/tree/main - Add example for the RGB LED on the BW16 - Credits to https://github.com/designer2k2 API Updates: - Add SPI API to support drawBitmap() - Update SPI API to support external library tft_eSPI - Add "Upload Speed" option for menu of IDE - Update Wi-Fi ap and station concurrent mode - Update Debugging mode feature - Update for final evaluation kit for NORA-W30 - Update "board.txt" and "platform.txt" - Update i2c API - Update PMS3003.cpp and PMS3003.h - Update wiring_analog.c - Add SPI slave mode selection - Update WiFi server default socket connection to non-blocking mode - Add in destructors for Wi-Fi Classes - Update send_data() in ard_socket.c - Add printf suppport for c++ standard lib by default - Update Wlan lib - Fix under promisc rssi sometimes is 0 - Update platform.txt - fix compile issue when username has space - Update the pin_check related API - enhance the logic of checking - speed up the process Misc: - Update tool V1.1.1.1(MacOS only), V1.1.2 Support the lower version of MacOS - Update IFTTT documentation to add in Line Notify features - Update AmebaEink.zip - Update Ameba_TensorFlowLite.zip - Update AmebaD Arduino IDE Tools menu - Add Example_Tools folder - Update greetings.yml - Update README - Update tool V1.1.3 Support puya flash - Add the source code of the Midbar (RTL8720DN Version) - Update for BW16 pinmap - Update for 1-10 mp image tool release - Add package_realtek_amebad_early_index.json - Update boards.txt - Update supported board marcos - Add CODE_OF_CONDUCT.md, LICENSE, CONTRIBUTING.md, PULL_REQUEST_TEMPLATE.md and Issue Template - Add workflows for label related - Add workflows spell_check.yml - Enable "Check word spell" - Actions run every 'push' and 'pull_request'
1 parent 07f83a8 commit 24ea02d

File tree

255 files changed

+8093
-6071
lines changed

Some content is hidden

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

255 files changed

+8093
-6071
lines changed

.github/ISSUE_TEMPLATE/Bug_report.yml

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
name: Bug Report
2+
description: Report any bugs or issues
3+
labels: ["pending"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
* Please check [Online Documentation](https://www.amebaiot.com/en/ameba-arduino-summary/)
9+
* Please check [FAQ](https://forum.amebaiot.com/c/faq/48), [forum](https://forum.amebaiot.com/) and [GitHub Wiki](https://github.com/ambiot/ambd_arduino/wiki)
10+
* Please check and search in [List of closed issues](https://github.com/ambiot/ambd_arduino/issues?q=is%3Aissue+is%3Aclosed)
11+
* Please check and search in [List of existing issues](https://github.com/ambiot/ambd_arduino/issues?q=is%3Aopen+is%3Aissue)
12+
* If still experiencing the issue, please provide as many details as possible below about your hardware, environment setup and software.
13+
- type: input
14+
id: br-boards
15+
attributes:
16+
label: Boards
17+
description: What is the hardware/module using?
18+
placeholder: eg. AMB01, AMB23, BW16 or AMB82-mini...
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: br-ex-hw
23+
attributes:
24+
label: External Hardware
25+
description: Any external hardware that Ameba board attached to?
26+
placeholder: eg. third-party extension, plain module on breadboard, customized hardware... please attach a photo if necessary.
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: br-addon-hw
31+
attributes:
32+
label: Hardware Configuration
33+
description: Is anything else attached to the Hardware?
34+
placeholder: eg. sensors, peripherals...
35+
validations:
36+
required: true
37+
- type: dropdown
38+
id: br-version
39+
attributes:
40+
label: Version
41+
description: What version of ambpro2_arduino SDK? Please use the latest version if possible.
42+
options:
43+
- latest dev (checkout manually)
44+
- latest master (checkout manually)
45+
- v3.1.6
46+
- v3.1.5
47+
- v3.1.4
48+
- v3.1.3
49+
- v3.1.2
50+
- v3.1.1
51+
- v3.1.0
52+
- v3.0.11
53+
- v3.0.10
54+
- v3.0.7
55+
- v3.0.5
56+
- other
57+
validations:
58+
required: true
59+
- type: input
60+
id: br-ide
61+
attributes:
62+
label: IDE Name
63+
description: What is the IDE?
64+
placeholder: eg. Arduino IDE 2.2.1
65+
validations:
66+
required: true
67+
- type: input
68+
id: br-os
69+
attributes:
70+
label: Operating System
71+
description: On which OS does this issue occur?
72+
placeholder: eg. macOS Monterey (version 12), Windows 11, ubuntu22...
73+
validations:
74+
required: true
75+
- type: dropdown
76+
id: br-auto-flash-mode
77+
attributes:
78+
label: Auto Flash Mode
79+
description: Is auto flash mode enabled?
80+
options:
81+
- 'Disable'
82+
- 'Enable'
83+
validations:
84+
required: true
85+
- type: dropdown
86+
id: br-erase-flash-mode
87+
attributes:
88+
label: Erase All Flash Memory (4MB)
89+
description: Is erase flash enabled?
90+
options:
91+
- 'Disable'
92+
- 'Erase only'
93+
validations:
94+
required: true
95+
- type: dropdown
96+
id: br-standard-lib
97+
attributes:
98+
label: Standard Lib
99+
description: Is Standard Lib enabled?
100+
options:
101+
- 'Arduino_STD_PRINTF'
102+
- 'Disable'
103+
validations:
104+
required: true
105+
- type: dropdown
106+
id: br-upload-speed
107+
attributes:
108+
label: Upload Speed
109+
description: What is the Upload speed?
110+
options:
111+
- '1500000'
112+
- '921600'
113+
validations:
114+
required: true
115+
- type: textarea
116+
id: br-description
117+
attributes:
118+
label: Description
119+
description: Please describe the issue/bug here and expected behaviour
120+
placeholder: eg. compile error/hard fault/connectiong issue/weird behaviour/missing parameter...
121+
validations:
122+
required: true
123+
- type: textarea
124+
id: br-sketch
125+
attributes:
126+
label: Sketch
127+
description: Please provide sketch/code that can be used to reproduce the bug/issue
128+
placeholder: eg. aruino example ino files...
129+
render: cpp
130+
validations:
131+
required: true
132+
- type: textarea
133+
id: br-error
134+
attributes:
135+
label: Error/Debug Message
136+
description: Please provide error/debug message.
137+
placeholder: eg. error message from Arduino IDE...
138+
render: plain
139+
validations:
140+
required: true
141+
- type: textarea
142+
id: br-remarks
143+
attributes:
144+
label: Reproduce remarks
145+
description: Is there additional information that will help to reproduce?
146+
placeholder: eg. disabled erase mode and there is no issues/tried under ubuntu18 did not work but macos and ubuntu22 works...
147+
- type: checkboxes
148+
id: br-confirmation
149+
attributes:
150+
label: I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.
151+
description: Before opening a new issue, please check all resources above.
152+
options:
153+
- label: I confirm I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.
154+
required: true
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Feature Request
2+
description: Suggest an feature for this SDK
3+
labels: ["pending", "enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
* We welcome any feature requests! It is helpful if you can explain exactly why the feature would be useful.
9+
* There are some outstanding feature requests in the [List of existing issues](https://github.com/ambiot/ambd_arduino/issues?q=is%3Aopen+is%3Aissue) and [List of closed issues](https://github.com/ambiot/ambd_arduino/issues?q=is%3Aissue+is%3Aclosed), feel free to add any comments.
10+
* If you would like to contribute, please refer to the [Contributing guide](https://github.com/ambiot/ambd_arduino/blob/dev/CONTRIBUTING.md).
11+
- type: input
12+
id: fr-hw
13+
attributes:
14+
label: Hardware Environment
15+
description: Please describe your suggested hardware setup/environment.
16+
placeholder: eg. Support for AMB23, AMB82-mini with a power bank...
17+
validations:
18+
required: true
19+
- type: input
20+
id: fr-area
21+
attributes:
22+
label: Related technical area
23+
description: Please briefly explain the technical area of Feature Request.
24+
placeholder: eg. Boards, Peripherals, BT, Wifi, flash, add libraries, add sensors...
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: fr-issue-related
29+
attributes:
30+
label: Is the feature request related to an un-fixed issue?
31+
description: Please provide more information/link of the issue.
32+
placeholder: eg. This feature request is realted to *#issue_number*...
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: fr-ideal-solution
37+
attributes:
38+
label: Describe the ideal solution/reault/output.
39+
description: Please provide a clear and concise description of what you want to happen.
40+
placeholder: eg. With this request implemented, sensor xxx will be fully supported...
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: fr-remarks
45+
attributes:
46+
label: Additional remarks
47+
description: Please add any additional context, diagram or screenshots...
48+
placeholder: eg. The feature should work with xxx sensor/The feature should work with or without wifi...
49+
- type: checkboxes
50+
id: fr-confirmation
51+
attributes:
52+
label: I have checked existing/closed list of issues and the Contributing Guide.
53+
description: Before opening a new Feature request, please check all resources above.
54+
options:
55+
- label: I confirm I have checked existing/closed list of issues and the Contributing Guide.
56+
required: true

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: AmebaIoT Forum
4+
url: https://forum.amebaiot.com/
5+
about: Official Forum for technical support

.github/PULL_REQUEST_TEMPLATE.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
*By completing this PR sufficiently, please help us to review and improve the quality of this PR and Release Notes*
2+
3+
### Checklist
4+
1. [ ] Please provide specific title that describe the change (*eg. Update Readme.md*)
5+
2. [ ] Please provide related links (*eg. This Pull Request is a fix of #issue_number*)
6+
3. [ ] Please **update the license/declaration** if applicable (*eg. Usage of other projects/apis/libs code*)
7+
4. [ ] Please check [Contributing guide](https://github.com/ambiot/ambd_arduino/blob/dev/CONTRIBUTING.md)
8+
5. [ ] Please **confirm option to "Allow edits and access to secrets by maintainers"** when opening a Pull Request
9+
10+
*This entire section above can be deleted if all items are checked.*
11+
12+
-----------
13+
## Description of Change
14+
Please describe your proposed Pull Request and it's impact. \
15+
*eg.*
16+
- Feature:
17+
- API Updates:
18+
- Misc:
19+
20+
## Tests and Environments
21+
Please describe on what Hardware, SDK, IDE, OS that tested this Pull Request and how if necessary. \
22+
*eg.*
23+
- AMB21
24+
- ambd_arduino V3.1.7
25+
- Arduino IDE 2.3.0
26+
- Windows 10
27+
28+
## Remark related links
29+
Please provide links to related issue, PRs etc. \
30+
*eg.*
31+
- Closes #issue_number

.github/workflows/greetings.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Hello, hope this message finds you well. Congrats to your first Issue! We will review it as soon as possiable. Feel free to have a look at https://www.amebaiot.com/en/ameba-arduino-summary/ for more information"
16+
pr-message: "Hello, hope this message finds you well. Congrats to your Pull Request! Thank you for the work. Your contributions have been outstanding"

.github/workflows/label_issues.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Label issues
2+
on:
3+
issues:
4+
types:
5+
- reopened
6+
- opened
7+
jobs:
8+
label_issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
14+
env:
15+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
GH_REPO: ${{ github.repository }}
17+
NUMBER: ${{ github.event.issue.number }}
18+
LABELS: pending

.github/workflows/spell_check.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow runs spell_check test for Ameba Arduino SDK
2+
3+
name: Check word spell
4+
on: [push, pull_request]
5+
# workflow_dispatch:
6+
jobs:
7+
spell-check:
8+
name: Run spell-check check
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
path:
13+
- 'Arduino_package/hardware/cores'
14+
- 'Arduino_package/hardware/libraries'
15+
steps:
16+
- name: Checkout repository # and submodules
17+
uses: actions/checkout@v4
18+
# with:
19+
# submodules: recursive
20+
- name: Run spell-check for multi-floders
21+
# uses: codespell-project/actions-codespell@master
22+
uses: codespell-project/actions-codespell@v2
23+
with:
24+
skip: Arduino_package/hardware/libraries/SoftwareSerial/src/Adafruit_GPS.cpp,Arduino_package/hardware/libraries/SoftwareSerial/src/Adafruit_GPS.h,Arduino_package/hardware/libraries/SoftwareSerial/src/SoftwareSerial.cpp,Arduino_package/hardware/libraries/SoftwareSerial/src/SoftwareSerial.h
25+
ignore_words_list: ameba
26+
# ignore_words_file: Ameba_misc/Spell_Check_Ignore/.codespellignore
27+
path: ${{ matrix.path }}

.github/workflows/stale.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: 'Close stale issues and PRs'
7+
8+
on:
9+
schedule:
10+
- cron: '0 12 * * *'
11+
12+
jobs:
13+
close-issues:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/stale@v9
21+
with:
22+
days-before-issue-stale: 14
23+
# days-before-issue-close: 7
24+
days-before-issue-close: -1
25+
days-before-pr-stale: 14
26+
days-before-pr-close: -1
27+
stale-issue-label: 'no-issue-activity'
28+
exempt-issue-labels: 'no-issue-activity,wontfix'
29+
stale-pr-label: 'no-pr-activity'
30+
exempt-pr-labels: 'no-pr-activity,wontfix'
31+
stale-issue-message: "This issue is stale because it has been open for 14 days with no activity."
32+
# close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
33+
stale-pr-message: 'This pull request is stale because there is no activity for 14 days'
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Arduino_package/hardware/libraries/Preferences"]
2+
path = Arduino_package/hardware/libraries/Preferences
3+
url = https://github.com/vshymanskyy/Preferences

Ameba_misc/Ameba_Icon/ico-out.o

57 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
This is the guide of MacOS, Linux or Windows OS user to compile the tool of the 3 UDP calculate examples.
2+
3+
Pre-request
4+
For Windows OS user,
5+
Please download and install CYGWIN from http://www.cygwin.com/
6+
While installing chose "g++" at the selection
7+
8+
Compile the tools
9+
Open the terminal(cygwin terminal for Windows user), then apply the following commands.
10+
11+
### g++.exe SendDelay.cpp -lws2_32 -o SendDelay_win.exe
12+
### strip SendDelay_win.exe
13+
g++.exe SendDelay.cpp ../../Ameba_Icon/ico-out.o -o SendDelay_win.exe
14+
g++ SendDelay.cpp -o SendDelay_linux
15+
g++ SendDelay.cpp -o SendDelay_mac
16+
17+
### g++.exe ReceiveDelay.cpp -lws2_32 -o ReceiveDelay_win.exe
18+
### strip ReceiveDelay_win.exe
19+
g++.exe ReceiveDelay.cpp ../../Ameba_Icon/ico-out.o -o ReceiveDelay_win.exe
20+
g++ ReceiveDelay.cpp -o ReceiveDelay_linux
21+
g++ ReceiveDelay.cpp -o ReceiveDelay_mac
22+
23+
### g++.exe ReceiveTimeout.cpp -lws2_32 -o ReceiveTimeout_win.exe
24+
### strip ReceiveTimeout_win.exe
25+
g++.exe ReceiveTimeout.cpp ../../Ameba_Icon/ico-out.o -o ReceiveTimeout_win.exe
26+
g++ ReceiveTimeout.cpp -o ReceiveTimeout_linux
27+
g++ ReceiveTimeout.cpp -o ReceiveTimeout_mac
28+
29+
Use the tools
30+
Open the terminal(cygwin terminal for Windows user), then apply the following commands.
31+
32+
./ReceiveTimeout_win.exe <client IP address>
33+
./ReceiveDelay_win.exe <client IP address>
34+
./SendDelay_win.exe
35+
36+
./ReceiveDelay_linux <client IP address>
37+
./ReceiveTimeout_linux <client IP address>
38+
./SendDelay_linux
39+
40+
./ReceiveDelay_mac <client IP address>
41+
./ReceiveTimeout_mac <client IP address>
42+
./SendDelay_mac

0 commit comments

Comments
 (0)