-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update micropython library to ver1.19 and update readme files
- Loading branch information
1 parent
b67a45b
commit a748fac
Showing
174 changed files
with
3,568 additions
and
1,590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Highlights | ||
* This example show the device acting as TCP server, with a simple HTTP website to show some GPIO's value | ||
* Edit main.py, input variables *ssid* and *password* with the Target AP SSID and password | ||
* Console log display the assigned IP address | ||
* Connect your PC to the same network, browser the device webpge by typing http://<DEIVCE_IP_ADDR>, the webpage show the pin 16, 41, 47's value | ||
</p> | ||
<p align="center"><img width="500" src="./../../images/tcp_server_webpage.jpg"> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Highlights | ||
* This example show the device acting as TCP client, connect to the TCP server that running on PC | ||
* Edit main.py, input variables *ssid* and *password* with the Target AP SSID and password | ||
* Edit main.py, input *ip* with your PC's IP address | ||
* Connect your PC to the same network, execute utilities/tcp_server.py on your PC | ||
* Power on the board after the TCP server start running on your PC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Highlights | ||
* This example show the device is acting as TCP server, which can accept mutliple sockets | ||
* Edit main.py, input variables *ssid* and *password* with the Target AP SSID and password | ||
* Console log display the assigned IP address | ||
* Edit utilities/tcp_client.py, modify the *ip* value | ||
* Connect your PC to the same network, run utilities/tcp_client.py to connect the TCP server running on the device |
40 changes: 39 additions & 1 deletion
40
firmware/src/config/pic32mz_w1_curiosity_freertos/build/genhdr/moduledefs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,51 @@ | ||
// Automatically generated by makemoduledefs.py. | ||
|
||
#include "../../mpconfigport.h" | ||
#if (MICROPY_PY_ARRAY) | ||
extern const struct _mp_obj_module_t mp_module_uarray; | ||
#define MODULE_DEF_MP_QSTR_UARRAY { MP_ROM_QSTR(MP_QSTR_uarray), MP_ROM_PTR(&mp_module_uarray) }, | ||
#else | ||
#define MODULE_DEF_MP_QSTR_UARRAY | ||
#endif | ||
|
||
//#if MICROPY_PY_GC && MICROPY_ENABLE_GC | ||
extern const struct _mp_obj_module_t mp_module_gc; | ||
extern const struct _mp_obj_module_t mp_module_array; | ||
extern const struct _mp_obj_module_t mp_module_collections; | ||
extern const struct _mp_obj_module_t mp_module_ustruct; | ||
extern const struct _mp_obj_module_t mp_module_ujson; | ||
extern const struct _mp_obj_module_t mp_module_uselect; | ||
#define MODULE_DEF_MP_QSTR_GC { MP_ROM_QSTR(MP_QSTR_gc), MP_ROM_PTR(&mp_module_gc) }, | ||
#define MODULE_DEF_MP_QSTR_ARRAY { MP_ROM_QSTR(MP_QSTR_array), MP_ROM_PTR(&mp_type_array) }, | ||
#define MODULE_DEF_MP_QSTR_UCOLLECTIONS { MP_ROM_QSTR(MP_QSTR_ucollections), MP_ROM_PTR(&mp_module_collections) }, | ||
#define MODULE_DEF_MP_QSTR_USTRUCT { MP_ROM_QSTR(MP_QSTR_ustruct), MP_ROM_PTR(&mp_module_ustruct) }, | ||
#define MODULE_DEF_MP_QSTR_UJSON { MP_ROM_QSTR(MP_QSTR_ujson), MP_ROM_PTR(&mp_module_ujson) }, | ||
#define MODULE_DEF_MP_QSTR_USELECT { MP_ROM_QSTR(MP_QSTR_uselect), MP_ROM_PTR(&mp_module_uselect) }, | ||
|
||
|
||
//#else | ||
// #define MODULE_DEF_MP_QSTR_GC | ||
//#endif | ||
|
||
extern const struct _mp_obj_module_t pyb_module; | ||
extern const struct _mp_obj_module_t test_module; | ||
extern const struct _mp_obj_module_t mp_module_network; | ||
extern const struct _mp_obj_module_t mp_module_machine; | ||
extern const struct _mp_obj_module_t mp_module_usocket; | ||
extern const struct _mp_obj_module_t utime_module; | ||
|
||
|
||
#define MICROPY_REGISTERED_MODULES \ | ||
MODULE_DEF_MP_QSTR_UARRAY \ | ||
MODULE_DEF_MP_QSTR_ARRAY \ | ||
MODULE_DEF_MP_QSTR_GC \ | ||
MODULE_DEF_MP_QSTR_UCOLLECTIONS \ | ||
MODULE_DEF_MP_QSTR_USTRUCT \ | ||
MODULE_DEF_MP_QSTR_USELECT \ | ||
{ MP_ROM_QSTR(MP_QSTR_pyb), MP_ROM_PTR(&pyb_module) }, \ | ||
{ MP_ROM_QSTR(MP_QSTR_test), MP_ROM_PTR(&test_module) }, \ | ||
{ MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&mp_module_network }, \ | ||
{ MP_OBJ_NEW_QSTR(MP_QSTR_umachine), (mp_obj_t)&mp_module_machine }, \ | ||
{ MP_OBJ_NEW_QSTR(MP_QSTR_socket), (mp_obj_t)&mp_module_usocket }, \ | ||
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \ | ||
\ | ||
// MICROPY_REGISTERED_MODULES |
6 changes: 3 additions & 3 deletions
6
firmware/src/config/pic32mz_w1_curiosity_freertos/build/genhdr/mpversion.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This file was generated by py/makeversionhdr.py | ||
#define MICROPY_GIT_TAG "v1.18-330-gd242a9b7f-dirty" | ||
#define MICROPY_GIT_HASH "d242a9b7f-dirty" | ||
#define MICROPY_BUILD_DATE "2022-04-13" | ||
#define MICROPY_GIT_TAG "v1.19" | ||
#define MICROPY_GIT_HASH "" | ||
#define MICROPY_BUILD_DATE "2023-04-01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.