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.
KED/bsl/raspberry/bsl_raspberry.cpp

24 lines
367 B

#include "bsl_raspberry.hpp"
#include "../csl/interfaces/delay.hpp"
#include "../csl/interfaces/pin.hpp"
int startBSL()
{
int i = 0;
Pin pin;
Delay delay;
pin.init();
pin.setMode(Pin::output);
for(i=0; i < 5; i++)
{
std::cout << "Hello from raspberry" << std::endl;
pin.write(1);
delay.ms(500);
pin.write(0);
delay.ms(500);
}
return 1;
}