1 line
2.5 KiB
XML
1 line
2.5 KiB
XML
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="N4f:Ou2)PaV}}s(pwR9V" x="-280" y="66"><field name="VALUE">DS18B20读取温度\nDS18B20连接在D2管脚,串口打印出温度值\n注:如果使用的DS18B20是散件,则需要在电源线和信号线之间并联一个5K左右的电阻</field><next><block type="serial_begin" id=":W`^4cqg!JfN4NG/5XNQ"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="8i#5Ge^HVC$}U~!B,[5D"><field name="NUM">9600</field></shadow></value><next><block type="serial_print" id="9{^PL0M#}h1}|pPs$~t2"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="PI9nZSH#Z%HM=3_hGY[}" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation><value name="ADD0"><block type="text" id="q}n1A$9LQ;bUVzTvHh8v"><field name="TEXT">温度:</field></block></value><value name="ADD1"><block type="ds18b20" id="?EalijiGf#1B]T2{[^[9"><field name="PIN">2</field><field name="UNIT">0</field></block></value><value name="ADD2"><block type="text" id="to{OQf@dAz)Rz.KAtr0p"><field name="TEXT">℃</field></block></value></block></value><next><block type="serial_print" id="M3Re@i!JuKuwif=M^wvb"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="iANWn%y5!db],+2^jNi{" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation><value name="ADD0"><block type="text" id="OA2rPi-EbZ@cvI~ivqE`"><field name="TEXT">温度:</field></block></value><value name="ADD1"><block type="ds18b20" id="VD/!E6bbA]ueK%h*|RD-"><field name="PIN">2</field><field name="UNIT">1</field></block></value><value name="ADD2"><block type="text" id="-9;eB;J.LT}R]/w$VR`4"><field name="TEXT">℉</field></block></value></block></value><next><block type="serial_print" id="w!6_4MHZlM~,Cc+9t;!3"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="$p:N_?;gF7@|]p82GJ0R"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="SD)NQecJy;P0he#_H]g#"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="nuOv.Yh|%r@7O|yR/St8"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></xml> |