Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lacking support for pwm pins 0 and 1 on ATTiny85 #45

Open
The-Unnamed-Engineer opened this issue Oct 12, 2020 · 0 comments
Open

Lacking support for pwm pins 0 and 1 on ATTiny85 #45

The-Unnamed-Engineer opened this issue Oct 12, 2020 · 0 comments

Comments

@The-Unnamed-Engineer
Copy link

Description

I've been working on a project using TimerOne's pwm functionality on an Arduino Uno.
Now that the prototype code is working we'd like to downsize our ptototype to an ATTiny85.
However, TimerOne lacks support for the PWM function on an ATTiny85.

I may make an attempt to add this functionality myself at a later date if nobody else figures out how.
Today was my first day working with an Arduino(or C for that matter) in three years so I'm a bit out of practice.

Steps To Reproduce Problem

Attempt to call Timer1.pwm() when programming an ATTiny85

Hardware & Software

Board ATTiny85-20PU
Shields / modules used None
Arduino IDE version 1.8.13
Version info & package name (from Tools > Boards > Board Manager)
Operating system & version Ubuntu 18.04 Budgie
Any other software or hardware? Using Arduino Uno as ISP

Arduino Sketch

NOTE: Sketch will be added once I receive the new set of ATTiny85s

// Change the code below by your sketch (please try to give the smallest code which demonstrates the problem)
#include <Arduino.h>

// libraries: give links/details so anyone can compile your code for the same result

void setup() {
}

void loop() {
}

Errors or Incorrect Output

If you see any errors or incorrect output, please show it here. Please use copy & paste to give an exact copy of the message. Details matter, so please show (not merely describe) the actual message or error exactly as it appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant