There are some devices that can't share a SPI bus. I've seen posts that for problematical devices you need an external tri-state buffer for the devices.
Next step is to look at the drivers for both the RFM and your...
You can also get some PCBs fabricated that have cutouts for part of the board with castlelated edges that you solder to the headers. Here is one such that FrankB designed ($3.45 for 3 boards for USA shipment):
...
Its been many years since I last edited linker scripts. I imagine it might be possible, but you would need to iterate over the documentation. Also note that gold may/may not support the same linker scripts as the GNU...
If I had to guess, I would say the pinouts are probably that same as the Adafruit 3.5" display:
https://cdn-learn.adafruit.com/assets/assets/000/019/763/original/adafruit_products_schem.png?1411058465
...
I have an Adafruit M4 Express, and it has two sets of flash memory:
The bootloader memory that contains the program to be executed. If you hit the reset button twice, it goes into the UF2 bootloader that presents...
I believe the counter would reset between each compilation unit. Which means in one object file, you would have duplicate sections. The linker would combine the contents in each of the sections into one large section....
For normal data, just use the const keyword. I.e.
static const char array = "test";
Note however, due to the inside out way C/C++ data declarations are done, the const and volatile go to the results of a...
Just to ask the obvious question. Besides connecting the 5v line to VIN, did you connect the ground line from your power supply to normal ground? Not the analog ground that is between the VIN and 3.3v pins, but the...
Note, if you add another section, there may be an unintended consequence. The Arduino builds use -ffunction-sections and -fdata-sections on the compiler and -Wl,--gc-sections,--relax on the linker. This puts each...
In terms of PROGMEM setup (), I looked at the compiler source (varasm.c), and the logic is GCC will not permit you to put variables and functions in the same named section, because the sections have different flags set...
You might want to use the Bounce2 function fell that returns true when the pin returns LOW for the first time after debouncing. Similarly, rose returns true when the pin transitions from LOW to HIGH.
Yeah, I mis-read your article. I saw the LC, and forgot that there are two different Teensy LC's. The Teensy LC processor (which as I said is limited in terms of audio support) and the Teensy LC prop shield (which...
Typically PROGMEM is only used for data, and not for functions.
https://playground.arduino.cc/Main/PROGMEM
What the compiler is telling you is there was a previous declaration of setup without specifying a...
I don't know about either device, and a quick scan of the RadioHead library showed that it is a rather complex library. So this is more just background about having multiple SPI devices.
The generic problem is most...
In general, the problem is the audio library that you normally use to play complex sounds uses instructions not available on the Teensy LC. You would need to move up to the Teensy 3.2 in order to use most of the audio...
Most libraries using i2c devices are written for generic Arudino chips, and assume that chip only has one i2c bus. On the AVR 328p (Uno) chip there was no option to use a second i2c bus, so most libraries don't have an...
Note, at least with the 1.45 release, the Teensydunio version of Adafruit_GFX is out of date compared to the Adafruit version (at least 6 months out of date). The teensy Adafruit_ST7735 library is seriously back level...
There is one particular address in the Teensy where unaligned reads/writes don't work.
https://forum.pjrc.com/threads/25256-Teensy-3-hard-fault-due-to-SRAM_L-and-SRAM_U-boundary
Here is one explanation of why you need pull-up resistors:
https://learn.sparkfun.com/tutorials/i2c/i2c-at-the-hardware-level
You don't need them on AVR systems, because internally the pull-up resistor that is...
You will likely need to edit the Adafruit_STMPE610 library. In it, look for the call to 'SPISettings', and change the first argument from '1000000' to something slower. Typically it is best practice to copy the...
Unfortunately sumotoy hasn't posted here since June 2017.
The gamedunio3 has support for Teensy 3.2, Arduino, and ESP8266. There are two versions. I have the smaller version that I got during the kickstarter...
For hysterical raisins (because the original AVR Arudino code did it), the Teensy analogRead maps 0..13 -> A0..A13. It does not map numbers above 13 into the appropriate analog register, since A0 is actually 14.
The AVR processors have a split address space, and the use determines which address space is used. I.e. if you are do a jump or call, it goes to the program address space. If you are doing normal loads/stores, it...
For simple sounds that are stored in the Teensy's memory, look at the example Audio -> SamplePlayer. It has 5 buttons and it will play different sounds depending on the button press.
If you need more memory, the LC...
It might be that the Windows and the cards format programs now use a different file format than the original DOS FAT32 file system. Perhaps they are using NTFS or exFAT filesystems, which are generally better than the...
To expand on what Paul said:
I2C is the simplest. It is a shared bus system (much like the old party line telephones used in rural areas) where each device has an address. The master (Teensy) sends out a message...
You might look at pololu, which has two crimpers:
https://www.pololu.com/product/1929
https://www.pololu.com/product/1928
I must admit to buying the crimper, but I don't tend to use it. I do find my hand...
You probably need to go into more detail of exactly how you will interconnect things, with pictures showing the teensy and the other devices (and list what those devices are). In general, it is simplest if all of the...
You need to use the alternate SPI pins for pins 11 and 13. The alternate pin for 11 (MOSI) is pin 7. The alternate pin for 13 (SCLK) is pin 14. The audio board needs to use pins 11 and 13 for I2S objects, instead of...
I haven't used the WS2812Serial library, but I would guess using pins 0/1 are interfering with the WS2812Serial library. I would say try to move Joystick left/right to pins 23 and 21.
Alternatively, if you have a...
With the LC, you might running out of memory with the combined XINPUT and with the LED processing (8K). In addition to static memory, you have to worry about how much stack and heap memory you are using.
Since pin...
Be aware of premature optimization where you spend a lot of time optimizing stuff that you think is the critical section, but isn't.
For example, integer multiplies are 1 cycle on the Teensy 3.2 and I think divide is...
You probably want to look into C++ templates:
http://www.cplusplus.com/doc/oldtutorial/templates/
Alternatively, you could do it the C way, and instead have a macro that does the call:
#define DO_CALL(ST)...
I would imagine that README file was written when the author was using a AVR processor (like an Arduino Uno) where internal pull-ups do work. I wish there was a solder jumper on the ARM machines that you could enable a...
As I understand it, ARM processors internal pull-ups are just not strong enough, so you need a set of pull-ups on the SCL/SDA lines. I.e., it is not a 'bug', but a 'feature'. I was looking through some Adafruit...
From your picture, it looks like the pull-up resistors are on the wrong pins (it looks like you have attached the resistors to pins 24, 25, an 26). They should be on the same pins as SDA/SCL. Even though you have two...
Generally if you find a 'tact' switch with 2 legs, you can bend the legs into an appropriate shape. For example:
https://www.pololu.com/product/1400 (this tends to be best for protoboards where the two holes are...
I don't know if there is a one size fits all answer. Lets see:
There are people who use double and want/need all 53 bits of precision, and get surprised when constants only have 24-bits;
There is the ardunio...
That's a lot of servos. I wonder if it would be better to break the servos into smaller sets, each handled by their own sub-processor, rather than try to have a single Teensy control everything. I wonder about the...
The audio shield has pull-up resistors, so you shouldn't need extra ones on the Teensy. You need to use the standard i2c pins 18/A4 and 19/A5.
You would need to clone Audio.h to a different directory with a...
I don't know. The usual LCDs I've seen have a microprocessor controling the display and you use i2c or spi to talk to it.
C/C++ uses else if:
if (test1) {
// ...
} else if (test2) {
...
Yes. You will need to attach a 3v coin battery to keep the RTC powered when the board is not powered. Unlike the Teensy 3.2, you do not have to solder in a 32.768 kHz crystal to get the RTC to work:
...
Yep, but then perhaps we limit progress to what the least common denominator can do.
Perhaps have a build option that fixes the speed (and perhaps does not give easy access to changing it), and one for people that...
I've been wondering whether if we give the users easy methods to change the clock speed, whether F_CPU needs to be a run time variable instead of a constant (and other settings that are set from F_CPU could be modified...
I would imagine a Teensy 3.5 or 3.6 has enough pins on the main row of pins to allow:
1 serial port (2 pins) for MIDI input (such as 0/1)
1 serial port (2 pins) for MIDI output (such as 9/10)
16 digital pins
8...
I just got around to installing Arduino 1.8.8 and Teensydunio 1.45. There have been no changes to either Adafruit_ST7735 nor Adafruit_GFX in 1.45, so you have the same situation.
The electronics store I go to near Boston, Massachusetts (you-do-it), in the past has omitted the card (because they repackage the Teensy in a smaller bag). But they have been getting better about stapling the card to...
Have you looked at the i2s microphones that are now available? These microphones provide input in a digital form using the i2s bus (not i2c). The audio shield provides input in this form, but if all you needed was the...
I am a computer programmer that has worked on compilers for over 33 years. I have been working on the GNU GCC compiler for over 20. Outside of work, I tend to be known for my steampunk camera (see http://www.steampunkmike.org for more details).
Location:
Ayer Massachussetts
Interests:
digital photography, steampunk, renaissance faires, hobby electronics