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.
37 lines
602 B
37 lines
602 B
#include "bsl_nucleo_f042k6.hpp"
|
|
|
|
|
|
Nucleo_f042k6::Nucleo_f042k6()
|
|
{
|
|
stmStart();
|
|
}
|
|
|
|
Nucleo_f042k6::~Nucleo_f042k6(){}
|
|
|
|
void Nucleo_f042k6::init()
|
|
{
|
|
ledPin.init();
|
|
ledPin.setMode(Pin::mode::output);
|
|
ledPin.setSpeed(Pin::speed::fast);
|
|
|
|
//Led ledGreen;
|
|
|
|
/*
|
|
pin_a0.init();
|
|
pin_a0.setMode(Pin::mode::input);
|
|
pin_a0.setSpeed(Pin::speed::slow);
|
|
pin_a0.setPullUpDonw(Pin::pullUpDown::pullDown);
|
|
*/
|
|
}
|
|
|
|
void Nucleo_f042k6::running()
|
|
{
|
|
STM_Pin<Pin_no::pin_3, GPIO_Port::Port_B_base_address> ledPin;
|
|
Led ledGreen(&ledPin);
|
|
ledGreen.on();
|
|
delay.ms(200);
|
|
ledGreen.off();
|
|
delay.ms(200);
|
|
}
|
|
|