moved coomment to a more relevant place
parent
579d28e34b
commit
181aa3c9de
|
@ -1,10 +1,10 @@
|
||||||
/*
|
|
||||||
* getMode function has been taken from https://forum.arduino.cc/t/check-current-pinmode/232140
|
|
||||||
*/
|
|
||||||
#define UNKNOWN_PIN 0xFF
|
#define UNKNOWN_PIN 0xFF
|
||||||
#define TX_PIN 1
|
#define TX_PIN 1
|
||||||
#define RX_PIN 0
|
#define RX_PIN 0
|
||||||
|
|
||||||
|
/*
|
||||||
|
* getMode function has been taken from https://forum.arduino.cc/t/check-current-pinmode/232140
|
||||||
|
*/
|
||||||
uint8_t getMode(uint8_t pin){
|
uint8_t getMode(uint8_t pin){
|
||||||
uint8_t bitmask = digitalPinToBitMask(pin);
|
uint8_t bitmask = digitalPinToBitMask(pin);
|
||||||
uint8_t port = digitalPinToPort(pin);
|
uint8_t port = digitalPinToPort(pin);
|
||||||
|
|
Loading…
Reference in New Issue