Will the Teensy and the Bluetooth LE breakout work together?
I'm having trouble because there are files that the compiler can't find.
Mainly "avr/sleep.h". There are avr support files in the hardware specific
include folder for the Teensy, but sleep.h isn't in there.
Teensy 3.1 and Bluetooth LE breakout
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Teensy 3.1 and Bluetooth LE breakout
Did you get teensyduino ? and be aware that the teensy says it works with many arduino libraries. Also the 3.1 is not an AVR so should not be expected to run native AVR code.
- ksum
- Posts: 19
- Joined: Mon Sep 16, 2013 4:04 pm
Re: Teensy 3.1 and Bluetooth LE breakout
I do have all that is required as far as software. It is a 3.1, so I guess if I'm going to use Bluetooth I'll have to find a different little microcontroller to use.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Teensy 3.1 and Bluetooth LE breakout
Or you could write your own code.
- ksum
- Posts: 19
- Joined: Mon Sep 16, 2013 4:04 pm
Re: Teensy 3.1 and Bluetooth LE breakout
I'm not that great at C just yet, but perhaps I can take the existing sleep code for other devices and
make it work with the Teensy. It doesn't necessarily have to do all of what the original does, it just
has to support the calls made to it so the program can move forward.
For now I'll stick with WiFi since I think I've resolved the lock up problem I was having with the
CC3000 breakout. It turns out the CC3k doesn't like to stay connected to a network when there's
no activity for a while. So disconnecting between data pull intervals solved the problem.
make it work with the Teensy. It doesn't necessarily have to do all of what the original does, it just
has to support the calls made to it so the program can move forward.
For now I'll stick with WiFi since I think I've resolved the lock up problem I was having with the
CC3000 breakout. It turns out the CC3k doesn't like to stay connected to a network when there's
no activity for a while. So disconnecting between data pull intervals solved the problem.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Teensy 3.1 and Bluetooth LE breakout
Yes that's a problem several people have had. One way other than disconnecting is to just test for a connection before sending and remake a connection if it has stopped.So disconnecting between data pull intervals solved the problem.
Please be positive and constructive with your questions and comments.