Example of use myEthernet: Pin configuration

Project

    In this example you see how you can configurate the pin13 with help of the commands of the myEthernet.

    With c13 the current configuration of pin13 is displayed. The hexadecimal value has the following meaning:
    0x1 digital out
    0x2 digital in
    0x102 digital in with PullUp
    0x4 analogue in
    0x10 TWI
    0x20 SPI
    0x40 ByteOut
    0x80 ByteIn
    0x180 ByteIn with PullUp
    0x8 UART

Required hardware

    With the command you can change the configuration of the specified pin. For a value which is listed above is entered. The command is added to the end of the address in the address line.

    If you want to add a HTML link then you have to pay attention that you have to replace the characters ~ and by the code of the character (~ = %7E, = %B0) because the myEthernet web server interprets all included text between the degree signs as replacement.
    A reference must e.g. look like this:

Procedure:

    • Step 1:
      Create a htm-file, with the name config.htm.

    • Step 2:
      Write the source code in the htm-file.


    • Step 3:
      Copy the file config.htm on the microSD-card.

    • Step 4:
      Insert the microSD-card in the myEthernet, connect the power supply on the myEthernet and connect it via the network cable with a PC.

    • Step 5:
      Open a page in a web browser. Write in the address line the IP address and the name of the htm-file e.g. http://192.168.178.96/config.htm

      On this page you can configurate the pin13. This relates to port C.1 on the myAVR Board MK2 USB.

      Website to the example pin configuration

Downloads

Shopping list


««« Back to the picture gallery  

Our regional partners

Business partner wanted!

To expand our sales area we are looking for partners to represent our products and interests of the Laser & Co. Solutions GmbH.

Controller board

STM32-Produktlinie

myEthernet