Help me get my clock!

Hello, im trying to make a Processing+Arduino program using the Time.h library in which processing reads the hour it is now (from the PC or wherever) and it sends the value to Arduino via Serial port, so, for example i can create a code in which "if it is 10 o clock, this led lightens up", so i need to do something like.

if (Serial.read == 10:00) { digitalWrite (8,HIGH); }

for example. Also, could you help me with how to write the "if" part? i dont really think that (Serial.read == 10:00) is gonna work :confused: Thanks for your attention :D

Garrote6998: for example. Also, could you help me with how to write the "if" part? i dont really think that (Serial.read == 10:00) is gonna work

You're right for a number of different reasons.

Have a look at this thread:

http://forum.arduino.cc/index.php?topic=288234.0

I build a small program on VB.net, using serial port to show my CPU & RAM on my arduino display, if you need the full code just tell me, anyway you can genarate the code from the software for your arduino :) look here use system.dll library it's easy to show the clock too