Robin2:
By the way you CANNOT use the delay() function in the Arduino for what you are talking about.
Thank you for the reply and the information, much appreciated! And I apologize as I said a "few" LED's when I am actually focusing on adjusting just one LED at the moment.
Robin2:
You can send any data you want to from VB (or any other PC language). The trick is to get the Arduino to interpret it correctly.
Can this data be permanently written, though?
For Example, here is what I made using Amtel Studio and then flashed the Arduino with the ".hex" file using avrdude.
/*
* Blink_LED.c
*
* Created: 7/16/2015 11:11:01 PM
* Author: Jon
*/
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRB = 0b00000001; // Pin B0(8) Output, All others are Input
PORTB = 0b00000000; // All Pins are OFF
while(1)
{
PORTB = 0b00000001; // Pin B0 is ON
_delay_ms(1000); // 1 Second Delay
PORTB = 0b00000000; // Pin B0 is OFF
_delay_ms(1000); // 1 Second Delay
}
}
This works well and permanently writes it, but Amtel Studio won't allow me to create a custom GUI (to the best of my knowledge) to manipulate the _delay_ms(); at a later time down the road without going back into Amtel Studio. I can use Amtel Studio at home, but I cannot install it on my Lab PC at school.
Basically, I would like to have the ability to open a custom made GUI from any other location, edit the delay and have it permanently write the new delay again when needed.
All other options I've found out there for making a custom GUI (again, to the best of my knowledge) seem to be limited to controlling the Microcontroller in real-time only, and once the power is removed, it's back to the original delay state it was originally flashed with.
Not sure if there are any other programming solutions I'm overlooking...
Either way, thanks again!
PaulS:
Go wash your mouth out with soap for linking those two languages that way.
I'll get right on that. 