Dear people,
I have been trying to make a led shine with a pushbutton and two arduino boards, but my only problem is that i don't know how to make the code.
Would someone help me with this problem please?
With the rSoftwareSerial library you can turn regular pins to serial ports. This is useful as the hardware serial is used by the IDE during development. There are some limitations to the supported pins: https://www.arduino.cc/en/Reference/softwareSerial As an example, the following program...
This small sketch shows how to handle pushbutton debouncing and automatic repetition. It's a full working example of one button handling, duplicate the code for each button, changing variables' name according to your needs. The timer is one for all, so no need to duplicate, simply duplicate and...
RGB Leds are equivalent to three leds (red, green and blue) combined. This allows mixing the three colors which results in many different colors. There are two types of RGB leds: common cathode and common anode: Connection diagram for a common cathode led: A common anode led should be...
A simple example that uses a Timer to change the state of pin 13 (this is the pin connected to the built-in led): Sub Process_Globals Public Serial1 As Serial Private Timer1 As Timer Private pin13 As Pin End Sub Private Sub AppStart Serial1.Initialize(115200) Log("AppStart")...