PWM ansteuerbar und TOP wird returned
This commit is contained in:
parent
1f53117577
commit
2c47159df3
78 changed files with 459 additions and 148 deletions
14
control/examples/pwm/main.cpp
Normal file
14
control/examples/pwm/main.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>
|
||||
#include <cmath>
|
||||
#include <b15f/b15f.h>
|
||||
#include <b15f/plottyfile.h>
|
||||
|
||||
const char PLOT_FILE[] = "plot.bin";
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
B15F& drv = B15F::getInstance();
|
||||
std::cout << "TOP: " << (int) drv.pwmSetFrequency(100000) << std::endl;
|
||||
drv.pwmSetValue(40);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue