mirror of
https://github.com/sendyne/cppreg.git
synced 2026-01-19 04:52:08 +00:00
Pin in Led::init() should be off before setting pin direction
Super minor, but I figured it might be good to have that looking correct in the getting started guide.
This commit is contained in:
committed by
Sendyne Principal Scientist
parent
11734b0bf4
commit
816c579d7d
@@ -239,8 +239,8 @@ namespace leds {
|
||||
pin_toggle::set(); // Set PTOR to 1.
|
||||
};
|
||||
inline static void init() {
|
||||
pin_direction::write(pin_output_dir);
|
||||
off();
|
||||
pin_direction::write(pin_output_dir);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user