Search results

  1. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    The back light is lit so it's not that, unfortunately.
  2. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Thanks, output; I2C Scanner Scanning(Wire)... No I2C devices found Scanning(Wire1)... Device found at address 0x27 (MCP23017,MCP23008,PCF8574,LCD16x2,DigoleDisplay) done Scanning(Wire2)... No I2C devices found
  3. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    I can't get the scanner to compile with the 4.1. i2c_t3.h isn't compatible with Teensy 4.0 or 4.1
  4. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Yes I am. The display on the pcb, as supplied, isn't really ideal for a display when mounting it all in an enclosure, hence the need for another display to mount on the enclosure. To get the triple CAN and the Ethernet you had to buy a pcb with the display on which is double sided taped so...
  5. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Yes its I2C QWIIC connectors that I've ordered. The LCD works fine so it's not that or the wiring.
  6. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Thank you to both of you. I'm still struggling. I did a search on the computer for all .h and .cpp named files and removed all except the ones from the link above. I changed all wire to wire1 and it still wouldn't work. I since noticed, by looking at the circuit diagram for the pcb the Teensy...
  7. T

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thank you working now.:)
  8. T

    FlexCAN_T4 - FlexCAN for Teensy 4

    I've never done anything before with buffers etc so am still learning and haven't grasped how they work yet..
  9. T

    FlexCAN_T4 - FlexCAN for Teensy 4

    Sorry the code is pretty long and I think would complicate it. I'm not sending the data it's from a battery pack. The manual says '16 bits signed int' . actCurrent is an integer and is the current into and out of the battery. I was using this code on an Arduino Mega where actCurrent showed...
  10. T

    FlexCAN_T4 - FlexCAN for Teensy 4

    I have Byte2 (FF) and Byte3 (FF) sent as a signed integer but using CAN_message_t it's showing as a large number instead of negative. How can I get it show as negative? int32_t val4 = ((int32_t)msgcan1.buf[3] << 8) | (int32_t)msgcan1.buf[2]; //read current values and convert to Dec...
  11. T

    FlexCAN_T4.h

    Solved txmsg3logon.flags.extended = 1; txmsg3logon.id = 0x05004804; sprintf(txmsg3logon.buf, login[i]); can3.write( txmsg3logon); delay (50);
  12. T

    FlexCAN_T4.h

    I have had a setup on an Arduino mega but am now putting it on a Teensy 4.1 and require a little bit of help with the code. I have a number of different serial numbers (login) that I need to send in individual messages. This is part of the old code; unsigned char login[][8] = {{0x13, 0x22...
  13. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Thanks, I'll have to see if I can find them. I had a quick look earlier but didn't see them.
  14. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    I hadn't posted the code as it is very large and would just complicate matters. Here is some code that doesn't work on SDA1 and SCL1. (If I connect using pins SDA0 and SCL0 it will still work on that). #include <LiquidCrystal_I2C.h> #include <Wire.h> // set the LCD address to 0x27 for a 20...
  15. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Thank you but that didn't work either.
  16. T

    I2C Teensy 4.1 using pins SDA1 and SCL1

    Hi, I have a 20x4 LCD display using I2C that I have working fine using SCL0 and SDA0 (pins 19 and 18) but for my next application those pins are not easily accessible. I therefor want to use pins 16 and 17 (SDA1 and SCL1) I've tried; Wire.setSCL(16); Wire.setSDA(17); but that doesn't work...
Back
Top