Skip to content

Commit af01cd0

Browse files
committed
docs: Add hardware.button and widgets
Signed-off-by: lbuque <[email protected]>
1 parent 283c72a commit af01cd0

Some content is hidden

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

48 files changed

+1067
-51
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"V2.0","type":"cores3","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__cores3_screen","createTime":1691735427865,"x":0,"y":0,"width":280,"height":280,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"label0","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"fz^u0eB%y8-NPojV","createTime":1691735496590,"x":58,"y":43,"color":"#ffffff","backgroundColor":"#222222","text":"Text","engine":"gfx","font":"Widgets.FONTS.DejaVu24","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button"]}],"units":[],"hats":[],"i2cs":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"51\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"></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=\"system_m5_update\"></block></statement></block><block type=\"button_callback\" id=\"L4rijE%Hlm.w*sm3pb/q\" x=\"50\" y=\"210\"><field name=\"NAME\">BtnPWR</field><field name=\"TYPE\">WAS_CLICKED</field><statement name=\"FUNC\"><block type=\"label_set_text\" id=\"~`4DOFfo?9qbJZs~^_*k\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"2Ai4P/$$0B[})I[^0H*8\"><field name=\"TEXT\">clicked</field></shadow></value></block></statement></block><block type=\"button_callback\" id=\"7*GhO.N9Z21FWfHGi.m;\" x=\"50\" y=\"350\"><field name=\"NAME\">BtnPWR</field><field name=\"TYPE\">WAS_HOLD</field><statement name=\"FUNC\"><block type=\"label_set_text\" id=\"1@1Ul}egWfr@?YJzhXP*\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"L(b{uhMt-/P6;_*2q[x+\"><field name=\"TEXT\">hold</field></shadow></value></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":240,"scale":0.78,"screenName":"","blockId":"","id":"builtin","createTime":1691735427862}]}

docs/_static/hardware/button/example.svg

Lines changed: 170 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 26 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)