Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
S

spugna85

@spugna85
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Building an Ethernet Gateway on an Arduino Mega
    S spugna85

    Here the solution to run Arduino Mega and the shield W5100.

    Into the file MyConfig.h, after the line:
    #include <stdint.h>:

    you must add the following lines:

    #if ARDUINO < 100
    	#include <WProgram.h>
    #else
           #include <Arduino.h>
    #endif
    

    Then replace the lines:

    const uint8_t SOFT_SPI_MISO_PIN = 16;
    const uint8_t SOFT_SPI_MOSI_PIN = 15;
    const uint8_t SOFT_SPI_SCK_PIN = 14;
    

    with these:

    const uint8_t SOFT_SPI_MISO_PIN = A2;
    const uint8_t SOFT_SPI_MOSI_PIN = A1;
    const uint8_t SOFT_SPI_SCK_PIN = A0;
    

    Finally enable define SOFTSPI removing the comment (//)

    Compile and load the software and you're done! :grin:

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular