micrOSDevToolKit 2.10.6__py3-none-any.whl → 2.13.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of micrOSDevToolKit might be problematic. Click here for more details.

Files changed (151) hide show
  1. env/driver_cp210x/macOS_VCP_Driver/SiLabsUSBDriverDisk.dmg +0 -0
  2. env/driver_cp210x/macOS_VCP_Driver/macOS_VCP_Driver_Release_Notes.txt +17 -1
  3. micrOS/micropython/esp32c6-GENERIC-20250415-v1.25.0.bin +0 -0
  4. micrOS/micropython/esp32s3-4MBflash-20241129-v1.24.1.bin +0 -0
  5. micrOS/release_info/micrOS_ReleaseInfo/system_analysis_sum.json +57 -61
  6. micrOS/source/Common.py +286 -91
  7. micrOS/source/Config.py +7 -7
  8. micrOS/source/Debug.py +50 -94
  9. micrOS/source/Espnow.py +7 -7
  10. micrOS/source/Files.py +23 -2
  11. micrOS/source/Hooks.py +62 -19
  12. micrOS/source/IO_esp32c6.py +16 -0
  13. micrOS/source/IO_esp32s3.py +37 -1
  14. micrOS/source/IO_m5stamp.py +35 -1
  15. micrOS/source/IO_qtpy.py +22 -17
  16. micrOS/source/IO_s3matrix.py +21 -0
  17. micrOS/source/IO_tinypico.py +38 -0
  18. micrOS/source/InterConnect.py +5 -5
  19. micrOS/source/Interrupts.py +2 -2
  20. micrOS/source/LM_VL53L0X.py +1 -1
  21. micrOS/source/LM_buzzer.py +6 -7
  22. micrOS/source/LM_cct.py +6 -5
  23. micrOS/source/LM_dashboard_be.py +2 -2
  24. micrOS/source/LM_dimmer.py +6 -5
  25. micrOS/source/LM_espnow.py +15 -10
  26. micrOS/source/LM_i2c.py +3 -2
  27. micrOS/source/LM_neoeffects.py +173 -230
  28. micrOS/source/LM_neomatrix.py +335 -0
  29. micrOS/source/LM_neopixel.py +10 -10
  30. micrOS/source/LM_pacman.py +40 -23
  31. micrOS/source/LM_qmi8658.py +204 -0
  32. micrOS/source/LM_rgb.py +6 -6
  33. micrOS/source/LM_roboarm.py +5 -4
  34. micrOS/source/LM_switch.py +6 -4
  35. micrOS/source/LM_tcs3472.py +75 -0
  36. micrOS/source/LM_telegram.py +5 -4
  37. micrOS/source/Logger.py +47 -33
  38. micrOS/source/Network.py +6 -6
  39. micrOS/source/Notify.py +2 -2
  40. micrOS/source/Scheduler.py +5 -5
  41. micrOS/source/Server.py +6 -6
  42. micrOS/source/Shell.py +4 -4
  43. micrOS/source/Tasks.py +20 -17
  44. micrOS/source/Time.py +12 -10
  45. micrOS/source/Types.py +2 -2
  46. micrOS/source/Web.py +20 -13
  47. micrOS/source/__pycache__/Common.cpython-312.pyc +0 -0
  48. micrOS/source/__pycache__/Debug.cpython-312.pyc +0 -0
  49. micrOS/source/__pycache__/Logger.cpython-312.pyc +0 -0
  50. micrOS/source/__pycache__/Server.cpython-312.pyc +0 -0
  51. micrOS/source/micrOS.py +10 -7
  52. micrOS/source/micrOSloader.py +6 -6
  53. micrOS/source/microIO.py +8 -6
  54. micrOS/source/urequests.py +4 -4
  55. {microsdevtoolkit-2.10.6.dist-info → microsdevtoolkit-2.13.0.dist-info}/METADATA +24 -22
  56. {microsdevtoolkit-2.10.6.dist-info → microsdevtoolkit-2.13.0.dist-info}/RECORD +142 -132
  57. toolkit/DevEnvCompile.py +20 -15
  58. toolkit/DevEnvOTA.py +29 -8
  59. toolkit/DevEnvUSB.py +52 -10
  60. toolkit/LM_to_compile.dat +1 -0
  61. toolkit/MicrOSDevEnv.py +10 -2
  62. toolkit/MicrosFiles.py +26 -0
  63. toolkit/dashboard_apps/NeoEffectsDemo.py +8 -15
  64. toolkit/dashboard_apps/QMI8685_GYRO.py +68 -0
  65. toolkit/dashboard_apps/_app_base.py +2 -2
  66. toolkit/dashboard_apps/_gyro_visualizer.py +78 -0
  67. toolkit/lib/LocalMachine.py +6 -1
  68. toolkit/lib/file_extensions.py +9 -3
  69. toolkit/micrOSlint.py +3 -1
  70. toolkit/simulator_lib/__pycache__/IO_darwin.cpython-312.pyc +0 -0
  71. toolkit/simulator_lib/__pycache__/machine.cpython-312.pyc +0 -0
  72. toolkit/simulator_lib/__pycache__/neopixel.cpython-312.pyc +0 -0
  73. toolkit/simulator_lib/machine.py +0 -1
  74. toolkit/simulator_lib/neopixel.py +3 -2
  75. toolkit/socketClient.py +3 -2
  76. toolkit/workspace/precompiled/Common.cpython-312.pyc +0 -0
  77. toolkit/workspace/precompiled/Common.mpy +0 -0
  78. toolkit/workspace/precompiled/Config.mpy +0 -0
  79. toolkit/workspace/precompiled/Debug.mpy +0 -0
  80. toolkit/workspace/precompiled/Espnow.mpy +0 -0
  81. toolkit/workspace/precompiled/Files.mpy +0 -0
  82. toolkit/workspace/precompiled/Hooks.mpy +0 -0
  83. toolkit/workspace/precompiled/IO_esp32c6.mpy +0 -0
  84. toolkit/workspace/precompiled/IO_esp32s3.mpy +0 -0
  85. toolkit/workspace/precompiled/IO_m5stamp.mpy +0 -0
  86. toolkit/workspace/precompiled/IO_qtpy.mpy +0 -0
  87. toolkit/workspace/precompiled/IO_s3matrix.mpy +0 -0
  88. toolkit/workspace/precompiled/IO_tinypico.mpy +0 -0
  89. toolkit/workspace/precompiled/InterConnect.mpy +0 -0
  90. toolkit/workspace/precompiled/Interrupts.mpy +0 -0
  91. toolkit/workspace/precompiled/LM_VL53L0X.py +1 -1
  92. toolkit/workspace/precompiled/LM_buzzer.mpy +0 -0
  93. toolkit/workspace/precompiled/LM_cct.mpy +0 -0
  94. toolkit/workspace/precompiled/LM_dashboard_be.py +2 -2
  95. toolkit/workspace/precompiled/LM_dimmer.mpy +0 -0
  96. toolkit/workspace/precompiled/LM_espnow.py +15 -10
  97. toolkit/workspace/precompiled/LM_i2c.py +3 -2
  98. toolkit/workspace/precompiled/LM_neoeffects.mpy +0 -0
  99. toolkit/workspace/precompiled/LM_neomatrix.mpy +0 -0
  100. toolkit/workspace/precompiled/LM_neopixel.mpy +0 -0
  101. toolkit/workspace/precompiled/LM_pacman.mpy +0 -0
  102. toolkit/workspace/precompiled/LM_qmi8658.py +204 -0
  103. toolkit/workspace/precompiled/LM_rgb.mpy +0 -0
  104. toolkit/workspace/precompiled/LM_roboarm.mpy +0 -0
  105. toolkit/workspace/precompiled/LM_switch.mpy +0 -0
  106. toolkit/workspace/precompiled/LM_tcs3472.py +75 -0
  107. toolkit/workspace/precompiled/LM_telegram.mpy +0 -0
  108. toolkit/workspace/precompiled/Logger.cpython-312.pyc +0 -0
  109. toolkit/workspace/precompiled/Logger.mpy +0 -0
  110. toolkit/workspace/precompiled/Network.mpy +0 -0
  111. toolkit/workspace/precompiled/Notify.mpy +0 -0
  112. toolkit/workspace/precompiled/Scheduler.mpy +0 -0
  113. toolkit/workspace/precompiled/Server.cpython-312.pyc +0 -0
  114. toolkit/workspace/precompiled/Server.mpy +0 -0
  115. toolkit/workspace/precompiled/Shell.mpy +0 -0
  116. toolkit/workspace/precompiled/Tasks.mpy +0 -0
  117. toolkit/workspace/precompiled/Time.mpy +0 -0
  118. toolkit/workspace/precompiled/Types.mpy +0 -0
  119. toolkit/workspace/precompiled/Web.mpy +0 -0
  120. toolkit/workspace/precompiled/micrOS.mpy +0 -0
  121. toolkit/workspace/precompiled/micrOSloader.mpy +0 -0
  122. toolkit/workspace/precompiled/microIO.mpy +0 -0
  123. toolkit/workspace/precompiled/urequests.mpy +0 -0
  124. micrOS/micropython/esp32s3-20240105-v1.22.1.bin +0 -0
  125. micrOS/source/LM_catgame.py +0 -75
  126. micrOS/source/LM_demo.py +0 -97
  127. micrOS/source/LM_intercon.py +0 -60
  128. micrOS/source/LM_ph_sensor.py +0 -51
  129. toolkit/workspace/precompiled/LM_catgame.py +0 -75
  130. toolkit/workspace/precompiled/LM_demo.py +0 -97
  131. toolkit/workspace/precompiled/LM_intercon.mpy +0 -0
  132. toolkit/workspace/precompiled/LM_ph_sensor.py +0 -51
  133. /micrOS/micropython/{esp32s3-20241129-v1.24.1.bin → esp32s3-8MBflash-20241129-v1.24.1.bin} +0 -0
  134. /micrOS/source/{dashboard.html → web/dashboard.html} +0 -0
  135. /micrOS/source/{index.html → web/index.html} +0 -0
  136. /micrOS/source/{uapi.js → web/uapi.js} +0 -0
  137. /micrOS/source/{udashboard.js → web/udashboard.js} +0 -0
  138. /micrOS/source/{ustyle.css → web/ustyle.css} +0 -0
  139. /micrOS/source/{uwidgets.js → web/uwidgets.js} +0 -0
  140. /micrOS/source/{uwidgets_pro.js → web/uwidgets_pro.js} +0 -0
  141. {microsdevtoolkit-2.10.6.data → microsdevtoolkit-2.13.0.data}/scripts/devToolKit.py +0 -0
  142. {microsdevtoolkit-2.10.6.dist-info → microsdevtoolkit-2.13.0.dist-info}/WHEEL +0 -0
  143. {microsdevtoolkit-2.10.6.dist-info → microsdevtoolkit-2.13.0.dist-info}/licenses/LICENSE +0 -0
  144. {microsdevtoolkit-2.10.6.dist-info → microsdevtoolkit-2.13.0.dist-info}/top_level.txt +0 -0
  145. /toolkit/workspace/precompiled/{dashboard.html → web/dashboard.html} +0 -0
  146. /toolkit/workspace/precompiled/{index.html → web/index.html} +0 -0
  147. /toolkit/workspace/precompiled/{uapi.js → web/uapi.js} +0 -0
  148. /toolkit/workspace/precompiled/{udashboard.js → web/udashboard.js} +0 -0
  149. /toolkit/workspace/precompiled/{ustyle.css → web/ustyle.css} +0 -0
  150. /toolkit/workspace/precompiled/{uwidgets.js → web/uwidgets.js} +0 -0
  151. /toolkit/workspace/precompiled/{uwidgets_pro.js → web/uwidgets_pro.js} +0 -0
