It may be that the Teensy is starting up Too Quickly for the MCP23S17's when you start to initialise them.
The chips may simple be not ready to be initialised.
This is born out by putting a delay at the head of the...
Can I suggest that when you post code that you enclose it between CODE tags using the # button above.
It makes your code so much more readable and therefore easier for others to potentially help you.
EDIT:
You seem...
If you examine SPI.h you will find that beginTransaction uses SPISetting(clock, bitOrder, dataMode) to setup the SPI port.
If you are not USING SPI transactions then set SPI_HAS_TRANSACTION to 0 on line 30 and use...
I have that same erroneous code shown in #10 and I am running Teensyduino 1.58b3.
Presumably this code was installed by TeensyDuino.
Can it be arranged for the corrected version be installed with Teensyduino?
Yes and deleted all the parameters which you did not require, unfortunately YOU DID NOT delete the digital parameter.
As I said I don't know if it will make any difference but without setting up the digital component...
Firstly could you enclose any code posted between CODE tags using the # button as I have done below.
#include <Snooze.h>
SnoozeDigital digital;
SnoozeTimer timer;
SnoozeBlock config_teensy40(digital, timer);
...
Any code for the Teensy has to be programmed into the Teensy. You can not just place it onto an SD card.
I suggest you read this about getting started with Arduino.
Think of the Teensy as a supercharged Arduino. ...
Ok, thanks for that. I agree with Patents and Agreements.
They are only any good if you have the money and are happy to sue.
I used to work for a firm where the Proprietor (before going Public) had an idea and...
The only UK distributor with them in stock is OakTree LLC but they are charging a before tax price of $30.40.
I have converted for exchange rate and tax.
This is a 28% mark up on retail price! I thought you were...
Make sure you get a quote for shipping and extra fees before you start, or do a small test run.
There are other companies doing the same thing.
Of course it would be nice if someone on this board would act as an...
If buying in the US and shipping to the UK you might consider MyUs.com.
Register with them and you get a US address.
I.e. buy from PJRC giving your US address. Items get shipped to MyUs who then ship them on to you in...
Yes it does say Gold plated on the Male-Male parts. I must say that I had not noticed before.
The advantage of the turned pin sockets beside low insertion and extraction forces is the fact that they are very low...
Just downloaded Audio Guestbook, set USB Type to Serial + MTP Disk (Experimental), set cpu to Teensy 3.6 and compiled just fine using TeensyDuino 1.58b3.
Note that you will have to alter the program to work with Teensy...
Yes, but you don't have to wait for any reply.
Simply flag that a confirmation/reply is expected and pick up that confirmation when appropriate.
The confirmation will be waiting in the serial input buffer.
Copy the code, assuming you are using Windows, highlight the code, right click on the highlighted code and press copy.
Press the # button at the top of the Teensy Reply Form.
will appear. Paste your code between...
I don't know anything about your Nextion handler, but I have written a Library for the Nextion. It is intended as a foundation for a user's Nextion Comms.
It contains a lot of functionality and will have all that most...
You could use a Teensy 4.1 which has Ethernet hardware built in.
You are going to get some proficiency in coding.
Do you have the code (source) for the 3.2 and Arduino?
If it is NOT getting past while (!Serial) it means that the Teensy is NOT seeing the computer USB Serial port.
It would be better written as:-Serial.begin;
While (!Serial && millis() < 5000){};This will case the...
First of all can you enclose your code between CODE tags. You can insert them into your posts using the # button.
It just makes your code easier to read and understand and makes it easier for others to help you....
This is the one I have been using and is the one refered to in my post.
Obviously you have to be aware of rollover of the millis and micro, especially the latter. Perhaps do some zeroing/resetting each time you take a...
The following might give you some ideas of what is possible.
Note I have compiled it but NOT RUN/TESTED it!// Visual Micro is in vMicro>General>Tutorial Mode
//
/*
Name: t4.ino
Created: 14/12/2022...
Just looking at the arduino code, I am slightly confused by for(byte i=0; i < (sizeof(msg2)/sizeof(msg2)); i++)
{
Serial.write(msg2);
}
Why did you do that and not for(byte i=0; i < sizeof(msg2); i++)
...
Ok, try deleting the Serial1.setTimeout(0.1); in SetUp.
I don't know why it should make any difference. Equally I don't see why it is required.
I have just had a thought about the serial buffer size. I will get...
Hi @Timon, the reason for asking for the code is so that it can be run and the problem experienced and hopefully sorted.
I have re-written your send / receive code in a different manner, please give that a try and see...
Same Audio board for T4.0 and T4.1. If you use T4.1 you have the option of using the SD on the Audio Board or the one on the T4.1.
The T4.1 SD is faster than the Audio Board SD.
The Teensy 3.1 (T3.1) is 5V tolerant so you could just have a Resistor between O and V and take the O output into the T3.1.
Alternatively, if you do wish to limit the Teensy input to 3.3V, simply have a Resistor...
@GazTech was enquiring about using digitalRead() and digitalWrite() on I2C ports other than the one he wished to use. I.e. using the pins of Wire2 for digital IO when using Wire for I2C comms.
From the manufacturers web site "E32-TTL-1Wcan be compatible with other E32 modules."
I don't know why @Moonman does not use @KrisKasprzak's E32 library.
He (@moonman) had previously said that he was going to use...