keybrd library is an open source library for creating custom-keyboard firmware.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

LED_IOE.h 727B

123456789101112131415161718192021222324
  1. #ifndef LED_IOE_H
  2. #define LED_IOE_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include <Wire.h>
  6. #include <LED.h>
  7. #include <PortWriteInterface.h>
  8. /* A LED_IOE object is an I/O expander pin that is connected to an LED indicator light.
  9. Input/Ouput Direction configuration are set to ouput in PortWrite_*.begin() and PortRead_*.begin(). todo PortRead_*??
  10. */
  11. class LED_IOE: public LED
  12. {
  13. private:
  14. PortWriteInterface& refPort;
  15. const uint8_t pin; //bit pattern, 1 is IOE pin to LED
  16. public:
  17. LED_IOE(PortWriteInterface& refPort, const uint8_t pin)
  18. : refPort(refPort), pin(pin) {}
  19. virtual void on();
  20. virtual void off();
  21. };
  22. #endif