keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
123456789101112131415161718192021 |
- #include "Scanner_Port.h"
- /*
- Strobes the row and reads the columns.
- */
- uint8_t Scanner_Port::scan()
- {
- uint8_t readState;
-
- //strobe row on
- refPortWrite.write(STROBE_PIN, STROBE_ON);
- delayMicroseconds(3); //time to stablize voltage
-
- //read the port pins
- readState = refPortRead.read();
-
- //strobe row off
- refPortWrite.write(STROBE_PIN, STROBE_OFF);
-
- //return refPortRead.getPortState();
- return readState;
- }
|