๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday January 20, 2020 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday January 17 will go out Tuesday January 21 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
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: 60177
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.