Weiter
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user