@ Arduino IDE 2 there is a setting "Show files inside Sketches"
(note the sketch project need to be in the "Sketchbook location"@settings for this to work)
which enables the following:
note that you can close files that have been opened from...
@ AndyA
I did also have problems with linker error while trying to use namespaces (note when using classes it's also the same problem).
consider the following c++/arduino files:
SketchName.ino:
#include "Test2.h"
#include "Test3.h"
void...
You can actually select which clock speed that should be used for running the Teensy 4.x
and at least in theory minimize the power usage (have not done any tests myself).
The clock can be as low as 24MHz.
You can also use namespaces which makes grouping and naming functions easier
(note that you cannot make variables and functions private as when using classes)
in SomeName.h file:
#pragma once
namespace SomeName
{
void foo()
{...
your Direct_Write_Out is correct
but after some research, using:
digitalWriteFast
is doing the same thing as your Direct_Write_Out
i.e. it's writing directly to the set/clear registers regardless of the current pinmode
and as BriComp did say...
if you look at the source file https://github.com/PaulStoffregen/cores/blob/master/teensy4/digital.c
you can see @ digitalWrite:
if the pin is a INPUT (as they are at startup)
you write to the pullup/pulldown ctrl register instead of the actual...
https://www.polyphone-soundfonts.com/
Can be used to create soundfont files
Then I have updated/fixed the soundfont decoder
https://github.com/manicken/SoundFontDecoder
If you want runtime loading there is also...
I have now fixed the problems that I had.
I also encapsulated it into a class to facilitate the simultaneous loading of multiple files.
This enables faster switching between instruments within a single loaded file.
I've successfully tested...