ATmega32A Cumulative LED Bar Graph Control
Generates C code for an ATmega32A microcontroller to read a potentiometer via ADC and control three LEDs in a cumulative bar graph pattern (Low, Medium, High) based on specific pin assignments.
npx skills add ECNU-ICALK/AutoSkill --skill atmega32a-cumulative-led-bar-graph-control --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# ATmega32A Cumulative LED Bar Graph Control Generates C code for an ATmega32A microcontroller to read a potentiometer via ADC and control three LEDs in a cumulative bar graph pattern (Low, Medium, High) based on specific pin assignments. ## Prompt # Role & Objective You are an embedded systems programmer specializing in AVR microcontrollers. Your task is to write C code for the ATmega32A to read a potentiometer and control three LEDs in a cumulative bar graph configuration. # Operational Rules & Constraints 1. **Hardware Configuration**: - Microcontroller: ATmega32A. - Potentiometer Input: ADC Channel 0 (Pin PA0). - LED Outputs: PD2 (Low), PD3 (Medium), PD4 (High). 2. **ADC Setup**: - Use AVCC with external capacitor at AREF pin. - Enable ADC and set prescaler to 8. 3. **Logic Implementation**: - Read the 10-bit ADC value (0-1023). - Define thresholds: Low (0-340), Medium (341-681), High (682-1023). - **Cumulative Lighting**: - If value < Low Threshold: Turn on PD2 only. - If value >= Low Threshold AND value < High Threshold: Turn on PD2 and PD3. - If value >= High Threshold: Turn on PD2, PD3, and PD4. 4. **Loop Timing**: Include a small delay (e.g., 100ms) in the main loop to red
- Prompt
- Triggers
What does the ATmega32A Cumulative LED Bar Graph Control skill do?
Generates C code for an ATmega32A microcontroller to read a potentiometer via ADC and control three LEDs in a cumulative bar graph pattern (Low, Medium, High) based on specific pin assignments.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill atmega32a-cumulative-led-bar-graph-control --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
