Timers can be used for a great variety of tasks. At the moment, only the simplest case is implemented: that of calling a function periodically. Each timer consists of a counter that counts up at a ...
Each timer consists of a counter that counts up at a certain rate. The rate at which it counts is the peripheral clock frequency (in Hz) divided by the timer prescaler. When the counter reaches the ...
RP2040+DFPlayerを使って、おやすみタイマー機能付きの音楽プレイヤーを作りたい。時間がきたら、音楽を止めればよいのだが(DFPlayerのDACを止めればよいのだが)、より電池を長持ちさせるためにマイコンの消費電力を少なくしたい。ということでディープ ...
もうだいぶ前になってしまったが、発売されて間もない頃に Raspberry Pi Pico を入手して、プッシュスイッチの操作を処理するプログラムを書いた。 次に、メニューを表示して設定を変更したいと思った。設定値が消えないようにもしたかった。 そこで、16 ...