Skip to content

Instantly share code, notes, and snippets.

View 3Nigma's full-sized avatar
Sprinting

Victor ADĂSCĂLIȚEI 3Nigma

Sprinting
View GitHub Profile
#include "FastPWM.h"
FastPWM::FastPWM(PinName pin) : PWMObject(pin){
//Set clock source
LPC_SC->PCLKSEL0|=1<<12;
_duty=0;
_period=0.02;
if (pin==p26||pin==LED1) {
PWMUnit=1;