OK, not possible with current form factor as some required pins are already used for other purpose. I find this :
...
Type: Posts; User: Manu
OK, not possible with current form factor as some required pins are already used for other purpose. I find this :
...
Thank you for this clarifications. I was afraid about getting this king of answer, but I was sure to get it.
I'll have a look at teensy 4.1 dedicated hardware and see if can be used with the...
Hello,
I'm starting a new project : an automotive race dashboard.
My knowledge is all with engine control unit and I'm not familiar with LCD and GUI.
So I'd like to get thoughts and advices...
I guess that if you populate JTAG pins, or any other variant that can flash the chip, you can program the MCU in the usual way ith the .hex generated per Arduino IDE.
Correct ?
I do a test because I was thinking that it's useless to activate a pin if it's already done. But maybe I'm wrong ? I don't know...
Anyway, thank you
Thank you Luni, this do exactly what I want. I had 2 simple functions to LED.h :
#ifndef LED_h
#define LED_h
class LED
{
public:
LED(unsigned _pin)
Thank you !
I choose to rename my variables ;-)
But I have another problem... TeensyTimerTool throw errors :
Have to figure why..
Hi Luni,
I installed the last version of TeensyTimerTool and use it with a project that already have the previous version working. In this project I use TeensytimerTool to drive a chronometre with...
Thank you Luni,
I'll try this ASAP
Hi,
I have found the problem, but have hard time to figure how to solve it.
In my setup function, I have this :
for (int i = 0; i < 5; i++)
{
analogWrite(PIN_LED, LED_BRIGHTNESS);...
Last test I've done is to place button init at the very beginning of the setup().
Doing this highly reduce the pin pullup thing to 350ms. but the result is still the same
The last one for today :
22325
Yellow : the main power (+12,5V)
Magenta : Teensy 3v3 Regulator
Blue : the voltage at digital pin at teensy side (pullup activated)
Green : the voltage at the...
Here are scope trace of what I think do this :
22319
Yellow : the main power (+12,5V)
Magenta : the voltage at button (0V when not pressed)
Blue : the voltage at digital pin at teensy side...
This is the code :
#include "Bounce2.h"
#define PIN_BOUTON1 2
#define PIN_BOUTON2 3
#define PIN_BOUTON3 4
#define DEBOUNCE_TIME 5
#define SHORT_PRESS 500
Look like a code problem too.
If I try to inverse the way I trigger the photocoupler (button before the led, and resistor after the LED), it's behave the same.
Hello,
I currently test an hardware that use Digital Input (3 inputs). I try to use an photocoupler : Renesas PS2801-4
I think I have make mistake with the way I use it because if I set :...
Autodesk which own Eagle today recommand to NOT use the autorouter. Instead, it recommand to use it to verify if your component placement is good :
They say that if autorouter can't complete 85%...
Thank you.
Hi,
Added Teensy 4.0/4.1 to Chris O. fork.
22123
Edit : typo.
Luni, your MP box is full ;-)
This is what I do, and it require some adjustments in vsTeensy.json AND c_cpp_properties.json ;-)
Also I noticed in some vsTeensy.json a "dummy" project after the real project. The dummy project...
Hello Luni,
I'd like that VisualTeensy include ALL libraries in the project. It will be better for us to keep a working project, even if/when a library change and break compatibility with an older...
Sorry Luni, this was a cache problem
Cleaning the project and rebuild it solve all strange behaviour
thank you
Hello Luni,
today I updated TeensyTimerTool library on my computer and since, my project don't operate as it use to. Periodic timers don't start.
I tried to change some command according to your...
Thank you guy,
ultra constructive answer. In France starting a post with "And?" mean that you feel like the one who asked is a pure idiot. Same in Italy ?
Excuse me to refer to ...
Tested OK today,
Thank you Luni.
Did you ever play with GIT function in VScode ? I can't make it operate with my Synology NAS GIT server. Does it need SSH or only user/password ?
Hello,
In arduino delay is blocking. So one have to replace delay with his own function ?
Is this one a good sample or is there more efficient ?
void wait(uint_least16_t timeToWait)
{
...
Will test it soon and report.
Thank you
It mean that "Mes%20documents" need to become "Mes documents" to operate without warning at compilation.
If I don't change this, the project can still compil, but claim for an error about...
Thank you Luni for the link to cpp issues.
This one is the one to use to solve the problem :
https://github.com/microsoft/vscode-cpptools/issues/5914
One have to change...
In VT, I notice that when you generate "c_cpp_properties.json" you use different formats for files paths.
One is (for example) :
"C:\\Program Files...
It's odd. If I compile the project it's OK. So I don't think it's a typo error in the main.cpp file.
But if I intend the main.cpp file all goes wrong and then I can't compile anymore...
I'll wait...
Hello,
I notice a strange behaviour of VSC today, not related to VT. Maybe someone have the solution :
When I use Shift-Alt-F to intend code, it wipe the code all out. Previously it work OK....
Thank you.
TCK64 work great here.
I'm use Teensy 3.2 so there is no GPTs available.
But it was simple with TCK. I just used a "callback execution counter" and a loop to execute the relevant code each time the counter is at the...
Hello Luni,
Is there a way to get a timer each minute simply ?
I understand that TCK timer use (int) for the period which is too small for a minute. I have others timers that use (millis).
I can...
Hello Luni,
Thank you for this addon to VSC. I like it and will never go back to arduino IDE !
To answer to myself :
tMot.mini = (int16_t)EEPROM.readInt(25);
Hello,
Is there a simple and effective way to convert a uint16 value to a int16 value ?
Turrently I use this :
tMot.mini = EEPROM.readInt(25);
if (tMot.mini > 65000) tMot.mini =...
Thank you to everyone.
@Luni : TeensyTimerTool problem was due to a space in the path to reach it ;-)
Thank you Luni.
Another one for you. Today I gave a try to VCS and VisualTeensy. I use NotePad++ with success but it miss Intellisense...
I create a new project that meet the requirements for an...
I finally end with this code. It operate but I think it can be better :
#define debounceScreen 200 // Millisecondes
#define longPress 3500
bool wasTouched = false;
bool wasReleased =...
I'm sorry, but it's absolutely unclear :-(
At least difficult to do (for me)
Hello Luni,
It's look like the callback for timers must be void functions without any parameter. Is that it ?
#define RefreshADCPeriod 40
Hello,
I'm looking for a convenient way to allow short press and long press on the display. Is there an easy way to do it ?
Actually my code is this :
void loop() {
if...
Hi,
I'm sorry, it was a code error. I placed this definition in a "switch/case" case and it complain (and break the switch/case choices).
I then moved the definition in a function that is called...
In fact it work, but compiler complain ;-)
Is there another way to do this ?
the goal is to call a string in regard with a number.
Hello,
It's look like we can't do this with arduino/teensy ?
char Nom[10][20]={"Paris","Marseille","Lyon","Rennes","Toulouse","Strasbourg","Grenoble","Lille","Nantes","Bordeaux"};
Or do I...
Thank you for this explanation.