@@ -1,51 +0,0 @@
1
- from time import sleep
2
- from microIO import bind_pin, pinmap_search
3
- from Common import SmartADC
4
-
5
- """
6
- https://cimpleo.com/blog/simple-arduino-ph-meter/
7
- ADC.ATTN_0DB — the full range voltage: 1.2V
8
- ADC.ATTN_2_5DB — the full range voltage: 1.5V
9
- ADC.ATTN_6DB — the full range voltage: 2.0V
10
- ADC.ATTN_11DB — the full range voltage: 3.3V
11
- """
12
-
13
-
14
- def __measure(samples=10):
15
- adc_obj = SmartADC.get_instance(bind_pin('ph'))
16
- mbuf = 0
17
- for k in range(0, samples):
18
- mbuf += adc_obj.get()['volt']
19
- sleep(0.1)
20
- voltage = round(mbuf / samples, 3)
21
- return voltage
22
-
23
-
24
- def measure():
25
- data = SmartADC.get_instance(bind_pin('ph')).get()
26
- return "ADC data: {}\nAVG V: {}".format(data, __measure())
27
-
28
-
29
- #######################
30
- # LM helper functions #
31
- #######################
32
-
33
- def pinmap():
34
- """
35
- [i] micrOS LM naming convention
36
- Shows logical pins - pin number(s) used by this Load module
37
- - info which pins to use for this application
38
- :return dict: pin name (str) - pin value (int) pairs
39
- """
40
- return pinmap_search('ph')
41
-
42
-
43
- def help(widgets=False):
44
- """
45
- [BETA][i] micrOS LM naming convention - built-in help message
46
- :return tuple:
47
- (widgets=False) list of functions implemented by this application
48
- (widgets=True) list of widget json for UI generation
49
- """
50
- return 'measure', 'pinmap'
51
-
@@ -1,75 +0,0 @@
1
- from random import randint
2
- from LM_servo import sduty, deinit, pinmap as pm
3
- from utime import sleep_ms
4
- from Types import resolve
5
-
6
-
7
- def load():
8
- """
9
- Initialize catgame-servo module
10
- """
11
- return "catgame-servo module - loaded"
12
-
13
-
14
- def game(repeat=10, delta=20):
15
- """
16
- Servo cat toy "mover" - left-right
17
- :param repeat int: repeat servo pos change
18
- :param delta int: center(75) +/-delta(35)
19
- :return str: verdict
20
- """
21
- sduty(75)
22
- for _ in range(0, repeat):
23
- sduty(randint(75-delta, 75+delta))
24
- sleep_ms(randint(20, 1500))
25
- sduty(75)
26
- return 'Game action'
27
-
28
-
29
- def live_game(chance=10):
30
- """
31
- Generate game
32
- :param chance int: percent value 0-100
33
- :return str: verdict (action / no action)
34
- """
35
- action = randint(1, 10)
36
- if action <= int(chance/10):
37
- return game(repeat=5)
38
- return 'No action'
39
-
40
-
41
- def stop():
42
- """
43
- Stop game - home position (75) + deinit
44
- :return str: servo verdict
45
- """
46
- out = sduty(75)
47
- deinit()
48
- return out
49
-
50
-
51
- #######################
52
- # LM helper functions #
53
- #######################
54
-
55
- def pinmap():
56
- """
57
- [i] micrOS LM naming convention
58
- Shows logical pins - pin number(s) used by this Load module
59
- - info which pins to use for this application
60
- :return dict: pin name (str) - pin value (int) pairs
61
- """
62
- return pm()
63
-
64
-
65
- def help(widgets=False):
66
- """
67
- [i] micrOS LM naming convention - built-in help message
68
- :return tuple:
69
- (widgets=False) list of functions implemented by this application
70
- (widgets=True) list of widget json for UI generation
71
- """
72
- return resolve(('BUTTON game repeat=10',
73
- 'SLIDER live_game chance=<10-90>',
74
- 'BUTTON stop', 'pinmap',
75
- 'load'), widgets=widgets)
@@ -1,97 +0,0 @@
1
- from random import randint
2
- from Time import uptime
3
- from Types import resolve
4
- from microIO import detect_platform
5
- from Common import console
6
-
7
- CNT = 0
8
-
9
-
10
- def _debug(func):
11
- """
12
- Debug wrapper
13
- - console logging
14
- - handled cmd counter (exec_info to get the value)
15
- """
16
- def __wrapper(*args, **kwargs):
17
- global CNT
18
- CNT += 1
19
- console("debug module cmd executed") # + Progress LED
20
- return func(*args, **kwargs)
21
- return __wrapper
22
-
23
-
24
- def load():
25
- """
26
- Initialize demo module
27
- """
28
- return "demo module - loaded"
29
-
30
-
31
- @_debug
32
- def hello(name="MrNobody"):
33
- return f"Hello {name}! This is a micrOS smart endpoint ☁️, running on {detect_platform()}.\
34
- \nFor more info call `demo links` function :D"
35
-
36
-
37
- @_debug
38
- def calculator(a, b, op="+"):
39
- if op.strip() == "+":
40
- return f"{a} + {b} = {a + b}"
41
- if op.strip() == "-":
42
- return f"{a} - {b} = {a - b}"
43
- if op.strip() == "/":
44
- return f"{a} / {b} = {round(a / b, 3)}"
45
- if op.strip() == "*":
46
- return f"{a} * {b} = {a * b}"
47
-
48
-
49
- @_debug
50
- def dice_cube():
51
- value = randint(1, 6)
52
- return f"🎲 {value}"
53
-
54
-
55
- @_debug
56
- def yes_no():
57
- val = randint(0, 1)
58
- return 'NO👎' if val == 0 else 'YES👍'
59
-
60
-
61
- @_debug
62
- def links():
63
- descript = f"Platform: {detect_platform()}\nGITHUB: https://github.com/BxNxM/micrOS\nYOUTUBE: https://www.youtube.com/@micrOSframework\nINSTAGRAM: https://instagram.com/micros_framework"
64
- return descript
65
-
66
-
67
- @_debug
68
- def source():
69
- return 'https://github.com/BxNxM/micrOS/blob/master/micrOS/source/LM_demo.py'
70
-
71
-
72
- @_debug
73
- def exec_info():
74
- global CNT
75
- return f"Under {uptime()}: {CNT} cmd served."
76
-
77
-
78
- @_debug
79
- def help(widgets=False):
80
- """
81
- [i] micrOS LM naming convention - built-in help message
82
- :return tuple:
83
- (widgets=False) list of functions implemented by this application
84
- (widgets=True) list of widget json for UI generation
85
- """
86
- return resolve(('hello name="MrNobody"',
87
- 'calculator a b op="+"',
88
- '\t=>op: + - / *',
89
- 'BUTTON dice_cube',
90
- 'dice_cube - show number, roll a dice',
91
- 'BUTTON yes_no',
92
- 'yes_no - show random yes/no',
93
- 'links - show micrOS links',
94
- 'source - show demo module source code',
95
- 'TEXTBOX exec_info',
96
- 'exec_info - Execution info, demo module usage',
97
- 'load'), widgets=widgets)
@@ -1,51 +0,0 @@
1
- from time import sleep
2
- from microIO import bind_pin, pinmap_search
3
- from Common import SmartADC
4
-
5
- """
6
- https://cimpleo.com/blog/simple-arduino-ph-meter/
7
- ADC.ATTN_0DB — the full range voltage: 1.2V
8
- ADC.ATTN_2_5DB — the full range voltage: 1.5V
9
- ADC.ATTN_6DB — the full range voltage: 2.0V
10
- ADC.ATTN_11DB — the full range voltage: 3.3V
11
- """
12
-
13
-
14
- def __measure(samples=10):
15
- adc_obj = SmartADC.get_instance(bind_pin('ph'))
16
- mbuf = 0
17
- for k in range(0, samples):
18
- mbuf += adc_obj.get()['volt']
19
- sleep(0.1)
20
- voltage = round(mbuf / samples, 3)
21
- return voltage
22
-
23
-
24
- def measure():
25
- data = SmartADC.get_instance(bind_pin('ph')).get()
26
- return "ADC data: {}\nAVG V: {}".format(data, __measure())
27
-
28
-
29
- #######################
30
- # LM helper functions #
31
- #######################
32
-
33
- def pinmap():
34
- """
35
- [i] micrOS LM naming convention
36
- Shows logical pins - pin number(s) used by this Load module
37
- - info which pins to use for this application
38
- :return dict: pin name (str) - pin value (int) pairs
39
- """
40
- return pinmap_search('ph')
41
-
42
-
43
- def help(widgets=False):
44
- """
45
- [BETA][i] micrOS LM naming convention - built-in help message
46
- :return tuple:
47
- (widgets=False) list of functions implemented by this application
48
- (widgets=True) list of widget json for UI generation
49
- """
50
- return 'measure', 'pinmap'
51
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes