v2.0 Serial Controlled I/O!! With Mega 2560!

Version 2.0 is now out!

This program lets you program and set almost all the pins on your Mega 2560, all through serial!

New Version is Here!! :

-Added digital control over pins 22-46
-Re-configured LCD pin out
-Added ability to read analog pins 0-15
-Can read analog pins with two scales (0-1023 or 0-255), defualt is 0-255, to get 0-1023, comment out the map at line 544 and line 602
-Added ability to read individual pins (both analog and digital)
-Added ability to print custom messages to LCD

I have left the old diagram and code for those who want it still :slight_smile: along with the complete v2.0 changelog

Serial_Controlled_PWM.ino (14.3 KB)

Serial_Controlled_PWM_2.0.ino (21.9 KB)

Serial IO v2.0 Changelog.txt (1.48 KB)

Nice!

How about setting vars (int, floats) from command line?

That's not a bad idea, like make a variable and have it store maybe a pin state or analog read? Or just declare variables?

Like setting vars during runtime:

set myIntVar1 = 123
set myFloatVar1 = 1.23

read myIntVar1

123
read myFloatVar1
1.23

and so on.

That would be really useful.