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.

EK-TM4C123GXL: EK-TM4C123GXL

Part Number: EK-TM4C123GXL

Hello,

I have a problem. I need to write a code for stepper motor control using the buttons SW1 and SW2. I have the libraries for stepper motor and buttons.c file.
But I can not find examples. Nowhere!

It is that difficult for me to write something without example. I am beginner.

Maybe someone has examples, how to use buttons for anything? For example, when pressing the right button, display the "Right button pressed" on the screen.
I would be grateful for any help!

  • Download the TivaWare library if you have not done so already. You will find examples for the EK-TM4C123GXL Launchpad in the directory:
    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c123gxl
    The example qs-rgb includes use of the pushbuttons. Examples "blinky" and "hello" are very basic getting started examples.
  • I already have downloaded the TivaWare library. And I saw the qs-rgb example. But this example includes many complex functions that I do not need for the task. For example, hibernation. But when I start removing unnecessary for me lines, the program stops working. I can not get the pure algorithms of working with buttons from this example.