Skip to content

Commit 1739206

Browse files
author
luoweiyuan
committed
addon: Use lowercase package name.
Signed-off-by: luoweiyuan <luoweiyuan@m5stack.com> (cherry picked from commit 7c39681ad00b3eb383e6968de6d65f414c2fb182)
1 parent f9bc0ce commit 1739206

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/source/addon/display_out.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AddOn DisplayOut
1+
addon DisplayOut
22
=================
33

44
.. py:currentmodule:: addon.display_out
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"V2.0","versionNumber":"V2.4.7","type":"unit-poep4","components":[{"name":"screen","type":"screen","layer":0,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"__display_screen","createTime":1782287973425,"x":0,"y":0,"width":1280,"height":720,"backgroundColor":"#000000","size":0,"isSelected":true},{"name":"title","type":"title","layer":1,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"xPF*zzOYHk6o-9CI","createTime":1782287980343,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"AddOn Display Out For PoE-P4 Example","textOffset":3,"font":"Widgets.FONTS.Montserrat18","isSelected":false},{"name":"circle0","type":"circle","layer":2,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"a&3$!9XoB0F+vKZ0","createTime":1782288396477,"x":118,"y":182,"radius":68,"borderColor":"#ffffff","backgroundColor":"#ffffff","isSelected":false},{"name":"rect0","type":"rect","layer":3,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"z-F7tkd$q^WjxZqq","createTime":1782288399735,"x":885,"y":338,"width":217,"height":217,"borderColor":"#ffffff","backgroundColor":"#ffffff","isSelected":false},{"name":"label0","type":"label","layer":4,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"qXa1muInpQklVkwP","createTime":1782288404708,"x":556,"y":149,"color":"#ffffff","backgroundColor":"#222222","text":"label0","font":"Widgets.FONTS.Montserrat18","rotation":0,"isSelected":false},{"name":"line0","type":"line","layer":5,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"wbPlmf+PUVbkZswG","createTime":1782288408483,"x1":398,"y1":446,"x2":448,"y2":446,"width":50,"color":"#ffffff","lineWidth":1,"isSelected":false},{"name":"triangle0","type":"triangle","layer":6,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"l2g9-V&$5bGZ7BH@","createTime":1782288414574,"x1":765,"y1":346,"x2":735,"y2":376,"x3":794,"y3":376,"h":30,"borderColor":"#ffffff","backgroundColor":"#ffffff","isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","rgb","ir"]},{"poep4module":["addon_display_out"]}],"units":[],"hats":[],"caps":[],"chains":[],"bases":[],"plcmodules":[],"tab5modules":[],"poep4modules":[{"type":"addon_display_out","name":"addon_display_out_0","id":"wQ*H+oiyntI6TU#A","createTime":1782290034180,"initBlockType":"addon_display_out_init","initBlockId":"ju_S8}gL}UOufp7^Jo`6"}],"i2cs":[],"chainBus":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"9Q6P_g$q1=VR*a)zG$aH\"><next><block type=\"addon_display_out_init\" id=\"ju_S8}gL}UOufp7^Jo`6\"><mutation hasScreen=\"true\" showScreen=\"true\" screenId=\"fo%*tW6Zvrm$u6^#\" configOptionValue=\"1\"></mutation><field name=\"NAME\">addon_display_out_0</field><field name=\"OPTION\">1</field><field name=\"SHOW_OP\">true</field></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"450\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"EIOBi|@;@(^]ewHRux.3\"></block></statement></block>","screen":[{"simulationName":"display_0","type":"display","width":1280,"height":720,"scale":0.234,"screenName":"addon_display_out_0","blockId":"ju_S8}gL}UOufp7^Jo`6","screenColorType":0,"id":"fo%*tW6Zvrm$u6^#","createTime":1782287973410,"fullZoom":1.673}],"logicWhenNum":0,"customList":[]}
1+
{"version":"V2.0","versionNumber":"V2.4.7","type":"unit-poep4","components":[{"name":"screen","type":"screen","layer":0,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"__display_screen","createTime":1782287973425,"x":0,"y":0,"width":1280,"height":720,"backgroundColor":"#000000","size":0,"isSelected":true},{"name":"title","type":"title","layer":1,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"xPF*zzOYHk6o-9CI","createTime":1782287980343,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"addon Display Out For PoE-P4 Example","textOffset":3,"font":"Widgets.FONTS.Montserrat18","isSelected":false},{"name":"circle0","type":"circle","layer":2,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"a&3$!9XoB0F+vKZ0","createTime":1782288396477,"x":118,"y":182,"radius":68,"borderColor":"#ffffff","backgroundColor":"#ffffff","isSelected":false},{"name":"rect0","type":"rect","layer":3,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"z-F7tkd$q^WjxZqq","createTime":1782288399735,"x":885,"y":338,"width":217,"height":217,"borderColor":"#ffffff","backgroundColor":"#ffffff","isSelected":false},{"name":"label0","type":"label","layer":4,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"qXa1muInpQklVkwP","createTime":1782288404708,"x":556,"y":149,"color":"#ffffff","backgroundColor":"#222222","text":"label0","font":"Widgets.FONTS.Montserrat18","rotation":0,"isSelected":false},{"name":"line0","type":"line","layer":5,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"wbPlmf+PUVbkZswG","createTime":1782288408483,"x1":398,"y1":446,"x2":448,"y2":446,"width":50,"color":"#ffffff","lineWidth":1,"isSelected":false},{"name":"triangle0","type":"triangle","layer":6,"screenId":"fo%*tW6Zvrm$u6^#","screenName":"addon_display_out_0","id":"l2g9-V&$5bGZ7BH@","createTime":1782288414574,"x1":765,"y1":346,"x2":735,"y2":376,"x3":794,"y3":376,"h":30,"borderColor":"#ffffff","backgroundColor":"#ffffff","isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","rgb","ir"]},{"poep4module":["addon_display_out"]}],"units":[],"hats":[],"caps":[],"chains":[],"bases":[],"plcmodules":[],"tab5modules":[],"poep4modules":[{"type":"addon_display_out","name":"addon_display_out_0","id":"wQ*H+oiyntI6TU#A","createTime":1782290034180,"initBlockType":"addon_display_out_init","initBlockId":"ju_S8}gL}UOufp7^Jo`6"}],"i2cs":[],"chainBus":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"9Q6P_g$q1=VR*a)zG$aH\"><next><block type=\"addon_display_out_init\" id=\"ju_S8}gL}UOufp7^Jo`6\"><mutation hasScreen=\"true\" showScreen=\"true\" screenId=\"fo%*tW6Zvrm$u6^#\" configOptionValue=\"1\"></mutation><field name=\"NAME\">addon_display_out_0</field><field name=\"OPTION\">1</field><field name=\"SHOW_OP\">true</field></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"450\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"EIOBi|@;@(^]ewHRux.3\"></block></statement></block>","screen":[{"simulationName":"display_0","type":"display","width":1280,"height":720,"scale":0.234,"screenName":"addon_display_out_0","blockId":"ju_S8}gL}UOufp7^Jo`6","screenColorType":0,"id":"fo%*tW6Zvrm$u6^#","createTime":1782287973410,"fullZoom":1.673}],"logicWhenNum":0,"customList":[]}

