0

#define USE_ARDUINO_INTERRUPTS true
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

#define USE_ARDUINO_INTERRUPTS true

by huuanh2811 on Fri Jul 05, 2019 12:06 am

can I use the following sentence in my Trinket code:

#define USE_ARDUINO_INTERRUPTS true

I need it for working with sparkfun pulse sensor
I was using the following code for arduino Uno and now trying to connect the pulse sensor to my trinket. I know I can't use the Serial port is ok:

huuanh2811
 
Posts: 1
Joined: Fri Jul 05, 2019 12:05 am

Re: #define USE_ARDUINO_INTERRUPTS true

by adafruit_support_mike on Fri Jul 05, 2019 2:58 am

Are you using an ATtiny85 Trinket or the newer Trinket M0?

The ATtiny version doesn't have any real USB hardware, and doesn't support the Serial interface.

adafruit_support_mike
 
Posts: 58799
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.