Sorry, hopefully someone who uses one of those types of MACs may be able to help.
My only mac is from 2013... running Catalina I just installed the 2.26 on this one. I have 1.60 beta 3 installed on it
And it compiles and links without a...
Sorry, still not sure what is going on, a couple more notes/questions.
1) helps to put listings and the like into code tags... Use the button up at top left:
Makes it easier to read.
What Computer/OS are you running on? MAC?
Which version...
Just wondering if anyone created any good example sketches using zephyr on a Teensy 4 or 4.1
https://docs.zephyrproject.org/latest/boards/pjrc/teensy4/doc/index.html
I know there have been a few threads up here where questions were asked about...
Turns out that the write method, calls this one:
size_t ILI9341_t3n::write(uint8_t c) { return write(&c, 1); }
You can probably get rid o warning like:
tft.write((const uint8_t *)&c, 1);
@clinker8: Add a line to your setup() function something like this (which will wait for a maximum of 3 seconds for the serial monitor to be connected, then proceed): while (!Serial && millis() < 3000) {}.
Then, add the following code in the...
It will only use the board installed version, if there is not another one installed in the sketch folder or now in the Arduino library folder.
The earlier post showed:
He is running Arduino IDE and it found the library that initially matches the...
Sorry, I am using the word port in a generic term... When I say port for it is actually GPIO4...
One file in the cores\teensy4 which gives you all of the real specifics is the file: imxrt.h
Like we defined a structure for the GPIO registers:
//...
The Sumotoy library is rather outdated at this point. @KurtE and myself revamped the Sumotoy library for the Teensy and you should try that. The library is included with Teensyduino. It should be compatible with the Sumotoy library but has...
My guess is you could probably try to hack up the file cores/teensy4/new.cpp
Maybe something like:
void * operator new(size_t size)
{
void * new_obj = malloc(size);
if (new_obj) return new_obj;
return extmem_alloc(size);
}
Note...
I am not sure there is everything you mentioned all in one place, but for example what pins do you what:
If you look at thteT4.1 product page: https://www.pjrc.com/store/teensy41.html
You will see it showing the card, and then a link to a...
Yes, AFAIK - the teensy tool used to upload will not run in a non-gui environment.
In many cases you can still do it, by using a different tool to do the actual upload to the teensy.
Near the end of post #3 of this thread I showed a few ways I...
I wish that there was variant support within the Teensy board setup!
I have a fork/branch that I setup earlier to play with the @Dogbone06 boards. I had different variants setup for the
DevBoard4 and the DevBoard5, both of which appear the...
I could be completely wrong (it has happened before :D )
My quick look a long time ago, the SPI2 pins don't align with the SDIO ones...
And if you look at an Adafruit adapter that supports both SDIO and SPI:
It sort of implies that: SD(CLK) and...
Yes, that's my hope... especially coding time!
I'm not ready to think about any new products until Sparkfun has been shipping Teensy 4.0 and Teensy 4.1 for a while. We've been pouring a lot of work into this transition for the last few months...
Not sure whether to be sad or not but know it will take a heck of lot of pressure/stress off you and Robin having to deal with supplier and manufacturing issues. Definitely should free up a lot of time etc.
So going to say congratulations and...
Congrats!
I wondered when something like this would happen. Makes a lot of sense, since they already are making the MicroMod.
Should leave you with some coding time, and potentially new products.
We are excited to announce the expansion of our partnership with SparkFun Electronics to include the manufacturing of all Teensy products. Teensy 4.0, Teensy 4.1 and related accessories will now be manufactured by SparkFun in Colorado, USA...
I believe from your description, that the T4 and the ESP32 S3 are communicating over USB with the ESP32 logically plugged into the
Teensy. So, they are communicating over USB. Where the Baud rate means almost nothing. Except that the USB Host...
SD pins on the different boards:
The Arduino Pin numbers for
T4 are 34-39
On the T4.1 They are pins 42-47
On the Micromod, has same Arduino pin numbers as T4
However if you are talking about which pin on the actual Micromod board, they are...
You might also try telling the display to invert the colors, like:
tft1.invertDisplay(true);
As defined in the Adafruit_SPiTFT file:
// -------------------------------------------------------------------------
// Miscellaneous class member...
First thing I would do is to initialize both CS pins to HIGH before calling either displays init.
like:
pinMode(TFT_CS1, OUTPUT);
digitalWrite(TFT_CS1, HIGH);
pinMode(TFT_CS2, OUTPUT);
digitalWrite(TFT_CS2, HIGH);
You don't need to set them...
Are these the pins you are trying to use on Teensy 4.1?
Pins 21 and 22 are not SPI pins,
SPI pins are 11-13
SPI1 pins are by default: 26, 27, 1, but there are a few alternative pins for some of the functions like pin 39
My guess is that you could get more throughput with other things than python. At least my experiences with python,
on other platforms, such as RPI, I found it less than optimal. I have not used it much on the PC, other than in a few cases like...
There are tradeoffs for when to use send_now() function (which is the same as flush())
That is, you are trading off latency for throughput.
For example, if you have code, that sends something to the PC and then waits for a response then the...
You might try starting off, running one of the SDFat test sketches from the Adafruit branch, to see if they work at all on the T4.
I have not used this fork of the SDFat library on Teensy boards, I have used it on a few of the Arduino boards.
I...
Yes, it is part of Teensyduino and there have not been any releases with these changes in place.
You can still download the updated version from Paul's github... Or mine is now up to data as well.
Or you could wait for a release. Note: the last...
Go into the USBHost_t36 library source file keyboard.cpp
and look at the function:
void KeyboardController::hid_input_data(uint32_t usage, int32_t value)
{
// Hack ignore 0xff00 high words as these are user values...
Before, I try to answer these, I thought maybe should step back a second and give a little more background information.
Half Duplex: The Dynamixels use half duplex Serial to communicate. That is that there is only one data wire between them...
@Mardana - Sorry, it is sometimes difficult to debug some of this, without exact, I tried This hardware, showing exact hook ups, with this Software
showing full code... As there are lots of variables.
Like using Teensy 4 Half duplex support on...
As was mentioned in other thread, the teensy is not 5v tolerant.
I have used several different ways, to connect, including
https://forum.pjrc.com/index.php?threads/teensy-4-0-and-dynamixel.58109/page-2#post-292619
I have also done it using...
As part of having some fun and testing some of our different display drivers, I have an MTP TFT picture viewer sketch:
https://github.com/KurtE/mtp_tft_picture_view/blob/main/mtp_tft_picture_view.ino
That includes support for RA8875... It has...
Thanks for providing this morning's "stay at home and stay busy" project.
This code worked fine for recording at 10KHz sine wave. It's a bit too simplified to be up to my professional programming standards (global variables, no parameters to...
Note: the example can work very easily. Just force tell it, that it has KEYBOARD Interface.
Example: update the code in the example to manually define it like:
// Simple USB Keyboard Forwarder
//
// This example is in the public domain
#include...
Sorry as I tried to imply with the update to first post:
The things you are setting in the platform.local.txt are specific to the ESP32's build, i.e. their
platform.txt
You need to look through the Teensy version and see if there is some...
If you use tft.updateScreen(), timing wise, more or less the same as tft.fillScreen(some_color)...
And yes the comments about
As mentioned, we could add an endTransaction()... beingTransaction()... after each scan line or the like, maybe with a...
What version of arduino are you using? Latest one has command to reload or interpret or like that might help. Sorry not at my computer so don’t remember exact command
Edit: Also, you may want to check that the teensy uses those defines in it's...
There have been a few different sketches that have some form of memory checking, to look maybe at things like:
how big the heap might be getting. Note: it does not actually go through the heap, it may only look at how far up has the
low level...
Of course you can do it without variant code... After all, it's just code...
Note: Jump to bottom for quick answer
Life can be made easier, by using the pin name code, that I have in the variant stuff...
The SPI.h has definition of the hardware section:
class SPIClass { // Teensy 4
public:
#if defined(ARDUINO_TEENSY41)
// T4.1 has SPI2 pins on memory connectors as well as SDCard
static const uint8_t CNT_MISO_PINS = 2;
static const...
Not sure it is doable...
The LPSPI clock speed is setup from the CCM tree and their is 4 choices for which starting speed as you can
see below:
```
void SPIClass::setClockDivider_noInline(uint32_t clk) {
// Again depreciated, but...
I tried it with a MicroMod and I was on Ubuntu at the time:
And I entered the text shown in the Serial Monitor input area with the keyboard plugged into the USBHost port
I have not tried things in a while on T3.6 might be a while for me to dig...
Sorry, I don't have my Teensy stuff out right now... will try to get something out later.
It used to work. Should work.
There is stuff at the start of the sketch:
#ifdef KEYBOARD_INTERFACE
uint8_t keyboard_last_leds = 0;
#elif...
Note, my fork/branch is probably somewhat out of date, with the most recent cores. That is, I believe I am 6 commits behind the master
branch. At some point I will probably rebase on the current stuff. However, I am not sure if/when that...