Add parallel port comms to arduino
This commit is contained in:
14
arduino/kbd/parallel.h
Normal file
14
arduino/kbd/parallel.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/** Returns the byte present on D0~D7 */
|
||||
uint8_t readParallel();
|
||||
|
||||
/** Writes a nibble on status pins */
|
||||
void writeParallel(uint8_t nibble);
|
||||
|
||||
void setupParallel();
|
||||
|
||||
/** Returns true and sets the byte if a strobe was received */
|
||||
bool strobeOccurred(uint8_t &byte);
|
Reference in New Issue
Block a user