July 2018
Beginner to intermediate
668 pages
16h 29m
English
The operation of this recipe is really simple. In the Arduino Sketch, the LEDs are switched ON and OFF with the same cyclicity. When a change occurs, this is communicated through the use of the Serial.print() method. This change is read by the Delphi application as the ComPort1RxChar event has been implemented. Within this method, the logic that understands how to update the graphical interface is inserted:
| Command | Action |
| L1_ON | lightBulb1Switch state to ON |
| L1_OFF | lightBulb1Switch state to OFF |
| L2_ON | lightBulb2Switch state to ON |
| L2_OFF | lightBulb2Switch state to OFF |
Read now
Unlock full access