Skip to content

LED_CANRX and LED_CANTX not working #45

@blackfield3k

Description

@blackfield3k

I have installed ESP32RET onto an ESP32 Devboard.
Modified the A0 config for my needs and everything works except the CAN tx and rx leds.

`Logger::console("Running on Macchina A0");

    canBuses[0] = &CAN0;
    SysSettings.LED_CANTX = 0;  
    SysSettings.LED_CANRX = 1;
    SysSettings.LED_LOGGING = 2;
    SysSettings.LED_CONNECTION_STATUS =3;
    SysSettings.fancyLED = true;
    SysSettings.logToggle = false;
    SysSettings.txToggle = true;
    SysSettings.rxToggle = true;
    SysSettings.lawicelAutoPoll = false;
    SysSettings.lawicelMode = false;
    SysSettings.lawicellExtendedMode = false;
    SysSettings.lawicelTimestamping = false;
    SysSettings.numBuses = 1; //Currently we support CAN0
    SysSettings.isWifiActive = false;
    SysSettings.isWifiConnected = false;
    strcpy(deviceName, MACC_NAME);
    strcpy(otaHost, "macchina.cc");
    strcpy(otaFilename, "/a0/files/a0ret.bin");
    pinMode(13, OUTPUT);
    digitalWrite(13, LOW);
    delay(100);
    FastLED.addLeds<LED_TYPE, A5_LED_PIN, COLOR_ORDER>(leds, A5_NUM_LEDS).setCorrection( TypicalLEDStrip );
    FastLED.setBrightness(  BRIGHTNESS );
    leds[0] = CRGB::Yellow;
    leds[1] = CRGB::Yellow;
    //leds[2] = CRGB::Blue;
    //leds[3] = CRGB::Purple;
    FastLED.show();
    pinMode(21, OUTPUT);
    digitalWrite(21, LOW);
    CAN0.setCANPins(GPIO_NUM_4, GPIO_NUM_5);`

I changed the led numbers equal to the A5 config and set them to yellow for testing. The only thing i changed beside this is the serial port speed as the terminal cant handle 1Mbaud properly.
I use an play WS2812B led stripe and the connection status works on all 4 leds if i change the number.

Is this just not implemented fully?
I have a working can bus and can see data coming in (the TX led staying dark is expected as i send no data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions