Results 1 to 5 of 5

Thread: code for mega ethernet

  1. #1
    Join Date
    Jan 2019
    Posts
    67
    Post Thanks / Like

    Default code for mega ethernet

    anyone using mega with ethernet shield that has a working version of the code for relays and Vixen?

  2. #2
    Join Date
    Nov 2018
    Location
    Cleveland, OH
    Posts
    10
    Post Thanks / Like

    Default Re: code for mega ethernet

    Hi, @mojuave1.

    I have been working on some similar. Please, take a look to the links below.

    Here copy of the link that guides us to use the extra Arduino parts in hand.

    https://www.instructables.com/id/Com...-With-Arduino/

    The links below show the original IDE development used by Todd Hammond on the instructable.

    [URL="http://doityourselfchristmas.com/forums/showthread.php?47177-arduino-with-xlights"]

    https://bitbucket.org/keithsw1111/ar...11/src/master/

    I have many compiling errors to debug on my end, probably due to libraries newer versions or things along those lines. I hope you have better luck and get it running promptly. The author is part of the forum but I have no time to post questions or my issues yet.

    Hope this helps, Good Luck!

  3. #3
    Join Date
    Dec 2011
    Location
    UK S80 postcode
    Posts
    1,437
    Post Thanks / Like

    Default Re: code for mega ethernet

    Hi, I have code for 16 channels (no dimming in this version anyway) that was written for a Nano and ENC28J60 Ethernet shield. It shouldn’t be far off for the Mega.

    Link (the second post is above it): https://www.diychristmas.org/vb1/sho...ll=1#post91147

    If you need any help shout up.

  4. #4
    Join Date
    Dec 2014
    Location
    Southern California
    Posts
    850
    Post Thanks / Like

    Default Re: code for mega ethernet

    Kevin

    2017 - Pi3 w/FPP controlling 8 ESPixelsticks driving 1250pixels and 3 Arduino MEGAS communicating with ESP-01s driving 96 channels
    2016 - 184 channels of Blinking/Flashing using 4 Arduino MEGAs and cheap home-made props.

  5. #5
    Join Date
    Jan 2019
    Posts
    67
    Post Thanks / Like

    Default Re: code for mega ethernet

    Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    new:47:23: error: unable to find numeric literal operator 'operator""B'

    byte mac[] = {04, 15, 2B, D6, 54, CA};

    ^~

    new:47:27: error: 'D6' was not declared in this scope

    byte mac[] = {04, 15, 2B, D6, 54, CA};

    ^~

    C:\Users\awarm\Documents\Arduino\new\new.ino:47:27 : note: suggested alternative: 'A6'

    byte mac[] = {04, 15, 2B, D6, 54, CA};

    ^~

    A6

    new:47:35: error: 'CA' was not declared in this scope

    byte mac[] = {04, 15, 2B, D6, 54, CA};

    ^~

    Multiple libraries were found for "SPI.h"
    Used: C:\Program
    Multiple libraries were found for "Ethernet.h"
    Used: C:\Program
    exit status 1
    unable to find numeric literal operator 'operator""B'

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.


    those were the errors I got

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •