You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
560 B
31 lines
560 B
#include "daisy_seed.h"
|
|
#include "types.hh"
|
|
|
|
namespace Heck {
|
|
namespace Constants {
|
|
constexpr float BLINK_FREQ_HZ{ 1 };
|
|
}
|
|
|
|
ld::DaisySeed hw{};
|
|
|
|
float hz_to_ms(float hz)
|
|
{
|
|
return 1000. / hz;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
hw.Init();
|
|
while (true) {
|
|
hw.SetLed(true);
|
|
hw.DelayMs(hz_to_ms(Constants::BLINK_FREQ_HZ * 2));
|
|
hw.SetLed(false);
|
|
hw.DelayMs(hz_to_ms(Constants::BLINK_FREQ_HZ * 2));
|
|
}
|
|
}
|
|
} // namespace Heck
|
|
|
|
int main()
|
|
{
|
|
return Heck::main();
|
|
}
|
|
|