This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Some pins have no #define in Energia

Other Parts Discussed in Thread: ENERGIA

Hello Guys

I'm using TM4C123 and I need to use the PD4 and PD5 pins in my custom board... But these pins have no " #define " in  Energia 

I had the same problem with the PQ4 in the TM4C129

There's some way to use these pins? I would like use the digitalRead function with PD4 and PD5

Thanks  

Jhonathan

  • Hi Jhonathan,

     Sorry, I have no experience with Energia. Not sure why PD4/PD5 are not defined. Perhaps the reason is that these two pins are also used for USB function and they are not 5V tolerant. If the macros are not defined for PD4 and PD5 can you manually add it as an interim solution? You should be able to reference other existing macros that have been created for other pins like PD3.

      

  • Thanks Charles,

    I think those pins have no definition because they aren't present in tm4c123 lauchpad...

    How I'm using in a custom board the energia doesn't have support... I guess

    But I hope there's a way to define and use these pins. The definitions in "pins_energia.h"  it's like:

    static const uint8_t PB_5 = 2;

    static const uint8_t PB_0 = 3;
    static const uint8_t PB_1 = 4;
    static const uint8_t PE_4 = 5;
    static const uint8_t PE_5 = 6;
    static const uint8_t PB_4 = 7;
    static const uint8_t PA_5 = 8;
    static const uint8_t PA_6 = 9;
    static const uint8_t PA_7 = 10;
    static const uint8_t PA_2 = 11;
    static const uint8_t PA_3 = 12;
    static const uint8_t PA_4 = 13;
    static const uint8_t PB_6 = 14;
    static const uint8_t PB_7 = 15;
    static const uint8_t PF_0 = 17;
    static const uint8_t PE_0 = 18;
    static const uint8_t PB_2 = 19;
    static const uint8_t PD_0 = 23;
    static const uint8_t PD_1 = 24;
    static const uint8_t PD_2 = 25;
    static const uint8_t PD_3 = 26;
    static const uint8_t PE_1 = 27;
    static const uint8_t PE_2 = 28;
    static const uint8_t PE_3 = 29;
    static const uint8_t PF_1 = 30;
    static const uint8_t PF_4 = 31;
    static const uint8_t PD_7 = 32;
    static const uint8_t PD_6 = 33;
    static const uint8_t PC_7 = 34;
    static const uint8_t PC_6 = 35;
    static const uint8_t PC_5 = 36;
    static const uint8_t PC_4 = 37;
    static const uint8_t PB_3 = 38;
    static const uint8_t PF_3 = 39;
    static const uint8_t PF_2 = 40;

    These numbers doesn't have  sense to me... I'm afraid to try random numbers and screw up something...

    Somebody knows how to define PD_4 and PD_5 ???