I committed a fix for SdFat -Woverloaded-virtual warnings. At first it seemed an intractable C++ class hierarchy, but then I found a simple fix.
Sometimes I'm amazed how much non-storage code is inside SdFat....
Just want to confirm I'm planning to merge this in 1.62 or 1.63.
Immediate plan is to wrap up 1.61 sometime next week.
My immediate plan for 1.62 is upgrading the gcc toolchain from 11.3 to 15.2. First beta for 1.62 will have the new toolchain...
Sorry. I realise that I was not explicit in stating that the code I posted was not meant to be cut and pasted into an arduino window. I was just trying to show the sequence of calls.
Try this
tft.begin(46000000);
tft.pwm0_ClocksPerPeriod(1000)...
On page 14 of my copy of the the ER-TFTM070-6_Datasheet it says this:
After much trial and error and reading of the RA8876 documentation, I was able to get PWM'able backlight working by adding the following code:
static constexpr uint16_t...
This post shows how to add Teensyduino 1.61-beta1 to PlatformIO:
https://forum.pjrc.com/index.php?threads/how-to-add-a-teensyduino-beta-release-to-platformio.71730/post-367802
All you need to do is copy three lines into your platformio.ini file.
Audio and Graphics Test
By distributing the audio and graphics functions across two Teensy MCUs, the graphics on the touchscreen are fast enough and run smoothly. The red LED (left) indicates data transmission from the GUI MCU to the audio MCU...
But a quadrature encoder works by comparing the phases of A and B to determine direction and magnitude. How can it possibly work if A and B are connected?
What is the data type of SMP_DURATION? You might need to do the calculation using float. Something like this
SMP_DURATION = (int)(((float)SMP_DURATION /( 44100.0f * 1 * (16 / 8)))*1000.0f);
Or you could try rearranging the order of the terms...
The stack also lives in RAM1. Any large structures that are temporary to a function will be allocated on the stack for the duration of the function executing