Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

How can control the brightness of a device which is attached to Serial Port?
I want to communicate with the signboard via a serial port and also I want to control the brightness using a slider control, whose value is from 0-255.

Awaiting your response.
Thanks
Posted

You need to look at the specification for your Signboard. There you should find the protocol and the commands that control each aspect of it's use including the brightness.

You need to break the problem down into smaller parts. You will need code to communicate over the Serial port (there are examples in the Articles section on Code Project). Also, you need to decide whether you can use the built in slider control or whether to write your own.

When I need to control hardware I normally start with a simple edit box to enter data, once that is working I move on to adding a 'user friendly' control for the customer.

Best of Luck. :)
 
Share this answer
 
You need to use the class System.IO.Ports.SerialPort, please see http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^].

Generally, you will need to code an exchange protocol in a separate thread.

Everything else depends on the specification of your device on the other end of RS-232 cable.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900