Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: frodojedi

Search: Search took 0.00 seconds.

  1. Hi all, I am trying to use the TeensyThread...

    Hi all, I am trying to use the TeensyThread library to thread a function with 2 in parameters, but I cannot make it work. I was unable to find an example about this case, can anyone please show how...
  2. Yes thanks, actually I did it already but forgot...

    Yes thanks, actually I did it already but forgot to update the code. Nothing changes. The second time the script runs the in_waiting is 0, despite the teensy is actually sending data and despite on...
  3. Anyone can help? When I relaunch the script I...

    Anyone can help?
    When I relaunch the script I check that the serial connection is open (with the isOpen() function, which returns True). So the port is open. Now, the only way I got to have the...
  4. This is my teensy code: int sensor = 0; ...

    This is my teensy code:


    int sensor = 0;

    void setup() {
    Serial.begin(115200);
    while(!Serial);
    }
  5. Python script not reading from serial unless teensy is rebooted

    Hi all,
    I want to send some analog sensor data from a Teensy 3.2 to a mac running a python script (I am using the usual pyserial module and I send data using Serial.print() in the arduino sketch)....
  6. Emm I spot the error... I was accessing...

    Emm I spot the error... I was accessing all_tokens[2], which is wring given the fact that that array is only long 2.
  7. Parsing and comparing strings on Teensy 3.2: different behaviour from gcc?

    I am trying to parse a simple string, print the result of the parsing via serial.println, and trigger a function on the basis of the received command. I wrote the code below, which perfectly works in...
  8. Many thanks, int32_t solved the problem

    Many thanks, int32_t solved the problem
  9. Arduino UNO and Teensy 3.2: same code but different behaviours for fixed-point math

    Hello,
    I am running the code below to filter an analog sensor. The code implements (if I have not done any coding error) an exponential moving average filter. I run the very same code on and Arduino...
Results 1 to 9 of 9