Comments (3)
HI @badger200
The example is only for general RP2040. While RP2040W is very different, by using LED @ symbolic pin GPIO32, which is controlled only by CYW43 chip
https://github.com/earlephilhower/arduino-pico/blob/master/variants/rpipicow/pins_arduino.h#L8
Therefore, the PWM can't control the RP2040W LED.
Try to use a different pin and connect LED to it.
from rp2040_pwm.
I did find a reference example from official Raspberry Pi GitHub: https://github.com/raspberrypi/pico-examples/blob/master/pico_w/blink/picow_blink.c
And it works on my Pico W, however I did not try PWM fading.
from rp2040_pwm.
You really don't need that fancy code for RP2040W_BUILTIN_LED
Just use normal code with digitalWrite()
#define RP2040W_BUILTIN_LED 32
void setup()
{
pinMode(RP2040W_BUILTIN_LED, OUTPUT);
}
void loop()
{
digitalWrite(RP2040W_BUILTIN_LED, HIGH);
delay(2000);
digitalWrite(RP2040W_BUILTIN_LED, LOW);
delay(2000);
}
from rp2040_pwm.
Related Issues (11)
- Wrong frequency HOT 4
- Changing Duty Cycle Dynamically Creates Runt PWM pulse HOT 4
- Using PWM to step a stepper driver HOT 17
- Change the PWM frequency HOT 5
- Attempting to Alter the Duty Cycle w/o changing any other values HOT 4
- Setting duty cycle without disturbing frequency HOT 3
- Request for Clarification on PWM Slices and A/B sides HOT 2
- Duty cycle as integer rather than float HOT 19
- Frequency and Duty Cycle Measurement HOT 1
- Measuring Duty Cycle Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rp2040_pwm.