This commit is contained in:
2020-11-02 00:27:02 +01:00
parent 2a2ba7693e
commit 35a57e2e36
12 changed files with 141 additions and 32 deletions
+12 -2
View File
@@ -36,10 +36,16 @@ namespace blubblib {
PortT::Port(PortT::Port() ^ (1<<Pin));
}
static bool Get() {
return (PortT::Port() & (1<<Pin)) != 0;
}
/**
* \brief
* Return Value of the Pin (High or Low)
* \return bool
*/
static bool Value() {
return (PortT::Pin() & (1<<Pin)) != 0;
}
@@ -60,6 +66,11 @@ namespace blubblib {
Output(true);
}
/**
* \brief
* Set as Input and no Pullup
* \return void
*/
static void MakeInput() {
Output(false);
Clear();
@@ -67,8 +78,7 @@ namespace blubblib {
/**
* \brief
* Set Output and Low
*
* Set as Output and Low
* \return void
*/
static void MakeLow() {