Search results

  1. P

    Teensy 3.5 USB Joystick issue (Teensy 4.0 ok)

    Hi IDE 1.8.19, Windows 10 64 bits Basic joystick code void setup() { pinMode(0, INPUT_PULLUP); Joystick.useManualSend(true); } void loop() { Joystick.button(32, digitalRead(0) ? 0 : 1); Joystick.send_now(); delay(20); } With a teensy 4.0, single button works, tested with joy.cpl...
  2. P

    Using GDB with Teensy without hardware debugger, first Beta

    Any instructions about how to remove once installed (on Win10 64b) ? At least how to reverse changes done in (it is enough ?) C:\Program Files (x86)\Arduino\hardware\teensy\avr boards.local.txt platform.txt boards.local.txt platform.txt Thanks
  3. P

    Teensy 4.0 and single-wire serial

    I will change my test program so speed doesn't matter cnt = 0; while (cnt < BUFFERED) { if (Serial1.available()) { val = Serial1.read(); DBG(":"); DBG(val, HEX); cnt++; if (++numb >= DATA_PER_LINE) { DBGN(""); numb = 0; } } }
  4. P

    Teensy 4.0 and single-wire serial

    FYI The flush/available behavior can also be shown with a standard Serial test program. Without DELAY defined, there are errors en Teensy 4.0, for example Count Error 6 At that speed with default 8N1 there is 1 byte each 9600/10/1000=0.96 milliseconds. A slow AVR MEGA 2560 doesn't need the...
  5. P

    Teensy 4.0 and single-wire serial

    Perhaps a word about why a reliable single wire serial with tx/rx reversal API in Teensyduino 'out of the box' could be a plus versus Arduino. Many hobby Remote Control manufacturers (Jeti, FRSky, Multiplex SLRX, Graupner, ...) have open their protocols so people can build their own sensors...
  6. P

    Teensy 4.0 and single-wire serial

    New version of code, better display, and change int show = 1; to int show = 0; shows only errors. #define SPEED 9600 #define BUFFERED 8 #define BIT9 #define DELAY 10 #define DATA_PER_LINE 28 int check1[BUFFERED]; int check2[BUFFERED]; int show = 1; #define DBG(...) { if (show)...
  7. P

    Teensy 4.0 and single-wire serial

    With #define SPEED 9600 #define BUFFERED 64 #define BIT9 and adding a delay(100) after the Serial1 or 2 .flush() and the &= 0x1ff it's ok, just a bit puzzled by the need of the delay(). Write TX2:100:101: ... :13E:13F Read TX1:100:101: ... :13E:13F:count=64 setMode:Serial1:TX...
  8. P

    Teensy 4.0 and single-wire serial

    It's SERIAL_9O1 because the real device is using this. Using the &= 0x1ff is ok, but I think the parity bit(s) aren't supposed to be returned by read().
  9. P

    Teensy 4.0 and single-wire serial

    And in 9bit mode write and read do not match expected 0x101, read 0x301 Teensy 4.0 9bit Serial Single Wire with reversal test setMode:Serial2:TX setMode:Serial1:RX Write TX2:100:101:102:103:104:105:106:107 Read TX1:100:301:302:103:304:105:count=6 Using for val1 and val2 a additional &= 0x1ff...
  10. P

    Teensy 4.0 and single-wire serial

    Almost. There is a remaining problem with either flush() that seems not being synchronous or a bug in the below code Using 8bit or 9bit shows same behavior, here is 8bit. Note There is #define SERIAL_9BIT_SUPPORT in teensy4 HardwareSerial.h and SERIAL1/2 _TX/2RX _BUFFER_SIZE are set to 128 in...
  11. P

    Teensy 4.0 and single-wire serial

    Will try, many thanks.
  12. P

    Teensy 4.0 and single-wire serial

    Hi, trying to do something similar, in 9 bit mode, single wire TX2 pin connected to TX1 pin, code working is below. But I need to add a periodic reverse direction - TX2 ----> TX1 - Reverse direction - TX1 ----> TX2 ... How can the direction be changed ? Thanks. void setup() {...
  13. P

    Teensy 4.0 : enable/disable Serial receiver

    Is it possible to do something similar as done for Teensy 3.2/3.5/3.6 described here: https://github.com/Sepp62/JetiExBus/blob/master/TeensyReadme.txt with a teensy 4.0 ? - Serial asynchronous interface in a half duplex mode - RX and TX are physically connected through a resistor (2.4 kohms)...
  14. P

    Teensy 4.0 First Beta Test

    oops, thanks
  15. P

    Teensy 4.0 First Beta Test

    FYI 1.46-beta9 + regular installer 1.8.9 "Checking Arduino 1.8.8: version: "lib/version.txt" wrong version: 1.8.9 Does not match Arduino 1.8.8 "
  16. P

    Teensy 4.0 First Beta Test

    There is a single compile warning in 1.46-beta9 when setting to All, may be could be removed in next beta ? C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\Stream.cpp: In member function 'bool Stream::findUntil(const char*, const char*)': C:\Program Files...
  17. P

    Teensyduino 1.45 Released

    got it, many thanks
  18. P

    Teensyduino 1.45 Released

    Please what's is the link for 1.46-beta5 ? Thanks
Back
Top