digitalWriteFast icon indicating copy to clipboard operation
digitalWriteFast copied to clipboard

Doesn't work on ATtiny3217

Open avandalen opened this issue 1 year ago • 1 comments

It doesn't work on ATtiny3217 etc..

avandalen avatar Apr 24 '24 13:04 avandalen

Why

ArminJo avatar Apr 24 '24 14:04 ArminJo

This example dont work with the ATtiny3217 (but on the Arduino Nano well)

// Board = megaTinyCore > Attiny3217/3216....... w/optiboot // Chip = ATtiny3217 // Clock = 16MHz internal

#include <digitalWriteFast.h> // https://github.com/ArminJo/digitalWriteFast const byte outPin = 17;

void setup() { pinMode(outPin , OUTPUT); digitalWriteFast(outPin, 1); // is 0 instead of 1 while (1) digitalToggleFast(outPin); // dont work }

void loop() { }

avandalen avatar Aug 08 '24 08:08 avandalen

Thanks for reporting 👍 If you use megaTinyCore, you cannot use "#include digitalWriteFast.h" because megaTinyCore has it own digitalWriteFast function set, except digitalToggleFast().

ArminJo avatar Aug 12 '24 11:08 ArminJo

Thanks, I didn't know

avandalen avatar Aug 12 '24 11:08 avandalen