Simple analog write program

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jknoxhcsd
 
Posts: 18
Joined: Mon Nov 04, 2019 1:48 pm

Simple analog write program

Post by jknoxhcsd »

Trying to write a simple analog write program to brighten and dim an external led. It is not working. I have pin 1 connected to a 220 ohm resistor and then through the pos side of the led and then the led back to gnd. It will not work. Thoughts?

Here is my simple program ( I was going to use a variable to write the numbers 1 - 1023 to the pin but thought I would start with 3 values.

Image
Attachments
simple analog.JPG
simple analog.JPG (49.72 KiB) Viewed 132 times

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Simple analog write program

Post by Franklin97355 »

What does the LED do?

User avatar
jknoxhcsd
 
Posts: 18
Joined: Mon Nov 04, 2019 1:48 pm

Re: Simple analog write program

Post by jknoxhcsd »

Nothing, does not come on at all.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Simple analog write program

Post by Franklin97355 »

And what are you using for the processor? Does the LED light if you touch the pin going to A1 to power instead (disconnected from A1)?

User avatar
jknoxhcsd
 
Posts: 18
Joined: Mon Nov 04, 2019 1:48 pm

Re: Simple analog write program

Post by jknoxhcsd »

This is on a CPX, bootloader is updated to 3.14.0

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”