examples/addon/display_out/display_out_poep4_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os, sys, io
66
import M5
77
from M5 import *
8-
from AddOn import DisplayOut
8+
from addon import DisplayOut
99

1010

1111
title = None
@@ -24,7 +24,7 @@ def setup():
2424
addon_display_out_0 = DisplayOut(1280, 720, 60)
2525
Widgets.fillScreen(0x000000, addon_display_out_0)
2626
title = Widgets.Title(
27-
"AddOn Display Out For PoE-P4 Example",
27+
"addon Display Out For PoE-P4 Example",
2828
3,
2929
0xFFFFFF,
3030
0x0000FF,

m5stack/boards/M5STACK_Unit_PoEP4/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_unit_poep4.py")
6-
# Unit PoE-P4 exposes the DisplayOut AddOn for HDMI output.
6+
# Unit PoE-P4 exposes the DisplayOut addon for HDMI output.
77
include("$(MPY_DIR)/../m5stack/libs/addon/manifest.py")
88
include("$(MPY_DIR)/../m5stack/libs/hat/manifest.py")
99
include("$(MPY_DIR)/../m5stack/libs/unit/manifest.py")

m5stack/libs/addon/display_out.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DisplayOut:
3232
3333
.. code-block:: python
3434
35-
from AddOn import DisplayOut
35+
from addon import DisplayOut
3636
3737
display = DisplayOut(1280, 720, 60)
3838
"""

m5stack/libs/addon/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
package(
6-
"AddOn",
6+
"addon",
77
(
88
"__init__.py",
99
"display_out.py",

0 commit comments

Comments
 (0)