keybrd library is an open source library for creating custom-keyboard firmware.
Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.
12345678910111213141516171819202122232425262728293031323334 |
- #include "RowScanner_PinsBitwise.h"
- /*
- Strobes the row and reads the columns.
- Sets rowEnd and returns rowState.
- */
- ColPort* const RowScanner_PinsBitwise::scan(read_pins_mask_t& rowEnd)
- {
- //strobe row on
- if (activeHigh)
- {
- refRowPort.setActivePinHigh(strobePin);
- }
- else //activeLow
- {
- refRowPort.setActivePinLow(strobePin);
- }
- delayMicroseconds(3); //time to stablize voltage
-
- //read the port pins
- refColPort.read();
-
- //strobe row off
- if (activeHigh)
- {
- refRowPort.setActivePinLow(strobePin);
- }
- else //activeLow
- {
- refRowPort.setActivePinHigh(strobePin);
- }
-
- // return getRowState(refColPort, rowEnd);
- return &refColPort;
- }
|