You have the code below in your setup......
Serial.begin(baud);
HWSERIAL.begin(baud);
#ifdef INCLUDE_WS2812B
WS2812B_strip.begin();
WS2812B_strip.setPixelColor(0, 0, 0, 0);
WS2812B_strip.show();
#endif
rotary_initHalf()...
Just scroll down to
Arduino 1.8.x Software Development
on this page, then select your operating system. The Teensyduino for .Arduino 1.8.x will download.
Once you have installed your Arduino 1.8.x (and I find that you have to execute it just...
The Teensy 3.3V output will be able to drive the MAX485 but the MAX495 output voltage(to the Teensy) at 5V will be too high and will probably damage the Teensy.
If not immediately then will lead to future degradation and damage.
You will need a...
When you post code can you post it between code tags using the </> button.
It makes the code readable for someone who is not familiar with it. See code below.
The code shown above, and below, does NOT compile.
#include <FlexCAN_T4.h>...
Do you have something like this while (!Serial); in your code (in setup)?
If you do, when the USB is NOT plugged in, it will wait there forever, waiting for the USB to appear.
If that is the case change your setup code to something like below...
Please post any code between code tags using the </> button.
It makes your code much easier to read and understand.
I have posted your code below so that you can see the difference.
/* OctoWS2811 VideoDisplay.ino - Video on LEDs, from a PC, Mac...
I suspect that the Teensy watchdogs are separate from the processing unit so might not suffer from Teensy lock up.
They would be pretty useless if they did.
If you are concerned then use an external watchdog chip/device.
You have a Hazard...
On Teensy pin 0 is RX and pin 1 is TX.
If you have them wired as you state above you have RX going to RX and TX going to TX.
RX should go to TX and TX should go to RX.
On Teensy 4.0 the ADC always uses the 3.3V power as its reference. That's hard-wired inside the chip (why NXP did this I can not say) so you always get 3.3V reference no matter what you do in software.
The problem files are contained within the AMY-Arduino.h Additive Music synthesizer library and the files it pulls in.
The library is here.
Even the supposedly tested Teensy example program from examples fails to compile.
I suggest you contact...
Do you have something like this below in your code?
while (!Serial);
If so it will wait forever if NOT connected to the IDE,
If so try putting the code below in instead.
while (!Serial && (millis() < 3000));
That post was to show how to be able to (cheaply) remotely control mains (240V in UK 110V elsewhere) voltage from a Teensy.
The project is still ongoing, which is intended to have whole house control of central heating down to individual...
You could consider using an ATtiny 212, one for each channel.
They have A/D and D/A.
At $0.43 they are cheap enough to allow 1 per each of the 100 channels.
See article below:
Hi Gef,
Can I suggest that you split your text into paragraphs as I have shown below. Like using the </> button when placing code into a post, it makes what you are saying more manageable to read.
Best of luck with your project.
Please post code (using </> button) and details about which Arduino IDE and what Teensy board.
Without this info it's not really possible to be too helpful.
That is not a complete .INO file.
You need to write a complete ino file for Arduino/Teensyduino to compile and upload to a Teensy.
What is being programmed into the Teensy by pressing the Program button (it's NOT A TEENSY RESET BUTTON) is the...
In future when you insert code can you place it between code tags using the </> button.
It makes it much easier to read.
I have put your code between code tags below.
#include <Arduino.h>
#include <SD.h>
#include <SPI.h>
#include <cassert>
File...
It helps if you put your code between code tags using the </> button. See below.
Your initial post said hat you were setting the Teensy as a Slave but you have not used the SPI_MSTransfer_T4.h library as mentioned above.
It would be useful if you...
Still can't repeat the problem(s) of yesterday, perhaps treat it as a computer aberration....though it WAS rock solid on 1.59b4....and so far back on 1.59b6 still is.
I had switched to 1.59b4 last night and it was rock solid no problems.
Just switched back to 1.59b6 and so far (1/2 hr) been unable to repeat the problem.
I am experiencing problems uploading to a T3.5 (Teensyduino 1.59b6).
The Com port has started to disappear and the Teensyduino uploader is unable to find the Teensy whether set to COM or COM(Teense 3.5)Serial....
The only solution is to re-boot...
With file explorer open (or whatever it's called) click view at the top left of the explorer window, then click (select) Hidden Items towards the right of the Menu Ribbon
You could try emptying your "temp" directory, often times part compiled code is stored there. It's supposed to save time by not having to re-compile everything when a change is made to your code.
I have put together a batch file to do the work...
Sometimes the Teensy is SO FAST that it starts communicating with external ICs before they are ready.
Perhaps put a delay of a second or so in SetUp.
By the way it makes your code much easier to read if you enclose it between CODE tags using the...