keybrd library is an open source library for creating custom-keyboard firmware.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Dieses Repo ist archiviert. Du kannst Dateien sehen und es klonen, kannst aber nicht pushen oder Issues/Pull-Requests öffnen.

Scanner_uC.h 899B

123456789101112131415161718192021222324252627
  1. #ifndef SCANNER_UC_H
  2. #define SCANNER_UC_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include <config_keybrd.h>
  6. #include <PortWrite.h>
  7. #include <PortRead.h>
  8. /* Scanner_uC class uses Arduino pin numbers (not port pin numbers).
  9. Constructor is in Scanner_uC.cpp
  10. */
  11. class Scanner_uC
  12. {
  13. private:
  14. static const bool STROBE_ON; //logic level of strobe on, HIGH or LOW
  15. static const bool STROBE_OFF; //logic level of strobe off, complement of STROBE_ON
  16. const uint8_t strobePin; //Arduino pin number connected to this row
  17. const uint8_t* const readPins; //array of read pin numbers
  18. const uint8_t readPinCount; //number of read pins
  19. public:
  20. Scanner_uC(const uint8_t strobePin,
  21. const uint8_t readPins[], const uint8_t readPinCount);
  22. virtual read_pins_t scan();
  23. };
  24. #endif