This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include "pico/stdlib.h" | |
| #include "hardware/gpio.h" | |
| #include "pico/binary_info.h" | |
| #include "hardware/pwm.h" | |
| #include "hardware/clocks.h" | |
| const uint LED_PIN = 25; | |
| int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <TimerOne.h> | |
| void setup() | |
| { | |
| Timer1.initialize(1); // Initialise Timer 1 @ 1 microSecond | |
| Timer1.attachInterrupt(TimerOne_ISR); // Attach interrupt to the timer service routine | |
| pinMode(9, OUTPUT); | |
| digitalWrite(9, 0); | |
| } |