mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-01 11:06:30 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -25,34 +25,34 @@
|
|||
#include "gpio.hpp"
|
||||
|
||||
struct LED {
|
||||
constexpr LED(const GPIO gpio) :
|
||||
_gpio { gpio } {
|
||||
}
|
||||
constexpr LED(const GPIO gpio)
|
||||
: _gpio{gpio} {
|
||||
}
|
||||
|
||||
void setup() const {
|
||||
_gpio.clear();
|
||||
_gpio.output();
|
||||
_gpio.configure();
|
||||
}
|
||||
void setup() const {
|
||||
_gpio.clear();
|
||||
_gpio.output();
|
||||
_gpio.configure();
|
||||
}
|
||||
|
||||
void on() const {
|
||||
_gpio.set();
|
||||
}
|
||||
void on() const {
|
||||
_gpio.set();
|
||||
}
|
||||
|
||||
void off() const {
|
||||
_gpio.clear();
|
||||
}
|
||||
void off() const {
|
||||
_gpio.clear();
|
||||
}
|
||||
|
||||
void toggle() const {
|
||||
_gpio.toggle();
|
||||
}
|
||||
void toggle() const {
|
||||
_gpio.toggle();
|
||||
}
|
||||
|
||||
void write(const bool value) const {
|
||||
_gpio.write(value);
|
||||
}
|
||||
void write(const bool value) const {
|
||||
_gpio.write(value);
|
||||
}
|
||||
|
||||
private:
|
||||
const GPIO _gpio;
|
||||
private:
|
||||
const GPIO _gpio;
|
||||
};
|
||||
|
||||
#endif/*__LED_H__*/
|
||||
#endif /*__LED_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue