“I looked at all the available rotary encoder sketches and none of them met my needs, so I have written my own, and here it is”. Well, I looked at all the ...
LED3個とスイッチ1個、ロータリーエンコーダのAとBの端子2個をArduinoの適当なデジタル入出力端子に接続します。 使用する端子はどこでも良いのですが、UART、SPI、I2Cのポートは後から使いたくなるかもしれないので、それを避けるように接続先の端子を選びました。
I want to write about something a little different this time. I removed the mechanical scroll wheel rotary encoder from a discarded optical mouse and used it in a little project. I really liked the ...