keybrd library is an open source library for creating custom-keyboard firmware.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

LED_uC.h 501B

12345678910111213141516171819202122
  1. #ifndef LED_UC_H
  2. #define LED_UC_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include <LEDInterface.h>
  6. /* A LED_uC turns LED on and off.
  7. */
  8. class LED_uC: public LEDInterface
  9. {
  10. private:
  11. const uint8_t pin; //Aduino pin that is connected to an LED
  12. public:
  13. LED_uC(const uint8_t pin): pin(pin)
  14. {
  15. pinMode(pin, OUTPUT);//todo move to .cpp file
  16. }
  17. virtual void on();
  18. virtual void off();
  19. };
  20. #endif