TimerOne library for the Samd51 metro board

Hello, I'm running the adafruit Metro M4 SamD51 board. I'm trying to run a menu for a oled screen with an encoder. I'm having a problem when I try to run the code I get this error

WARNING: library TimerOne-master claims to run on avr architecture(s) and may be incompatible with your current board which runs on samd architecture(s).
C:\Users\JjC\AppData\Local\Temp\arduino_modified_sketch_283783\1.54oled_text_animation.ino: In function 'void setup()':
1.54oled_text_animation:48:10: error: 'class TimerOne' has no member named 'initialize'
   48 |   Timer1.initialize(1000);

I did download the Timerone library from https://github.com/PaulStoffregen/TimerOne that is what Gave me the error. I also tried from https://www.arduinolibraries.info/libraries/timer-one And I got the same Error. Is there a Timerone library for the SamD processor? I have tried to look for it and That is how I found theses links. Can someone help me please?

I can't post the code in here because it is to big I will include in an attachment.

Joseph

Oled0MenuRotaryEncoder.ino (9.1 KB)

Hello josephchrzempiec

Take a search engine of your choice and ask the WWW for 'Metro M4 SamD51 +timerone' to collect some data to be sorted out to get the needed information.

Have a nice day and enjoy coding in C++.

I have been looking. I see a lot of people talking about this. Mostly are saying becuase of the newer IDE. The timer one is from an older ide and I can’t find a newer update version for it.

Maybe I’m wrong but that is what I’m seeing.

Edit: but I’m searching still thank you.

This unnamed program you are working on. What are you trying to do? Can you describe what it should do, in human?

1 Like

It’s just a menu for the 128x64 oled using rotary encoder. I was looking for an example I can get started with and found this one.

"TimerOne" is referring to Timer / Counter 1 on an AVR processor (as evidenced by the error message you got). It makes no sense to talk about a "TimerOne Library" for a non-AVR processor. The SAMD51 processor has a other peripheral resources that can be used for this purpose. You'll need to search for a solution based on the hardware you're using.

1 Like

I’m looking for a change. Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.