Trying to make a square wave with the adafruit feather m4 express

yes but for now i was tasked to not focus on the test but try and focus on just getting the lights to pulse

i understand it to an extent, and with this specific code i'm not receiving any errors. it compiles and uploads.
as i've said im using other peoples code as a template and changing it to get the timer to turn on and hopefully later on genarate a pulse.

Please clarify, what pulse frequencies do you need in your code?

Your employer?
The IDE example "Bink" will flash the LED.
Just changing from delay millis to delay micros will up the game.
Whether the LEDs "keep up" will be a tougher challenge.

non-sense! Did you read the code I inserted above?
Did you see the line

inside the setup() ?

Why are you arguing with the obvious? Just look at the code. This code couldn't possibly compile.

If you can't see this, then you don't know C++ at all, and this whole discussion is pointless.

i don't know c++ that's why i'm asking for help here

thanks man

...as I told him at #15...

If you don't know c++, you must start from the base things. The hardware timers is not for you now - you just lack of basic knowledge to understand others code.
Start from the "Blink" IDE example. It will generate a perfect square wave for you in various frequencies.

Or as I mentioned in #9

1 Like

you win :slight_smile:

Thanks