Skip to content

Sigma-delta support #3673

Closed
Closed
@Jsolo1

Description

@Jsolo1
#define fanpwm 15
#include "sigma_delta.h"

void setup() {
  pinMode(fanpwm, OUTPUT);
  // put your setup code here, to run once:
sigma_delta_setup(PERIPHS_IO_MUX_MTDI_U,fanpwm,FUNC_GPIO15);
set_sigma_duty_312KHz(2);

}

void loop() {
  // put your main code here, to run repeatedly:

}

### Debug Messages

error: 'sigma_delta_setup' was not declared in this scope

Things I've done:

Removed the extension ".unused" and the file seems working now
Redeclared the functions, specially the "sigma_delta_setup" which is completely undeclared in the header file
Include the header file in the sketch:

extern "C"{
#include "sigma_delta.h"
} 

But I don't have any output in the pin, what can it be the problem?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions