Skip to content

Instantly share code, notes, and snippets.

@akey7
Last active December 12, 2015 02:38
Show Gist options
  • Save akey7/4700599 to your computer and use it in GitHub Desktop.
Save akey7/4700599 to your computer and use it in GitHub Desktop.
Customize TcpMorseCode/TcpMorseCode.ino to configure your device.
/*** BEGIN software configuration ***/
// CW_TICK_TIME_MILLISECONDS sets the fundamental "tick" time in for the
// morse code timing. Esseintially, it sets the words per minute WPM that
// it beeps out of the speaker.
//
// 56 ms is around 19 WPM, which is fairly fast
// 220 ms is closer to 6 WPM, better if you do not have prior experience
// with CW
#define CW_TICK_TIME_MILLISECONDS 56
// Enables or disable the visual and audio keyers
boolean visual_keyer_enabled = true;
boolean audio_keyer_enabled = true;
// Network settings. See http://arduino.cc/en/Reference/Ethernet
// For more information beyond comments here.
// Note that a statuc IP is used here for simplicity in this
// version 1.0
// Listen on port 73. You don't need to change this
EthernetServer server(73);
// Change this for the MAC address on your Ethernet board
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0xC6, 0x1B };
// Chnage to the gateway on your network
IPAddress gateway(192, 168, 0, 1);
// The netmask on your network (likely doesn't need to be changed)
IPAddress subnet(255, 255, 255, 0);
// The actual IP address of the device.
IPAddress ip(192, 168, 0, 73);
/*** END software configuration ***/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment