java學生數(shù)據(jù)庫
/*import java.util.Scanner; //主類 public class student122 { //主方法 public static void main(String[] args){ &nbs...
/*import java.util.Scanner; //主類 public class student122 { //主方法 public static void main(String[] args){ &nbs...
1.Describe a Θ(n lg n)-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in...
/****************temic*********t5557***********************************/ #include <at892051.h> #include &nbs...
在本課中,我們要用一個按鍵來實現(xiàn)跑馬燈的 10 級調速。這又會涉及到鍵的去抖的問 題。 本課的試驗結果是,每按一次按鍵,跑馬速度就降低一級,共 10 級。 這里我們又增加了一個變量 speedlever,來保存當前的速度檔次。 在按鍵里的處理中,多了當前檔次的...
LED 一般是恒流操作的,如何改變 LED 的亮度呢?答案就是 PWM 控制。在一定的 頻率的方波中,調整高電平和低電平的占空比,即可實現(xiàn)。比如我們用低電平點亮一個 LED 燈,我們假設把一個頻率周期分為 10 個時間等份,如果方波中的高低電平占空比是 9:1, 這是就是一個比較暗的亮度,如果方波中...