Skip to content

Implements Print::print_P for use with the F() macro to avoid RAM arduino usage issues

Notifications You must be signed in to change notification settings

fg1998/Arduino_ETHER_28J60.h-with-print_P

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino_ETHER_28J60.h-with-print_P

Implements print::print_P for use with the F() macro to save Arduino Memory.

Usage :

#include "ETHER_28J60.h"
#include 

//Define MAC, IP and Port
static uint8_t mac[6] = { 0x54, 0x55, 0x58, 0x10, 0x00, 0x24 };
static uint8_t ip[4] = { 192, 168, 0, 105};
static uint16_t port = 80;

//ethernet Object
ETHER_28J60 e;

void setup()
{
  e.setup(mac, ip, port)  
}

void loop()
{
  char* params;
  
  if(params = e.serviceRequest())
  {
		e.print_P(F("Foo\n"));
		e.print_P(F("print_P helps you to save Arduino RAM\n"));
		e.print_P(F("For use with the 28J60 Ethernet Module. Generally as a breakout board"));
		e.print_P(F("Based on Simon Monk code"));

		e.respond();
  }
}

About

Implements Print::print_P for use with the F() macro to avoid RAM arduino usage issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages