You know.. I never tried that. Typcally I use BBEdit and there's no drilling down in that. For compiling I use Arduino IDE 2.x. I'm going to see if I can drill down in that. If I can that would solve a HUGE headache!
I'm needing to trace through SD.open() and I don't have a very good toolset for finding where it's located. On a Mac and searching through invisible directories with a text terminal and a weak grasp of UNIX commands. I think I've found where...
Back in the day of Teensy 3.2 compiling. If I accidentally got the processor speed set to 96 mhz, it would cause all sorts of runtime errors and oddness. Setting it back down to 72 MHz would solve all of this, and everything would go back to rock...
Well I talked to them. As long as you have all your bits together and can compile & load code on your selected hardware. You're good to go. I was able to test it, and it seems to work. Whew!
Good lord, what a bloody nightmare! I do feel for you on the Mac backwards compatibility issue. They been obsoleting my machines at a horrendous rate for about a decade now. It's tough when you build a business system you rely on with them...
All of my development is done on Macs. A bunch of it is done far away from civilization. Back in the day with Arduino IDE 1.x and Teensyduino, this was not an issue. But it seems that the Teensy4.0 wants to use IDE 2.x and 2.x demands an internet...
Oh, didn’t know about them creating a current.
My worry was that they would allow too much current through the pin when using tone() and burning out the pin.
Back in the Teensy 3.2 days I could hook a lirttle piezo speaker to an output pin, call tone() and away we go. Now this 4.0 has these 3V pins and limits. Is it still ok to do this? Or do I need to toggle a transistor for this?
Thanks!
Yeah, everything seems to work fine. I get icons & pictures and everything. Even runs my apps, although they are now all scrunched up in the top left. They have to be rewritten to deal with different size displays. But that's a good thing.
Their MacOS version doesn't work on my machine. The option key has no effect. I'm betting the directions are out of date for the newer machines. The cmd-shift-period trick worked. Slick trick too! That's really handy! Thanks!
-jim lee
THe Arduino page's MacOS version doesn't work on my machine. The option key has no effect. I'm betting the directions are out of date for the newer machines.
The cmd-shift-period trick worked. Slick trick too! That's really handy! Thanks!
-jim lee
Go to the Arduino15 directory.
https://support.arduino.cc/hc/en-us/articles/360018448279-Open-the-Arduino15-folder
then open packages\teensy\hardware\avr\(your version)\libraries
In Terminal, use this command:
cd ~/Library/Arduino15/packages/teensy/hardware/avr/1.60.0/libraries/ST7735_t3/src
Or maybe try this in Terminal to get MacOS Finder to open the hidden folder.
open ~/Library/Arduino15
There's probably some way...
ST7796_t3.h I'm able to include this library from the .ino file, No problem. Works and everything. But, I'm having troubles wrapping it into a class for a library. This is my basic pattern for wrapping displays I use. So they'll work with my...
When a finder window is open, press cmd-shift-period. That'll show you hidden files. It's a toggle. That will also work in any file-related dialogs and such.
IDE Question : Where are things like ST7796_t3.h that seems to come with the Teensy, now stored on the Mac? They used to be hidden in the "package contents" of the IDE itself. But now with this 2.x IDE, I'm not finding them.
So I can open and read files from the SD card. The backlight comes on and off as it should. But I can't get the screen to draw at all. Can you sanity check my test code?
thanks!
#include <SD.h>
#include <colorObj.h>
#include <ST7796_t3.h>...
I saw the invert thing. Wondered about it. Clipped off the reset wire just to realize I clipped the D/C line. I think it's time to find lunch.
Thanks again.
Oh and the tft.init() sends stuff to the Serial port. Is that something you want to...
SD card works!
Now I have to get the screen to do what I want. But now there's a lot more info. out here, for me to poke around in.
Thank you all very much!
Ok thanks, your's looks exactly like the one defragster pointed out to me. (And I grabbed from the Amazon link) If I'd realized you were a poster here, I would have grabbed yours, sorry.
I'm off to the shop to wire this thing up to my Teensy...
That looks like the same adapter. Kinda' more squared off than the one Adafruit uses. It says I can have it by tomorrow. Maybe I should give it a test? It costs's less than lunch.
I'm not going to deep dive it. This was post was mostly a "Look, this is what I found." I figured the only ones that would care, would be you. You ARE Teensy. You align yourselves with Arduino libraries.
So I'll drop this display. For some...
On both setups the display & SD card was powered by 5V.
I tried both ways to test this. With the display running and not initialized. No change.
Also it didn't work on T3.2 or T4.0 it only worked on the UNO.
Read an SD card attached to a DFrobot_0669 Display.
I tried everything I could think of and could not get the Teensy to "see" the SD card. Failed on SD.begin() every time. Wire the thing to an Arduino UNO and presto! Worked first time.
#include...
So, this same setup doesn't work for Teensy 4.0.
The test :
#include <SD.h>
#define SD_CS 4
void setup() {
Serial.begin(9600);
delay(2000); // Wait for the Damn Serial to come alive..
while (!SD.begin(SD_CS)) {...
You need to get an intern or someone to update the www. I was going around in circles trying to figure out where the Mac installer was. As it sits today, it kinda' seems to hint at one, that isn't there.
Thanks for letting me know. I was able to...
Reduced the test code..
#include <SD.h>
#define SD_CS 4
void setup() {
Serial.begin(9600);
delay(2000); // Wait for the Damn Serial to come alive..
while (!SD.begin(SD_CS)) {...
I was able to find the source code. (Macs hide it pretty well) I was able to trace it this far..
//----------------------------------------------------------------------------
/** Initialize SD card and file system for SPI mode.
*
*...
Ah! Sorry, my mistake. The DSP_CS looked fine. High at the right times, low at the right times. We plotted both on the screen at the same time to make sure they were working together.
I don't do anything to it but pass it on to SD.begin(); Kinda' the standard way. And we didn't see anything on the scope that would make us think it's floating.
Actually, not being a wire guy. I don't really know. I can set it up with...
As far as I can tell I've commented out everything to do with my DFR0bot code. But SD.begin() always returns a fail.
I've looked at the chip select, mosi & miso signals and from what I can tell, they look fine. When I roll the display back into...
ILI9488_t3 library Is this the version of library that comes with the Teensy? I would like to clone the "real" one so I can track through the code accurately when debugging. That, and not end up on a dead end with one that's not tracking development.
The device I have, that includes this chip, is a DFRobot #0669 340x480 cap touch TFT. All I knew is it included a GT911 touch sensor. And, I'm not really a fan of the ESPs. So there was a lot of finger crossing when I tested it. Currently...