Speeduino
Loading...
Searching...
No Matches
Functions | Variables
maths.cpp File Reference
#include <Arduino.h>
#include "maths.h"
#include "board_definition.h"

Functions

uint8_t random1to100 (void) noexcept
 
uint16_t pwmFreqToTicks (uint16_t frequency)
 Convert a frequency in Hz to the equivalent number of PWM timer ticks.
 

Variables

static uint8_t a
 
static uint8_t x
 
static uint8_t y
 
static uint8_t z
 

Function Documentation

◆ pwmFreqToTicks()

uint16_t pwmFreqToTicks ( uint16_t  frequency)

Convert a frequency in Hz to the equivalent number of PWM timer ticks.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ random1to100()

uint8_t random1to100 ( void  )
noexcept
Here is the call graph for this function:

Variable Documentation

◆ a

uint8_t a
static

◆ x

uint8_t x
static

◆ y

uint8_t y
static

◆ z

uint8_t z
static