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:
hak8or
2018-02-23 03:26:31 -05:00
committed by Sendyne Principal Scientist
parent 11734b0bf4
commit 816c579d7d

View File

@@ -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);
};
}