<br>
<pre style="max-width: 100%;"><code class="cpp hljs" codemark="1"><span class="hljs-meta">#<span class="hljs-meta-keyword">include</span><span class="hljs-meta-string"><reg52.h></span></span>
<span class="hljs-keyword">typedef</span> <span class="hljs-keyword">unsigned</span> <span class="hljs-keyword">char</span> u8;
sbit LSB=P2^<span class="hljs-number">1</span>;
u8 code Smgduan[<span class="hljs-number">17</span>]={<span class="hljs-number">0x3f</span>,<span class="hljs-number">0x06</span>,<span class="hljs-number">0x5b</span>,<span class="hljs-number">0x4f</span>,<span class="hljs-number">0x66</span>,<span class="hljs-number">0x6d</span>,<span class="hljs-number">0x7d</span>,<span class="hljs-number">0x07</span>,<span class="hljs-number">0x7f</span>,<span class="hljs-number">0x6f</span>,<span class="hljs-number">0x77</span>,<span class="hljs-number">0x7c</span>,<span class="hljs-number">0x39</span>,<span class="hljs-number">0x5e</span>,<span class="hljs-number">0x79</span>,<span class="hljs-number">0x71</span>};
{
}
{
<span class="hljs-keyword">for</span>(i=<span class="hljs-number">0</span>;i<<span class="hljs-number">8</span>;i++)
<span class="hljs-keyword">switch</span>(i)
<span class="hljs-keyword">case</span> <span class="hljs-number">0</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">1</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">2</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">3</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">4</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">5</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">6</span>:
<span class="hljs-keyword">case</span> <span class="hljs-number">7</span>:
}
delay(<span class="hljs-number">60000</span>);
}
<span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">()</span>
<span class="hljs-title">while</span><span class="hljs-params">(<span class="hljs-number">1</span>)</span>
<span class="hljs-title">Digplay</span><span class="hljs-params">()</span></span>;
}</code></pre>
<ignore_js_op>
<dl class="tattl attm">
<dd>
<img src="data/attach/1911/4rdd92drzo42uwjtj1nvyhvab8ova6be.png" alt="QQ图片20191113094819.png" title="QQ图片20191113094819.png">
</dd>
</dl>
</ignore_js_op>
<p><br></p>
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>